The text of this article is not in this database — only its details are. Read it on the old site: TextBox In C#
26 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: TextBox In C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Pranav MittalPosted Sep 11, 2018, 12:14 AM
Updated on 10/09/2018
GokulPosted Jun 2, 2016, 12:52 AM
thanks
Jack KamikazePosted Jan 25, 2016, 9:35 PM
So how to insert "@" symbol in textbox to database ? (Access)
Sadeq QaidPosted Jan 19, 2015, 7:17 PM
thank a lot
jack degonPosted Nov 7, 2014, 9:15 AM
Question. I have a simple windows form with two textboxs asking for username and password. Everything works fine, but is there a way to have the cursor automatically be in textbox1 so I do not have to click into it before entering the username
Dhruv JainPosted Jul 1, 2013, 1:28 PM
How can i get my text box accept the UTF8 Encoding? i have to accept Chinese characters basically. this is what i am doing right now byte[] bytes = Encoding.UTF8.GetBytes(textBoxMessageText.Text); Encodin.UTF*.GetString(bytes); but this does not work and display ? instead
mohammad shirzadehPosted May 16, 2013, 7:00 AM
hi . i want change size of textbox in runtime by mouse. please help
Ajendra PrasadPosted Nov 29, 2012, 7:16 AM
Nice article Sir, I have a problem in setting cursor position at the end of the multiline textbox in web form using C#. That textbox is inside updatepanel which updates using trigger in every 2 seconds. The vertical scrollbar starts showing after some reading some lines. Its a chat based form.
Gaeddong E Fuka allPosted Nov 20, 2012, 11:05 AM
im on question uh~..How can resize to textbox on mouse and how can build it method
rasha samraPosted Dec 7, 2011, 8:07 PM
Thanks for your article. It is very useful but I need your help please. I designed C# project in Visual studio 2010 that had edit buttons and textbox and I used similar to your codes. It worked fine in windows but when I converted to mac using monodevelop, these buttons didn't work as should be. The clipboard didn't paste any text outside the project but if I wrote anything inside the textbox and copied then press paste then it fine. I tried to find solution through the internet and I come with this: I have to write independent code for the clipboard for mac to carry the clipboard contents so it will work with different processes or applications. Could you please tell me what to do. Thanks
Steve StacelPosted Sep 7, 2011, 4:03 PM
I have a multiline textbox with a max = 1000 characters. I would like to disable the resize handle located on the bottom right of the textbox. How do I do it? thanks Steve
jhnPosted Mar 24, 2011, 3:19 AM
pls rply as soon as possible..its urgent..
jhnPosted Mar 24, 2011, 3:18 AM
hi mahesh, i want to find the cursor position in textbox...can u pls help me ???
radha sPosted Dec 15, 2010, 6:56 AM
what if i want to create a textbox at design time and provide a font dialog at runtime so as to change the font properties i.e., the size, style and fontfamily of a textbox to some new values at runtime.. hope i'm clear with my question.. Any Advice.. is it possible..?!! thanks in advance, radha
prasanna shahPosted Nov 24, 2010, 8:11 AM
can we create more than one or unlimited dynamic textbox in same form by clicking on the button
BurakPosted Aug 25, 2010, 10:27 AM
Thnks for sharing this good article. But i want to ask a next step question for this article which you didn't mention. You said that "Name property represents a unique name of a TextBox control. It is used to access the control in the code." It is so clear in this explanation. But when i create some "Textbox" objects with a "for" loop and give all of them unique names, like this : public void create_and_place_TextBox() { for (int i = 0 ; i < 3 ; i++) { TextBox txtbox = new TextBox(); txtbox.Name = "TextBox" + i; panel1.Controls.Add(txtbox); } } public void edit_TextBox() { /// In here there is no defined TextBox objects ( like i want TextBox1,TextBox2,TextBox3... ) /// because objects are created in run-time } Please tell me how can i reach and edit my "TextBox" objects in my "edit_TextBox" method ...
thor catindigPosted Aug 10, 2010, 9:59 PM
tnx 4 this.....@[email protected] so very helpful to us
pavan rPosted Jul 30, 2010, 1:01 PM
HI Mahesh, I am trying to print the contents of the text boxes and in the print it should be nicely formatted . liek with Tabs... do u have any idea , or could you through some light on how to go about this.. my email [email protected] Thanks, Pavan
Shad AkhtarPosted Jun 11, 2010, 3:21 AM
Hi Mahesh, How can I change the size of the textbox depending on the no of char in textbox through coding? Thanks in advance
Nikhil KumarPosted Jun 7, 2010, 6:26 AM
A history of TextBox , really owesome...
Kumar IyerPosted Jun 1, 2010, 12:07 PM
Mahesh, Thanks for this great article! It is very clear, concise and helpful. Best Regards, Kumar