By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,783 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,783 IT Pros & Developers. It's quick & easy.

textbox to combobox

P: n/a
i am useing 1textbox,1combobox and 1 button

i am trying to make it so when i hit button1 the text in textbox1 will
transfer to combobox1

--
Message posted via http://www.dotnetmonster.com
May 13 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
button1.Click += ClickHandler;

ClickHandler code:

combobox1.Items.Add(textbox1.Text);
--

Cheers,
Gaurav
http://www.edujini.in
-------------------
"C# newbie via DotNetMonster.com" <u21637@uwe> wrote in message
news:602a6e3aa6ee6@uwe...
i am useing 1textbox,1combobox and 1 button

i am trying to make it so when i hit button1 the text in textbox1 will
transfer to combobox1

--
Message posted via http://www.dotnetmonster.com

May 13 '06 #2

P: n/a
Gaurav Vaish (EduJini.IN) wrote:
button1.Click += ClickHandler;

ClickHandler code:

combobox1.Items.Add(textbox1.Text);
i am useing 1textbox,1combobox and 1 button

i am trying to make it so when i hit button1 the text in textbox1 will
transfer to combobox1


thx

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200605/1
May 13 '06 #3

P: n/a
> i am trying to make it so when i hit button1 the text in textbox1 will
transfer to combobox1

can you show some code so we know we're not doing your homework?
May 13 '06 #4

P: n/a
Martijn Mulder wrote:
i am trying to make it so when i hit button1 the text in textbox1 will
transfer to combobox1


can you show some code so we know we're not doing your homework?


ok is this good enough

Form1 f1 = new Form1;
f1.Show();

--
Message posted via http://www.dotnetmonster.com
May 14 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.