Click here to Skip to main content
15,905,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNavigation Problem in vb.net MDI Form Pin
pdnet9-Dec-08 1:59
pdnet9-Dec-08 1:59 
AnswerRe: Navigation Problem in vb.net MDI Form Pin
Dave Kreskowiak9-Dec-08 4:43
mveDave Kreskowiak9-Dec-08 4:43 
QuestionHow to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Puneet Bhatnagar9-Dec-08 1:26
Puneet Bhatnagar9-Dec-08 1:26 
AnswerRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
CARPETBURNER9-Dec-08 2:01
CARPETBURNER9-Dec-08 2:01 
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
ChandraRam9-Dec-08 2:13
ChandraRam9-Dec-08 2:13 
AnswerRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
ChandraRam9-Dec-08 2:13
ChandraRam9-Dec-08 2:13 
AnswerRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Tom Deketelaere9-Dec-08 2:55
professionalTom Deketelaere9-Dec-08 2:55 
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Puneet Bhatnagar10-Dec-08 2:11
Puneet Bhatnagar10-Dec-08 2:11 
Hi,
Thanks for your help and time. However still I am facing some problem. Please find below my code.
Try

Dim sql As String
Dim DB2conn As DB2Connection
Dim ds As New DataSet
DB2conn = New DB2Connection("server=" & ServerAddress & ";database= " & sDBName & ";Connect Timeout=30;user Id=" & UName & ";password =" & pwd &)
Dim DB2Cmd As New DB2Command

sql = "Select * from ProjectMaster"
DB2conn.Open()
Dim DB2DA As New DB2DataAdapter(sql, DB2conn)
DB2Cmd = New DB2Command(sql, DB2conn, DB2trans)
DB2DA.Fill(ds)
ComboBox2.DataSource = ds.Tables(0)
ComboBox2.DisplayMember = "ProjectMaster.ReleaseNumber"
<b>Me.ComboBox2.ValueMember = "ProjectMaster.ProjectID"</b>
Catch ex As Exception
MessageBox.Show(ex.Message + " " + ex.Source)
Finally
DB2conn.Close()
End Try
The code is breaking at line (ComboBox2.ValueMember = "ProjectMaster.ProjectID"), in bold in code snippet. Please let me know where I am going wrong.
Again Thanks for your efforts.
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Tom Deketelaere10-Dec-08 2:25
professionalTom Deketelaere10-Dec-08 2:25 
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Puneet Bhatnagar11-Dec-08 1:49
Puneet Bhatnagar11-Dec-08 1:49 
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Tom Deketelaere11-Dec-08 2:08
professionalTom Deketelaere11-Dec-08 2:08 
GeneralError Message Pin
Puneet Bhatnagar11-Dec-08 16:17
Puneet Bhatnagar11-Dec-08 16:17 
AnswerRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
riced9-Dec-08 3:15
riced9-Dec-08 3:15 
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Jon_Boy11-Dec-08 4:27
Jon_Boy11-Dec-08 4:27 
GeneralFacing Problem while retrieving Pin
Puneet Bhatnagar11-Dec-08 17:53
Puneet Bhatnagar11-Dec-08 17:53 
GeneralRe: Facing Problem while retrieving Pin
riced12-Dec-08 5:21
riced12-Dec-08 5:21 
GeneralRe: Facing Problem while retrieving Pin
riced16-Dec-08 0:05
riced16-Dec-08 0:05 
GeneralRe: How to Add Two Different Strings to same Index In a Combobox - .NET1.1 Pin
Luc Pattyn9-Dec-08 3:35
sitebuilderLuc Pattyn9-Dec-08 3:35 
Questionvisual basic Pin
jayachandra.c8-Dec-08 19:51
jayachandra.c8-Dec-08 19:51 
AnswerRe: visual basic Pin
Christian Graus8-Dec-08 21:11
protectorChristian Graus8-Dec-08 21:11 
AnswerRe: visual basic Pin
~Khatri Mitesh~9-Dec-08 0:37
~Khatri Mitesh~9-Dec-08 0:37 
AnswerRe: visual basic Pin
Jon_Boy9-Dec-08 3:32
Jon_Boy9-Dec-08 3:32 
Questioncode to save editable data from MSFlexgid to database in vb 6.0. [modified] Pin
sumit52838-Dec-08 19:45
sumit52838-Dec-08 19:45 
AnswerRe: code to save editable data from MSFlexgid to database. Pin
Christian Graus8-Dec-08 21:12
protectorChristian Graus8-Dec-08 21:12 
QuestionCommunication between computers... Pin
Subjugate8-Dec-08 19:00
Subjugate8-Dec-08 19:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.