Click here to Skip to main content
15,897,315 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDatagridview checkbox column Pin
sreerajknair25-Jul-09 18:37
sreerajknair25-Jul-09 18:37 
AnswerRe: Datagridview checkbox column Pin
Paramu197325-Jul-09 22:32
Paramu197325-Jul-09 22:32 
QuestionImport xml into ms access database Pin
tessers25-Jul-09 13:03
tessers25-Jul-09 13:03 
AnswerRe: Import xml into ms access database Pin
Christian Graus25-Jul-09 13:46
protectorChristian Graus25-Jul-09 13:46 
GeneralRe: Import xml into ms access database Pin
tessers25-Jul-09 22:32
tessers25-Jul-09 22:32 
GeneralRe: Import xml into ms access database Pin
elizas8-Feb-10 19:24
elizas8-Feb-10 19:24 
QuestionHow to Re-Update the SqlDataAdapter() Pin
Paramu197325-Jul-09 1:36
Paramu197325-Jul-09 1:36 
AnswerRe: How to Re-Update the SqlDataAdapter() [modified] Pin
Andy_L_J25-Jul-09 6:37
Andy_L_J25-Jul-09 6:37 
Make your query a routine:

Private sub GetData()

  dim Query1 as string="Select * from My_Table"
  Dim Da1 as SqlDataadapter,Ds1 as new Dataset,dtb1 as new datatable
  con.open()
  Da1=new sqlDataAdapter(Query1,con)
  Da1.Fill(Ds1)
  con.close()
  dtb1=Ds1.Tables(0)

  ' Update your UI here...

End Sub


then call this from both the FormLoad(...) event and the ComboBox._Click(...) event.

<edit -="" while="" this="" code="" is="" crap,="" it="" will="" work.="" make="" sure="" you="" are="" doing="" the="" correct="" cleanup="" etc.="">
Private Sub FormLoad(...)...
  GetData() 
End Sub

Private Sub ComboBox_Click(...)...
  ComboBox.Items.Clear()
  GetData()
End Sub


I don't speak Idiot - please talk slowly and clearly

I don't know what all the fuss is about with America getting it's first black president. Zimbabwe's had one for years and he's sh*t. - Percy Drake , Shrewsbury

Driven to the arms of Heineken by the wife

modified on Saturday, July 25, 2009 12:43 PM

GeneralRe: How to Re-Update the SqlDataAdapter() Pin
Paramu197325-Jul-09 22:24
Paramu197325-Jul-09 22:24 
QuestionAgain Repeat : Outlook Share Add-In setup Working On Vista but not in Window XP Pin
dcdhingra25-Jul-09 0:31
dcdhingra25-Jul-09 0:31 
AnswerRe: Again Repeat : Outlook Share Add-In setup Working On Vista but not in Window XP Pin
Andy_L_J25-Jul-09 6:49
Andy_L_J25-Jul-09 6:49 
Questionproblem in date asve Pin
faravani24-Jul-09 21:53
faravani24-Jul-09 21:53 
AnswerRe: problem in date asve Pin
Mycroft Holmes24-Jul-09 23:18
professionalMycroft Holmes24-Jul-09 23:18 
QuestionMy application shows SPY and Virus Pin
Anubhava Dimri24-Jul-09 19:36
Anubhava Dimri24-Jul-09 19:36 
AnswerRe: My application shows SPY and Virus Pin
Christian Graus25-Jul-09 12:54
protectorChristian Graus25-Jul-09 12:54 
GeneralRe: My application shows SPY and Virus Pin
Anubhava Dimri26-Jul-09 18:12
Anubhava Dimri26-Jul-09 18:12 
QuestionVB6 and XP Taskbar Pin
starchaser0924-Jul-09 8:39
starchaser0924-Jul-09 8:39 
AnswerRe: VB6 and XP Taskbar Pin
Henry Minute24-Jul-09 9:48
Henry Minute24-Jul-09 9:48 
Questionsearch a record Pin
waner michaud24-Jul-09 6:52
waner michaud24-Jul-09 6:52 
AnswerRe: search a record Pin
Ian Shlasko24-Jul-09 6:57
Ian Shlasko24-Jul-09 6:57 
GeneralRe: search a record Pin
waner michaud24-Jul-09 8:40
waner michaud24-Jul-09 8:40 
GeneralRe: search a record Pin
Ian Shlasko24-Jul-09 9:04
Ian Shlasko24-Jul-09 9:04 
GeneralRe: search a record Pin
waner michaud7-Aug-09 10:02
waner michaud7-Aug-09 10:02 
AnswerRe: search a record Pin
DJ Matthews24-Jul-09 7:10
DJ Matthews24-Jul-09 7:10 
Questioncalculating sum in a view Pin
Ebube24-Jul-09 3:18
Ebube24-Jul-09 3:18 

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.