473,387 Members | 1,779 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,387 software developers and data experts.

C# Combobox and textbox

1
My i ask, how to do when we select a selected item in Combobox and the selected item may or may not to fill in the Textbox?
For example, select a item in Combobox and no need to do a remark in it or can do remark.
Jan 10 '17 #1
1 1713
Luk3r
300 256MB
Expand|Select|Wrap|Line Numbers
  1.         private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
  2.         {
  3.             textBox1.Text = comboBox1.SelectedItem.ToString();
  4.         }
Jan 10 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

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: Andy | last post by:
I am having trouble using the ComboBox in my app. I am attempting to use the text from the ComboBox, to search the list box portion. However: In my "TextChanged" event: I cannot get the value...
8
by: Bernie Yaeger | last post by:
As much as 10 years ago we had a combobox that would display, in a dropdownlist (not a dropdown where you can enter code in a textbox element of the cbox), a series of items that would be...
1
by: Shane | last post by:
Pressing the down arrow button on a combo box fires the "DropDown" event. Which event fires when you press the down arrow button a second time? I want to use the combobox as a textbox with a...
5
by: Brian | last post by:
I've setup a custom combobox control that allows a multikey selections. This lets the user enter key presses and the combo scrolls to the matching selection. I run into a bug when the user opens...
6
Walt in Decatur
by: Walt in Decatur | last post by:
I have implemented successfully a single-cascade ComboBox combination on a form in my database (using an AfterUpdate event code). I have also successfully implemented a ComboBox + TextBox...
2
by: Hardik Patel | last post by:
hi guys, I have a combobox and i want to use that value in query suppose I have form in that i have textbox and combo box and button. And I have code like this in button onclick event. Code: ...
1
by: kumsay | last post by:
Hi, I have a combobox, textbox, listbox, and a save button. Combobox is filled with illness names stored from database. Every illness that will be selected from the combobox, its symptoms will be...
5
by: Sandy1992 | last post by:
Hi friends, I am using A2010. I have completed preparing the whole application but stuck with reports. what I want to do: There is 1 command button and 1 textbox/combobox(happy if works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.