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

Visual Basic

 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
Dave Kreskowiak7-Dec-07 1:37
mveDave Kreskowiak7-Dec-07 1:37 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
bj930817-Dec-07 16:22
bj930817-Dec-07 16:22 
GeneralRe: Thread.Sleep() executed before finishing Paint Event Pin
Dave Kreskowiak8-Dec-07 3:57
mveDave Kreskowiak8-Dec-07 3:57 
GeneralRe: Thread.Sleep() executed before finishing Paint Event [modified] Pin
bj9308110-Dec-07 7:43
bj9308110-Dec-07 7:43 
QuestionHow to free the .dll after unloading the appdomain? Pin
cstrader2325-Dec-07 17:08
cstrader2325-Dec-07 17:08 
AnswerRe: How to free the .dll after unloading the appdomain? Pin
Dave Kreskowiak6-Dec-07 1:37
mveDave Kreskowiak6-Dec-07 1:37 
GeneralRe: How to free the .dll after unloading the appdomain? Pin
cstrader2326-Dec-07 5:47
cstrader2326-Dec-07 5:47 
GeneralBindingSource variable used before being assigned a value Pin
AAGTHosting5-Dec-07 13:12
AAGTHosting5-Dec-07 13:12 
I am using a binding source and when I assign the binding source to a dataTable I get an error that says I used the variable "bsMonStoreSched" before assigning it a value, a green line shows up under the binding Source.

Here is my code. Is there something I am doing wrong?

Also, can I use a single binding source instead of using a different binding source for each item I filter?

If you notice below I used the same dataTable and assigned it to multiple binding sources. Can I do this with one binding source?

Here is the code.

' declare variables<br />
Dim bsMonStoreSched As BindingSource<br />
Dim bsTuesStoreSched As BindingSource<br />
        <br />
' create table adapter objects<br />
Dim hoursTableAdapter As New DataSetTableAdapters.tbl_hoursTableAdapter<br />
Dim schedTableAdapter As New DataSetTableAdapters.tbl_store_schedTableAdapter<br />
<br />
' create data set objects<br />
Dim lpDataSet As New DataSet()<br />
<br />
' create dataTables<br />
Dim dtHours, dtSched As New DataTable()<br />
<br />
' fill the dataTables<br />
Try<br />
     hoursTableAdapter.Fill(lpDataSet.tbl_hours)<br />
     schedTableAdapter.Fill(lpDataSet.tbl_store_sched)<br />
Catch err As Exception<br />
     MessageBox.Show(err.Message)<br />
End Try<br />
<br />
dtHours = lpDataSet.tbl_hours<br />
dtSched = lpDataSet.tbl_store_sched<br />
<br />
' Set the binding Source for mon - tues<br />
bsMonStoreSched.DataSource = dtSched ' The green line shows up here<br />
bsTuesStoreSched.DataSource = dtSched<br />
<br />
' Filter the items to show results.<br />
bsMonStoreSched.Filter = "ss_day='Monday'"<br />
bsTuesStoreSched.Filter = "ss_day='Tuesday'"

GeneralRe: BindingSource variable used before being assigned a value Pin
Dave Kreskowiak5-Dec-07 16:28
mveDave Kreskowiak5-Dec-07 16:28 
GeneralRe: BindingSource variable used before being assigned a value Pin
AAGTHosting3-Jan-08 9:54
AAGTHosting3-Jan-08 9:54 
GeneralTableAdapter.FillBy Method Pin
AAGTHosting5-Dec-07 10:12
AAGTHosting5-Dec-07 10:12 
GeneralRe: TableAdapter.FillBy Method Pin
Dave Kreskowiak5-Dec-07 11:01
mveDave Kreskowiak5-Dec-07 11:01 
GeneralRe: TableAdapter.FillBy Method Pin
AAGTHosting5-Dec-07 12:20
AAGTHosting5-Dec-07 12:20 
GeneralRe: TableAdapter.FillBy Method Pin
Dave Kreskowiak5-Dec-07 16:24
mveDave Kreskowiak5-Dec-07 16:24 
GeneralRe: TableAdapter.FillBy Method Pin
AAGTHosting3-Jan-08 12:22
AAGTHosting3-Jan-08 12:22 
GeneralRe: TableAdapter.FillBy Method Pin
Dave Kreskowiak3-Jan-08 14:18
mveDave Kreskowiak3-Jan-08 14:18 
GeneralVBscript - not reading/holding string issue Pin
DFG5-Dec-07 10:03
DFG5-Dec-07 10:03 
GeneralRe: VBscript - not reading/holding string issue Pin
Dave Kreskowiak5-Dec-07 10:46
mveDave Kreskowiak5-Dec-07 10:46 
GeneralRe: VBscript - not reading/holding string issue Pin
DFG5-Dec-07 10:55
DFG5-Dec-07 10:55 
GeneralRe: VBscript - not reading/holding string issue Pin
Dave Kreskowiak5-Dec-07 11:03
mveDave Kreskowiak5-Dec-07 11:03 
GeneralOutput Directory Pin
Fahad Sadah5-Dec-07 6:37
Fahad Sadah5-Dec-07 6:37 
GeneralRe: Output Directory Pin
Dave Kreskowiak5-Dec-07 8:02
mveDave Kreskowiak5-Dec-07 8:02 
GeneralRe: Output Directory Pin
harveyhanson5-Dec-07 23:00
harveyhanson5-Dec-07 23:00 
GeneralOpening an embedded word document with MS Word automation [modified] Pin
craigmg785-Dec-07 5:15
craigmg785-Dec-07 5:15 
GeneralRe: Opening an embedded word document with MS Word automation Pin
Dave Kreskowiak5-Dec-07 6:17
mveDave Kreskowiak5-Dec-07 6:17 

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.