79 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for JustineAubrey

Hi, I'm trying to create cascading comboboxes, and my code isn't working. I've looked at other threads and I don't know why it isn't working properly. The first combo box displays System Names and the second combobox should populate the all Locations of that specific system chosen. When I run …

Member Avatar for Zahraa_1
0
320
Member Avatar for Praveen_10

I need to insert a cobobox value ,date value into database but am not sure if this is the method...i keep getting an exception saying 'Incorrect syntax near '@Numberpassengers'.' private void button1_Click(object sender, EventArgs e) { string c = ""; string s = ""; string d = ""; string t …

Member Avatar for Praveen_10
0
417
Member Avatar for Centorpe

I have two items which can be selected from two seperate comboboxes. I need to populate a 3rd combobox with range calculated from selection of first two. Default for this 3rd box must be 0 with plus and minus range. A little help would be much appreciated.

Member Avatar for Centorpe
0
252
Member Avatar for JOSheaIV

Hello Everyone, Okay I have got probably one of the weirdest question you have seen in awhile. I have been working on a custom image selection form (much like a file selection, but I didn't like the default Microsoft one). This also includes me rebuilding a custom object, that references, …

Member Avatar for JOSheaIV
0
190
Member Avatar for airhalynn101

I created a form with datagridview for a list of clients. Now, I want to add a Search funtionality for my list, so that the user can just type in the value he wants to see and the row with that value will get selected. Also, I want to add …

Member Avatar for airhalynn101
0
584
Member Avatar for tanatos.daniel

I am desperately trying to add a DataGridViewComboBoxColumn to my DataGridView programatically. Here is the Code I've got so far. DataTable dt = new DataTable(); dt = _userBL.getUsersTable().DefaultView.ToTable(false, "Person_ID", "FirstName", "LastName", "Title", "Username"); dataGridView1.DataSource = dt; DataGridViewComboBoxColumn ComboBoxCell = new DataGridViewComboBoxColumn(); ComboBoxCell.Name = "State"; ComboBoxCell.ValueMember = "State";//ComboBoxCell.DisplayMember = "State"; ComboBoxCell.DisplayMember …

Member Avatar for tanatos.daniel
0
236
Member Avatar for tanatos.daniel

I'm having a ComboBox in which I added items in order provide the user autocomplete for the text he's typing. I am looking for a property of ComboBoxes that could identify if the text was an item of the ComboBox or not. (I would like not to loop each time …

Member Avatar for tanatos.daniel
0
402
Member Avatar for tanatos.daniel

I would like to do something like this: comboBox6.Items.AddRange(new IEnumerable<int> { Enumerable.Range(1,8).ToArray() } ); (add numbers 1 to 8 to ComboBox Items using an IEnumerable object), but i can't figure out how. Thanks.

Member Avatar for castajiz_2
0
334
Member Avatar for mavtcr

I have gone through the articles appeared in this forum on the above Area.But it didn't helped me much,As I am new to VB.net. In VB6 I have the following code and it works well. Private Sub CmbBank_GotFocus() CmbBank.BackColor = vbYellow LblMsg = "Select Bank" Dim A, B, C As …

Member Avatar for mavtcr
0
4K
Member Avatar for mavtcr

Friends...A small problem I have a combobox in which I want to add list from a field from a ACCESS databas Table.It works well My code is here ACRS.Open "SELECT * FROM Salary1", CN, adOpenStatic, adLockOptimistic Sfm = ACRS!Month Do Until ACRS.EOF CmbSfm.AddItem ACRS!Month ACRS.MoveNext Loop My problem is , …

Member Avatar for Minimalist
0
203
Member Avatar for jkvt

Hi, I have a VBA script that places WinForm dropdown boxes (xlDropDown) into an excel workbook dynamically. For some reason, on the 17th box (called "INCL" & i + 1 in the code below), the data type of the placed shape becomes msoAutoShape instead of msoFormControl. All of the following …

Member Avatar for Stuugie
0
482
Member Avatar for PerplexedB

When one sets the DropDownStyle property of a combobox control to DropDownList, the system (from windows 7 on, not sure I had this problem in Vista) changes the appearance of the field, so that it somehow reminds one of a command button. I definitely need the DropDownList behavior, but I'd …

Member Avatar for PerplexedB
0
202
Member Avatar for Lethugs

Hi Just asking for a better solution for my approach in getting sql result with different multiple conditions based on comboboxes. I have a 4 comboboxes, for Branch, Type, Status and other info. User can select conditions from this comboboxes. The default value is "All", meaning no specific condition at …

Member Avatar for Lethugs
0
256
Member Avatar for Yeonng

Hi, I'm a beginner in Vb.net. I have a problem like this. My table name in dtabase is *tblsales* ![67f4b407a5443c6d48ba102a4779c9f2](/attachments/large/4/67f4b407a5443c6d48ba102a4779c9f2.JPG "67f4b407a5443c6d48ba102a4779c9f2") and i have 4 combobox in month and year ![81361dad1be3d14458ae4ad0a3aa9a55](/attachments/large/4/81361dad1be3d14458ae4ad0a3aa9a55.JPG "81361dad1be3d14458ae4ad0a3aa9a55") i need to find data between this 4 combobox. And this is the code i've tried before. For …

Member Avatar for Yeonng
0
1K
Member Avatar for spowel4

I am populating a combobox with a list of names and the list contains approximately 7600 items. Here is the code: foreach (string customerName in customerNames) { comboBoxCustName.Items.Add(customerName); } This loop takes nearly one minute to complete (58.6 seconds to be precise). I don't think it should take that long, …

Member Avatar for spowel4
0
223
Member Avatar for nikki05

Hi, I would like to to to store the Name and Items of ComboBox into dictionary. With the below code,I am able to store them. However, Name of ComboBox is as counting ComboBox10 to ComboBox1n. I would like to store Name of ComboBox as ComboBox1,ComboBox2 rather than ComboBox10 to ComboBox1n …

Member Avatar for nikki05
0
550
Member Avatar for nikki05

Hi I am storing name and texts of controls (Label, Button, ComboBox, ListBox, etc.) into a dictionary. With ContainsKey, I am able to find the texts of Labels, Buttons, and RadioButtons. However, I am getting problem to find the items of ComboBox. Appreciate if you have an idea. If _dic.ContainsKey(selectedControl.Name) …

Member Avatar for nikki05
0
223
Member Avatar for joseph.lyons.754

Hey Guys, What i want it to do : 1. Combobox is displayed with a list of countys ie Limerick Dublin Cork 2. Choose County brings up second Combobox with countys towns and villages. 3. Hit search brings up relevant towns and vilages from the county chosen. What it does: …

Member Avatar for joseph.lyons.754
0
288
Member Avatar for Paul_15

I have an issue within VB Express 2008 which I am struggling to resolve. I am trying to take the information from 3 columns in a CSV file (ServerRef, ServerName, ServerIP) with no header row and populate 3 combobox's for users to select from to initiate an RDP connection. So …

Member Avatar for Paul_15
0
229
Member Avatar for major_lost

I have a form with A GroupBox on it. Within the GroupBox is a TextBox and a ComboBox. I am trying to disable one or the other when either text is entered into the textbox OR when an item has been selected in the combobox. I can get the combobox …

Member Avatar for major_lost
0
294
Member Avatar for Papa_Don

Hi group! I have what I hope is a unique question: In need to populate a combo Box with the information stored in 6 different columns on one row of a data table. I know how to do this if it just one column and one row. To be specific, …

Member Avatar for Papa_Don
0
171
Member Avatar for kindofsudden

I have a combobox that is bound to a DB and works great. However, when the user adds a value to the table to which the combobox is bound, the combobox keeps the old value and adds the current items in the table. In this case the table originally held …

Member Avatar for kindofsudden
0
362
Member Avatar for imti321

<label class='colwidth' for='selectc' >Select Courses*: </label> <form action="send.php" name="course" id="states"method="post"> <Select name="States" id="State" style="width:40px;" > <option value=></option> <option value="1">HTML 5</option> <option value="2">JQuery</option> <option value="android">American Samoa</option> <option value="flash">Flash</option> <option value="flex">Flex</option> <option value="javascript">Javascript</option> </Select> <input type='submit' name='course' value='Submit' /> </form> And my php file is this <?php //Place state array at the …

Member Avatar for Webville312
0
348
Member Avatar for mnorton

Hi - I am a pretty remedial visual studio express user. I recently understood how to do cascading comboboxes using the binding sources of the related tables, eg tbl 1 Make, Table 2 model, so as eg only ford models displayed in cbo2 if Ford selected in cbo1 - thanks …

Member Avatar for mnorton
0
1K
Member Avatar for guilherme.carvalho.9250

Hello to everyone, im having trouble getting the value of a combobox in HTML to php! Frist I import data from a mysql collum into the combobox, being this the value of the combobox! I want to be able to get the selected value when I submit my form. I …

Member Avatar for broj1
0
9K
Member Avatar for verbalurbs

Hello I am trying to display an ID which is a primary key in my table by selecting the corresponding name in my table. the names have been saved in a combo box and depending on the name selected the textbox will display that Id. the code I have so …

Member Avatar for martinhosking
0
402
Member Avatar for ScarWars9

Hello, I have made an Employee Time clock application. I have been working on connecting my application to a MySQL database, I have a textbox wich is used to add an employee name to my database (this is working perfectly.), but I also a combobox where I want the list …

Member Avatar for ScarWars9
0
1K
Member Avatar for guilherme.carvalho.9250

Hello everyone, I'm new to php and i'm developing a website for a school project. I need to implement a combobox with some options, for exemple, if I choose "Alimentation" it appears a table with the specific fields for this option and If I choose other option it appears a …

Member Avatar for guilherme.carvalho.9250
0
2K
Member Avatar for kazekagerandy

i am working on a POS as a school project. im having a problem in getting the stocks, which is a record in my database. this is what i need to do, i need to populate the combobox with drug names with suggests. when i choose a certain drug, its …

Member Avatar for kazekagerandy
0
267
Member Avatar for LucianAdamson

Not sure what I am doing wrong but let me try to explain my issue. I have a single combobox on my form that I use to load external settings. If I load, lets say, 100 settings in to this combobox then I clear the combobox via Combobox1.items.clear(), then try …

Member Avatar for LucianAdamson
0
455

The End.