204 Topics

Member Avatar for
Member Avatar for bangor_boy

I have been playing about with some code tonight and trying to add things to it, so i know it wont make sense when talking about cats and dogs, females and males and music, I run this code and the GUI comes up I click add CD and the required …

Member Avatar for NormR1
0
823
Member Avatar for king03

I have an attachment below to show you how my program should work. How do I add 1500 to the textbox that shows the total amount to be charged if male is selected in the gender combobox ?

Member Avatar for harishbansal90
0
111
Member Avatar for kvandenbosch

I have a datagridview with two columns: species and variety, where the dropdown list in variety depends on the species chosen in column 1. I have no problem setting the dropdown list for a new, blank record; the problem comes when I am populating the grid with existing records. I …

0
78
Member Avatar for king03

Hi there guys I need help in my c# program. I have an enrollment form for students and I can't add the additional charge of 1500 for male students. As you can see in my attachment, the textbox below which contains 9164 must be 10664 if a student is male. …

Member Avatar for Mitja Bonca
0
136
Member Avatar for king03

Hi there guys I have a question. How do I put values on items in a comboBox and compute its total? You can look at my attachment for your reference. Normal Subjects are worth 2 units and Subjects with "-Lab" are worth 1 unit each. Now when I check subjects …

Member Avatar for duke_swh
0
149
Member Avatar for boywonda1

hey all.. I'm [U]new[/U] to VB.net and i wanted to find out how i could load the names of files(in a specified dir) into a combobox? I knw i should have posted code..but i only have an idea as to what should happen. correct me where i'm wrong. 1. get …

Member Avatar for lolafuertes
0
1K
Member Avatar for elvis1

Hi guys. I have this ComboBox which I made : [url]http://i.imgur.com/kkB8T.png[/url] I want to reference each item from the combo to a win form . So far Ive this : string comboSelectedValue = comboBox1.SelectedItem.ToString(); MessageBox.Show(comboSelectedValue); It does display of course the value Ive chosen but thats not what I want …

Member Avatar for elvis1
0
158
Member Avatar for kerek2

Hi Alls, Really need your help. I'm trying to list all text file in Application Startup path folder in combobox but cannot...can anyone help?.....In Application Startup Path folder i got more than 3 .txt file. So i want to list out in combobox...please help me..thank you

Member Avatar for codeorder
0
2K
Member Avatar for dwayned

Hi I am trying to update my database based on the selected values in two comboboxes. Combobox1 = Manufacturers Combobox2 = Orderlists In the App the user selects a manufacturer and then an orderlist and then presses Ok button which updates the default orderlist for the manufacturer. I am having …

Member Avatar for InsitizrT
0
2K
Member Avatar for Xaelian

I'm making a PHP script for controlling my mssql databases. But I ran into a couple of problems. The first problem is that I want to make a combobox out of all the databases in my microsoft SQL server. The following SQL syntax gives the results that I'm looking for, …

Member Avatar for Xaelian
0
86
Member Avatar for gruffy321

[CODE] Private Sub Combo1_Change() With Me.Combo2.Enabled = False Select Case Me.Combo1 Case "bob" Me.Combo2.Enabled = True Case "carol" Me.Combo2.Enabled = True Case "jeff" Me.Combo2.Enabled = False Case "freeda" Me.Combo2.Enabled = false Else: Combo2.Enabled = False End Select End Sub[/CODE] Hi all , this code seems to be wrong as i …

Member Avatar for gruffy321
0
127
Member Avatar for Farhad.idrees

I have combo box of programme and another is courses.. when i select any programme combo box so courses combobox add courses with respect to programme... the problem is when select another programme so previously programm's course also included in combobox.. i want to remove previously courses..in courses combobox. [CODE] …

Member Avatar for Farhad.idrees
0
5K
Member Avatar for jstfsklh211

[CODE] <script type="text/javascript"> //<![CDATA[ function cbUpdate() { var opt; var sel = document.info.cbShow; sel.style["display"] = "block"; sel.length = 0; opt = document.createElement( "option" ); opt.setAttribute("value", "0"); optTxt = document.createTextNode(document.info.cbSelected.value); opt.appendChild(optTxt); sel.appendChild(opt); for(i = 0; i < document.info.cbHold.length; i++)//or use ajax { if ((document.info.cbHold[i].text).indexOf(document.info.cbSelected.value) != -1) { opt = document.createElement( "option" …

0
82
Member Avatar for bunnyali2011

Well I have a combobox with 3 items namely: Product Size and Cost. I have also a maskedtextbox. If I select "Product" and "Size" on the combobox, I want to disable the maskedtextbox from filling, how must I do it?

Member Avatar for AndreRet
0
180
Member Avatar for forhacksf

I need a little help please,here is my question: How can I get the current index in a jComboBox? I searched it on google and i cant seem to find any answer. I need to get the index of the item that I select from a Combobox. Please help

Member Avatar for JamesCherrill
0
249
Member Avatar for Farhad.idrees

Hi i want to read xml.. i have two combo boxes one is showing Prgorrames Name and 2nd will show Semester No with respected to Programme.. For example if I select Programme BBa so another combobox will show all the semesters of BBa...and when i select semester 5 so data …

Member Avatar for CsharpChico
0
132
Member Avatar for AngelicOne

There's an error saying that the combobox is already b, inded to a datasource, thus cannot add new items. This is how I populate my combobox [CODE] cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "usp_distinctevent"; cmd.Connection = con; da = new SqlDataAdapter(); da.SelectCommand = cmd; ds = new …

Member Avatar for Mitja Bonca
0
352
Member Avatar for arezz09
Member Avatar for codeorder
0
124
Member Avatar for wilfredkojo

Hello guys, Please i have a problem and i need help.Please I have two table called 1.Register product table 2.Sell product table Register product table consist of (Product Id (txtProdId.text) and Product Name(txtProdName.text)) NB. All are textboxes Sell product table consist of (Product Name(cboProdName.text) and ProdPrice (txtProdCost.text)). NB. ProductName over …

Member Avatar for Pgmer
0
154
Member Avatar for ChrisHunter

Hi i need to add a combo box to a property grid that can be populated with the result of an sql statement, i can more than likely populate it when i come to it but i have no idea how to add the combo box. Currently i am creating …

0
166
Member Avatar for elson.james

Hi everyone! I am new in Web Programming. I want in my ComboBox to pop up a question everytime a user changes the combo box. It will ask, "Are you sure you want to update" then if the user clicks on yes it will be redirected to another page and …

Member Avatar for SolidSolutions
0
481
Member Avatar for ChrisHunter

Hi I'm pritty new to C# I'm having trouble with items repeating in a combo box This method gets the values from my table and stores it in the list of strings which it does fine . . . I think. [CODE]public class EditStates { public List<string> getStates(CEditStates ced) { …

Member Avatar for lolafuertes
0
211
Member Avatar for Ambislm

I made a simple application that have a combobox which is loaded with database value and a textfield which should display text related to combo box selection. Name Number number1 1234 number2 2345 number2 5678 number3 2212 So combo box will have values number1, number2, number3. when user selects number1, …

Member Avatar for Ambislm
0
188
Member Avatar for scias23

Has anyone here tried putting a combobox to a bound datagridview? The selected value of the combobox will depend on the value of the corresponding column in the database. I have a datagridview. When the user clicks the edit button, the application fetches the records from the database and binds …

Member Avatar for scias23
0
348
Member Avatar for tjm6f4

Hi, I'm pretty new to C# but I'm very familiar with C++ and first off I wanted to know if anyone has a good website with some tutorials for C#. Other than that, I have a few basic questions regarding GUI programming. I suppose one question at a time is …

Member Avatar for Ketsuekiame
0
143
Member Avatar for Rajeev R Nair

Hi friends, after a long time. i am developing a small tool by using VB.Net. I want to display data in comboboxes from a table which is in an access database. I using SQL query. Its a simple problem , I think the problem is in my COMMAND. I want …

Member Avatar for kvprajapati
0
794
Member Avatar for rick.eavans

[CODE] Imports System.Data.SqlClient Imports System.Data.SqlClient.SqlDataReader Imports System.Data.SqlClient.SqlConnection Public Class Order Inherits System.Windows.Forms.Form Dim myConnection As New SqlConnection Dim myCommand As New SqlCommand Dim ds As New DataSet Dim cmdtext As Integer Dim action As String Dim view As DataView Dim dr As SqlDataReader Sub fill() Dim adp As New SqlDataAdapter …

Member Avatar for kvprajapati
0
105
Member Avatar for dreamer_lek91

Hi I have this form which works well when it is in list box. but when I change the list box to combo box, the form does not works and I will be stuck at "record does not exist" even though i choose the record from the combo box. this …

Member Avatar for AndreRet
0
694
Member Avatar for crenfrow

This is probably very simple but i'm not seeing how to do it. My GUI for a project reads objects from a flat file (substitution for database) and puts each object as an item in a jComboBox. Then if the user wants to delete one of the objects, he selects …

Member Avatar for hanvyj
0
1K
Member Avatar for eikal

Hi, so im having the user pick two separate colors. Now when they pick the 2.... im going to run an event that determines that combination..... for an example if the user picks red and blue the outcome will be +5 points. Now the only way i can think of …

Member Avatar for codeorder
0
107

The End.