204 Topics

Member Avatar for
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
404
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 skyscraper11

im creating a voting system that add votes to the database but it seems that my update/submit button don't add numbers(INT) in my database. what could be the problem here?help my database schema: | cid | cpos | cfname | cmname | clname | cyr | cparty | votes | …

Member Avatar for cxzei
0
698
Member Avatar for nickurooo

So I have this: private void GetSuppliersList() { ds = oDAL.GetSuppliersList(); cmbSupplier.DataSource = ds.Tables["SuppliersHeader"]; cmbSupplier.DisplayMember = "SupplierName"; cmbSupplier.ValueMember = "SupplierID"; } And I need to display SupplierAddress from my SQL database into a textbox so I thought I might need to get the ID (Supplier ID) of the SelectedValue (Supplier …

Member Avatar for castajiz_2
0
219
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 mohd.nasrul.iwan.fajaruddin

I have 3 comboBox.. and i wanted a code for the thirdcombobox , something like "SELECT companyName FROM table where mainCategory = firstcombobox and subcategory = secondcombobox" , how do i do the sql query? my maincategory combobox is called mainCatU , and the subcategory is subCatU I managed to …

Member Avatar for KushMishra
0
216
Member Avatar for mohd.nasrul.iwan.fajaruddin

*new to C#* I have created a form , with a working coding , but i need an extra assistance. Somewhat , i am stuck on trying to figure out how to let the 3rd combobox value , determined by the first and second. Like this : [Main Form](http://i.imgur.com/1rePOge.png) For …

Member Avatar for KushMishra
0
245
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 mohd.nasrul.iwan.fajaruddin

I have created a form , with a working coding , but i need an extra assistance. Somewhat , i am stuck on trying to figure out how to let the 3rd combobox value , determined by the first and second. and what i wanted is , something like , …

Member Avatar for ddanbe
0
220
Member Avatar for tbuchli

// Create the cboSelectGroup, and add it to the navigation panel: //String[] strDefaults = {"Defaults"}; //cboSelectGroup = new JComboBox(strDefaults);Public Class Form1 cboSelectGroup.setPreferredSize(new Dimension(150, 40)); cboSelectGroup.setMinimumSize(new Dimension(150, 40)); cboSelectGroup.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnImagesActionPerformed(evt); } });

Member Avatar for tbuchli
0
283
Member Avatar for Kanshika

I am creating crystal report in ASP.NET and C#.I am creating a crystal report.All are going fine if I give textbox for search parameter but when I give combobox for search parameter then it does not generate report.Data does not come into DATATABLE.Where I am doing wrong? sql = "select …

Member Avatar for Rahul47
0
704
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 vijaycare

Hi, I am using windows form. One of the form containing a combobox which populates data using datatable method. If the user found there is no particular data then they can add using an another form thru a button click to open and save the data. The saved data in …

Member Avatar for robert.knighton.79
0
194
Member Avatar for Indians

i want if user select one value in combo box that value should store in db and then display what they are selected. for example if user select CONFIRM option that value stored in db after that it display CONFIRM instead of that combo box form and button. Here i …

Member Avatar for hag++
0
3K
Member Avatar for pardeepkhatri
Member Avatar for TheNewKid

Hey everyone. I am working on learning how to make some different controls with win32 and at the moment I amt trying to make a combobox with small images next to each option. However when I run my code the options are there but the images are missing. Can anyone …

Member Avatar for mitrmkar
0
339
Member Avatar for gurupts

I Need some help.i just have some tables in data base, that is school ---Name(primary key),phonenumber,street,town,state,country college---Name(primary key),phonenumber,street,town,state,country Railwaystation---Name(primary key),phonenumber,street,town,state,country Hotel---Name(primary key),phonenumber,street,town,state,country In the front end, i will put two combobox and a submit button. All i need is first combo box will have to select the table.Second combobox shows …

Member Avatar for AARTI SHRIVAS
0
218
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
551
Member Avatar for santu_1

Hi I am adding comboboxes dynamically in a panel in windows form application. At run time, when I select any one of the comboboxes, all the comboboxes changes. i.e they dont retain individual selected item values. here is my code. for(int i=0;i<20;i++) { Label l = new Label(); l.Text = …

Member Avatar for ss125
0
831
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 iBackpace

Hello, help me please. I have a db sample ( http://i.imgur.com/JRZ2ojP.png ) I have 1 combobox and 1 textbox If the combobox select "Notebook" then on the textbox it must be display the corresponding itemStock (3) Please :( By the this my simple code for my combobox Try Query = …

Member Avatar for Begginnerdev
0
643
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
230
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
363

The End.