LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2011, 02:35 PM   #1
ridoy
LQ Newbie
 
Registered: Feb 2011
Posts: 19

Rep: Reputation: 1
Textbox event


In one of my database project i add 3 textboxes for entering name from user like...First name,Middle name,Last name.I also want to add a mother textbox to show those 3 textbox properties while typing.Such as,when an user type his first name(as example,Ridoy) in First name textbox,that mother textbox will show that!!..similarly after typing middle name(as example,Pal) and last name(as example,Shuvro)...the Mother text box will show the whole name correctly...Ridoy Pal Shuvro..How can i do this?Anyone have a idea..

Thanks for any help.
 
Old 07-09-2011, 03:36 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
What you will typically need to do is set up an event listener of some sort. The event listener will detect when the content of one text box has changed, and update the other text box accordingly. The way to do so should be very easy to find in the documentation for whatever toolkit or framework you're using.

If you need a more specific answer, then we first need to know what you're using to make the text boxes. HTML and Javascript? Qt? GTK? Silverlight? Swing?

Last edited by dugan; 07-09-2011 at 03:45 PM.
 
Old 07-10-2011, 12:18 AM   #3
ridoy
LQ Newbie
 
Registered: Feb 2011
Posts: 19

Original Poster
Rep: Reputation: 1
Thanks for reply...I use C sharp for text boxes.
 
Old 07-10-2011, 05:45 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
C# is a programming language, not a GUI toolkit.
 
Old 07-10-2011, 08:30 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
There are two official GUI tookits for C#: WPF and WinForms. The second one is older and the only one available on Mono.

For WinForms, you're going to have the TextChanged event on one TextBox modify the Text property of the other one. Knowing how to do so is fundamental to C# programming. There are many tutorials on how to set up the events and delegates needed to make this happen --- including one you can find by following the first link.

Last edited by dugan; 07-10-2011 at 08:47 AM.
 
Old 07-10-2011, 09:07 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by dugan View Post
There are two official GUI tookits for C#: WPF and WinForms. The second one is older and the only one available on Mono.
I didn't know about that (though I assumed there is some Windows-specific toolkit that C# can use), but there's also GTK+ bindings for C#.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Pixel under username textbox dugan LQ Suggestions & Feedback 2 02-10-2011 05:37 AM
[SOLVED] textbox in C widapol Programming 3 10-21-2010 11:45 AM
color in dialog --textbox insamniac Programming 1 09-22-2009 09:31 AM
tab button in textbox Four LQ Suggestions & Feedback 0 02-14-2008 11:07 PM
Fire Event from other event in Visual C++ Express Edition chrisliando Programming 1 11-08-2007 05:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration