Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionLinkbutton not adding into table cell programmatically( problem ) Pin
Rameez Raja25-Aug-08 0:59
Rameez Raja25-Aug-08 0:59 
AnswerRe: Linkbutton not adding into table cell programmatically( problem ) Pin
jzonthemtn25-Aug-08 6:47
jzonthemtn25-Aug-08 6:47 
QuestionRead for database SQL 2005 with more than 20 columns in a record Pin
DCAUB25-Aug-08 0:44
DCAUB25-Aug-08 0:44 
AnswerRe: Read for database SQL 2005 with more than 20 columns in a record Pin
Colin Angus Mackay25-Aug-08 3:24
Colin Angus Mackay25-Aug-08 3:24 
GeneralRe: Read for database SQL 2005 with more than 20 columns in a record Pin
DCAUB25-Aug-08 3:35
DCAUB25-Aug-08 3:35 
GeneralRe: Read for database SQL 2005 with more than 20 columns in a record Pin
Colin Angus Mackay25-Aug-08 3:47
Colin Angus Mackay25-Aug-08 3:47 
QuestionHow to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek24-Aug-08 21:01
rprateek24-Aug-08 21:01 
AnswerRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
AlexeiXX325-Aug-08 6:10
AlexeiXX325-Aug-08 6:10 
rprateek wrote:
Dim dt As DataTable
dt = ds.Tables(0)
For Each row As DataRow In dt.Rows
cboCats.ValueMember = row("CatID")
cboCats.Items.Add(row("CatName"))
Next


Instead of adding each cat to combobox
Why dont you set datasource, displaymember and valuemember?

If you are using a different form to add, update and delete from your cats catalog, just call that form from your cat form (as you are doing now) using showdialog and after that, just call your loadcats again to refill combobox
I didnt really understand what you are doing, but this should work

Alexei Rodriguez

GeneralRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek25-Aug-08 13:46
rprateek25-Aug-08 13:46 
AnswerRe: How to refresh a combobox in another form after the values of the combo have been updated? Pin
rprateek27-Aug-08 17:20
rprateek27-Aug-08 17:20 
QuestionMinimize all windows Pin
AlexeiXX324-Aug-08 18:29
AlexeiXX324-Aug-08 18:29 
AnswerRe: Minimize all windows Pin
John Ad24-Aug-08 21:33
John Ad24-Aug-08 21:33 
GeneralRe: Minimize all windows Pin
AlexeiXX325-Aug-08 6:03
AlexeiXX325-Aug-08 6:03 
GeneralRe: Minimize all windows Pin
Jon_Boy25-Aug-08 7:35
Jon_Boy25-Aug-08 7:35 
GeneralRe: Minimize all windows Pin
AlexeiXX325-Aug-08 7:40
AlexeiXX325-Aug-08 7:40 
GeneralRe: Minimize all windows Pin
JR21227-Aug-08 1:56
JR21227-Aug-08 1:56 
QuestionA more elegent way?? Pin
Rafone24-Aug-08 13:08
Rafone24-Aug-08 13:08 
AnswerRe: A more elegent way?? Pin
jzonthemtn24-Aug-08 13:36
jzonthemtn24-Aug-08 13:36 
GeneralRe: A more elegent way?? Pin
Rafone24-Aug-08 16:01
Rafone24-Aug-08 16:01 
AnswerRe: A more elegent way?? Pin
Gideon Engelberth25-Aug-08 2:45
Gideon Engelberth25-Aug-08 2:45 
QuestionDAtaBinding Problem Pin
vidhish24-Aug-08 1:35
vidhish24-Aug-08 1:35 
AnswerRe: DAtaBinding Problem Pin
Mycroft Holmes24-Aug-08 16:47
professionalMycroft Holmes24-Aug-08 16:47 
AnswerRe: DAtaBinding Problem Pin
rprateek24-Aug-08 21:18
rprateek24-Aug-08 21:18 
AnswerRe: DAtaBinding Problem Pin
Polymorpher27-Aug-08 14:27
Polymorpher27-Aug-08 14:27 
QuestionBinding Problem Pin
vidhish24-Aug-08 1:32
vidhish24-Aug-08 1:32 

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.