Click here to Skip to main content
16,011,436 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Need a New Tool Bar Pin
kolag28-Oct-07 22:24
kolag28-Oct-07 22:24 
GeneralRe: Need a New Tool Bar Pin
The ANZAC28-Oct-07 23:27
The ANZAC28-Oct-07 23:27 
Questionconnect to database oracle with VB.Net 2003 Pin
kendo1724-Oct-07 1:32
kendo1724-Oct-07 1:32 
AnswerRe: connect to database oracle with VB.Net 2003 Pin
Dave Kreskowiak24-Oct-07 6:19
mveDave Kreskowiak24-Oct-07 6:19 
GeneralRe: connect to database oracle with VB.Net 2003 Pin
kendo1724-Oct-07 7:17
kendo1724-Oct-07 7:17 
GeneralRe: connect to database oracle with VB.Net 2003 Pin
Dave Kreskowiak24-Oct-07 8:21
mveDave Kreskowiak24-Oct-07 8:21 
QuestionPopulate 2 DDL's with SQL Database Names Pin
paulray24-Oct-07 1:13
paulray24-Oct-07 1:13 
AnswerRe: Populate 2 DDL's with SQL Database Names Pin
Dave Kreskowiak24-Oct-07 6:12
mveDave Kreskowiak24-Oct-07 6:12 
You don't do databinding like this using a DataReader. A DataReader reads through the returned records forward only. Since during the first bind, you had the reader go through all the records once, there's no way to get it to go back and do it again for the second bind.

Drop the DataReader and use a DataAdapter to fill a DataTable, then you can bind both ComboBox's (please don't use abbreviations like DDL!) to that DataTable.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


Questiondatepart funtion Problem Pin
soniasan24-Oct-07 1:13
soniasan24-Oct-07 1:13 
AnswerRe: datepart funtion Problem Pin
kubben24-Oct-07 1:59
kubben24-Oct-07 1:59 
GeneralRe: datepart funtion Problem Pin
soniasan24-Oct-07 22:55
soniasan24-Oct-07 22:55 
AnswerRe: datepart funtion Problem Pin
SHatchard24-Oct-07 3:55
SHatchard24-Oct-07 3:55 
AnswerRe: datepart funtion Problem Pin
Dave Kreskowiak24-Oct-07 6:06
mveDave Kreskowiak24-Oct-07 6:06 
QuestionAdding a control button to a commandbar (In Powerpoint) Pin
chakor12324-Oct-07 0:31
chakor12324-Oct-07 0:31 
QuestionClose PDF opened by webbrowser control Pin
hanssss24-Oct-07 0:25
hanssss24-Oct-07 0:25 
AnswerRe: Close PDF opened by webbrowser control Pin
Tom Deketelaere24-Oct-07 1:24
professionalTom Deketelaere24-Oct-07 1:24 
GeneralRe: Close PDF opened by webbrowser control Pin
hanssss24-Oct-07 1:49
hanssss24-Oct-07 1:49 
QuestionHow to send mail using VB in Windows XP platform [modified] Pin
monSur hoq24-Oct-07 0:14
monSur hoq24-Oct-07 0:14 
AnswerRe: How to send mail using VB in Windows XP platform Pin
Dave Kreskowiak24-Oct-07 5:59
mveDave Kreskowiak24-Oct-07 5:59 
QuestionError Capture Pin
danasegaranea23-Oct-07 23:11
danasegaranea23-Oct-07 23:11 
AnswerRe: Error Capture Pin
Christian Graus23-Oct-07 23:37
protectorChristian Graus23-Oct-07 23:37 
GeneralRe: Error Capture Pin
danasegaranea24-Oct-07 0:24
danasegaranea24-Oct-07 0:24 
Questionzoom in and out the tabcontrol and its contents Pin
eyes200723-Oct-07 22:12
eyes200723-Oct-07 22:12 
AnswerRe: zoom in and out the tabcontrol and its contents Pin
Ajay.k_Singh23-Oct-07 23:10
Ajay.k_Singh23-Oct-07 23:10 
GeneralRe: zoom in and out the tabcontrol and its contents [modified] Pin
eyes200724-Oct-07 0:42
eyes200724-Oct-07 0:42 

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.