Click here to Skip to main content
15,908,626 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionupdateing a program Pin
microuser_200027-Jun-06 21:09
microuser_200027-Jun-06 21:09 
AnswerRe: updateing a program Pin
Mekong River27-Jun-06 21:34
Mekong River27-Jun-06 21:34 
Questionvisual basic 2005 tutorials? Pin
bossman2127-Jun-06 17:44
bossman2127-Jun-06 17:44 
AnswerRe: visual basic 2005 tutorials? Pin
Mekong River27-Jun-06 21:38
Mekong River27-Jun-06 21:38 
GeneralRe: visual basic 2005 tutorials? Pin
bossman2128-Jun-06 5:56
bossman2128-Jun-06 5:56 
GeneralRe: visual basic 2005 tutorials? Pin
Mekong River28-Jun-06 13:29
Mekong River28-Jun-06 13:29 
QuestionClearing selected items from comboboxes Pin
Rashar27-Jun-06 17:12
Rashar27-Jun-06 17:12 
AnswerRe: Clearing selected items from comboboxes Pin
soodmonu27-Jun-06 19:56
soodmonu27-Jun-06 19:56 
i think one way you can follow is to define a variable as Controls....and then put a for loop for each variable in Controls.....then u can have a if statement or case statement inside which can filter all the Comboboxes and in that block u can clear the combobox.....and one thing is "Control is the base class for Buttons, ComboBox, Textbox etc. You may need to cast to appropriate type."

this could be something like....

Dim ctr As Control
For Each ctr In Controls
If TypeOf (ctr) Is ComboBox Then
CType(ctr, ComboBox).Items.Clear()
End If
Next

like that it can clear all the comboboxes in that form.

This could be one way. anyhow may be you have to format the code a bit, this is just an idea though
GeneralRe: Clearing selected items from comboboxes Pin
Rashar28-Jun-06 3:01
Rashar28-Jun-06 3:01 
QuestionLottery like program Pin
Thaddeus_jenkins27-Jun-06 9:09
Thaddeus_jenkins27-Jun-06 9:09 
AnswerRe: Lottery like program Pin
Mekong River27-Jun-06 15:27
Mekong River27-Jun-06 15:27 
QuestionKeeping checkbox value during DataGrid's Next Page Pin
DeepToot27-Jun-06 7:02
DeepToot27-Jun-06 7:02 
AnswerRe: Keeping checkbox value during DataGrid's Next Page Pin
Dave Kreskowiak27-Jun-06 9:48
mveDave Kreskowiak27-Jun-06 9:48 
GeneralRe: Keeping checkbox value during DataGrid's Next Page Pin
DeepToot27-Jun-06 9:58
DeepToot27-Jun-06 9:58 
QuestionApplication closing Pin
jon-8027-Jun-06 5:09
professionaljon-8027-Jun-06 5:09 
AnswerRe: Application closing [modified] Pin
Dave Kreskowiak27-Jun-06 6:56
mveDave Kreskowiak27-Jun-06 6:56 
GeneralRe: Application closing Pin
jon-8028-Jun-06 7:07
professionaljon-8028-Jun-06 7:07 
QuestionManipulating MS Word from VB 6.0 Pin
Motor7527-Jun-06 2:41
Motor7527-Jun-06 2:41 
AnswerRe: Manipulating MS Word from VB 6.0 Pin
Edbert P27-Jun-06 16:34
Edbert P27-Jun-06 16:34 
AnswerRe: Manipulating MS Word from VB 6.0 Pin
Jesper hoegh29-Jun-09 9:58
Jesper hoegh29-Jun-09 9:58 
QuestionCalling C# from VB 6.0 Pin
Motor7527-Jun-06 2:39
Motor7527-Jun-06 2:39 
AnswerRe: Calling C# from VB 6.0 Pin
Robert Rohde27-Jun-06 3:48
Robert Rohde27-Jun-06 3:48 
Questionsmpt Mail - Help Needed Pin
Jats_4ru27-Jun-06 1:36
Jats_4ru27-Jun-06 1:36 
AnswerRe: smpt Mail - Help Needed Pin
Chris Losinger27-Jun-06 1:44
professionalChris Losinger27-Jun-06 1:44 
AnswerRe: smpt Mail - Help Needed Pin
Hamid_RT27-Jun-06 2:36
Hamid_RT27-Jun-06 2:36 

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.