473,322 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

textbox to combobox

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
4 7047
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
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
> 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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve | last post by:
I have an unbound combobox in the form header of a continuous form. The selection in the combobox sets the where clause in a querydef which determines QryPFrmInventoryManagement. The following code...
2
by: Zlatko Matiæ | last post by:
I have several forms hierarchycaly nested in each other (form/subform/subform/subform....). The final form is "continous form", while parent forms are single forms through which navigation was...
5
by: Quan Nguyen | last post by:
How can I obtain the textbox (editing field) control of the combobox? I tried combobox.Controls to obtain the collection of controls that the combobox contains but it turned out to be empty. Thanks.
0
by: Ken Arway | last post by:
Using .Net framework 1.1 I've got a Windows Forms application with a tab control having four tab pages. TabPage4 contains a Combobox and a TextBox, which are bound to the same XML file as a...
2
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
8
by: John | last post by:
Hi, I am developing an application using VB.Net and hope that the textbox can process features which are similar to auto-complete features in Window. For example, when user types "ap" in a...
1
by: Ivan Jericevich | last post by:
I want to join the text from a combobox and a textbox preferably with a space between, as string
1
by: billypit | last post by:
Hi, I am totaly new to MS Access. I have one form in MS Access in which i want that whenever i select an item from combobox then in the textbox on the same form or subform i want value from table...
8
by: Steve K. | last post by:
I want to have AutoSuggest based on a database (or webservice) query. So as the user types say... a last name I will make an async call to a service to get matches, then set the suggestion list at...
7
by: creative1 | last post by:
hi, I have a simple query. I have a dynamic combobox when I select one value fromt he combobox; on click a function is called that display the value of the combobox(i.e not same as text list of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.