ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.How to auto Capital Letter when user key-in value on textbox in VB.netHi @asrul,<br />Please try the following<br /><br /><a href = 'link(Threads/141411/Make-first-letter-of-TextBox-Text-value-Capital-Title-Case-in-ASPNet/)'>Make first letter of TextBox Text value Capital (Title Case) in ASP.Net</a><br /><br />It might help you.<br /><br />Cheers Andrea.https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/Mon, 09 May 2016 19:46:27 GMTHow to auto Capital Letter when user key-in value on textbox in VB.net<p>Dear Andrea,</p> <p>&nbsp;</p> <p>I'm not looking for first letter, but i want all value in Capital Letter. Thanks</p>https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/Mon, 09 May 2016 19:57:31 GMTHow to auto Capital Letter when user key-in value on textbox in VB.net<pre class="default prettyprint prettyprinted"><code><span class="pln">try this.<br /><br />$</span><span class="pun">(</span><span class="str">"#txtbox"</span><span class="pun">).</span><span class="pln">bind</span><span class="pun">(</span><span class="str">'keyup'</span><span class="pun">,</span> <span class="kwd">function</span> <span class="pun">(</span><span class="pln">e</span><span class="pun">)</span> <span class="pun">{</span> <span class="kwd">if</span> <span class="pun">(</span><span class="pln">e</span><span class="pun">.</span><span class="pln">which </span><span class="pun">&gt;=</span> <span class="lit">97</span> <span class="pun">&amp;&amp;</span><span class="pln"> e</span><span class="pun">.</span><span class="pln">which </span><span class="pun">&lt;=</span> <span class="lit">122</span><span class="pun">)</span> <span class="pun">{</span> <span class="kwd">var</span><span class="pln"> newKey </span><span class="pun">=</span><span class="pln"> e</span><span class="pun">.</span><span class="pln">which </span><span class="pun">-</span> <span class="lit">32</span><span class="pun">;</span><span class="pln"> e</span><span class="pun">.</span><span class="pln">keyCode </span><span class="pun">=</span><span class="pln"> newKey</span><span class="pun">;</span><span class="pln"> e</span><span class="pun">.</span><span class="pln">charCode </span><span class="pun">=</span><span class="pln"> newKey</span><span class="pun">;</span> <span class="pun">}</span><span class="pln"> $</span><span class="pun">(</span><span class="str">"#txtbox"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">((</span><span class="pln">$</span><span class="pun">(</span><span class="str">"#txtbox"</span><span class="pun">).</span><span class="pln">val</span><span class="pun">()).</span><span class="pln">toUpperCase</span><span class="pun">());</span> <span class="pun">});</span></code></pre>https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/Tue, 10 May 2016 00:00:59 GMTHow to auto Capital Letter when user key-in value on textbox in VB.net<p>Hi KuldeepDev</p> <p>&nbsp;</p> <p>need to add on source code? which area?</p>https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/Tue, 10 May 2016 00:08:38 GMTHow to auto Capital Letter when user key-in value on textbox in VB.net<p>Hi,</p> <p>Please refer below code.</p> <p><span style="text-decoration: underline;">HTML</span></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&#34;text/javascript&#34;&gt; function Capital(txt) { txt.value = txt.value.replace(/^\s+/, &#39;&#39;).toUpperCase(); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; Enter Name: &lt;input type=&#34;text&#34; value=&#34; &#34; onkeyup=&#34;Capital(this)&#34; /&gt; &lt;/body&gt; &lt;/html&gt;</pre> <a class="demo button orange btn btn-red">Demo</a></div>https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/Tue, 10 May 2016 02:23:22 GMTHow to auto Capital Letter when user key-in value on textbox in VB.net<p>Thanks bro..its work for me!</p>https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/https://www.aspforums.net:443/Threads/851064/How-to-auto-Capital-Letter-when-user-key-in-value-on-textbox-in-VBnet/Tue, 10 May 2016 02:25:58 GMT