Click here to Skip to main content
15,917,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Produce reports. Any help plz? Pin
tellytub4-Jan-08 23:13
tellytub4-Jan-08 23:13 
GeneralRe: Produce reports. Any help plz? Pin
Tom Deketelaere7-Jan-08 1:04
professionalTom Deketelaere7-Jan-08 1:04 
QuestionDisplay String With Quotes Pin
Dan Suthar3-Jan-08 15:05
professionalDan Suthar3-Jan-08 15:05 
GeneralRe: Display String With Quotes Pin
Christian Graus3-Jan-08 15:15
protectorChristian Graus3-Jan-08 15:15 
AnswerRe: Display String With Quotes Pin
Nilesh Hapse3-Jan-08 18:32
Nilesh Hapse3-Jan-08 18:32 
AnswerRe: Display String With Quotes Pin
Dan Suthar3-Jan-08 23:36
professionalDan Suthar3-Jan-08 23:36 
GeneralFill By Methods Vs. Binding Source Pin
AAGTHosting3-Jan-08 12:43
AAGTHosting3-Jan-08 12:43 
GeneralRe: Fill By Methods Vs. Binding Source Pin
Dave Kreskowiak3-Jan-08 14:24
mveDave Kreskowiak3-Jan-08 14:24 
AAGTHosting wrote:
Dim bsMonStoreSched As BindingSource()
Dim bsTuesStoreSched As BindingSource()
Dim bsWedStoreSched As BindingSource()
Dim bsThurStoreSched As BindingSource()
Dim bsFriStoreSched As BindingSource()
Dim bsSatStoreSched As BindingSource()
Dim bsSunStoreSched As BindingSource()


First, let me say that you have no reason to use this many bindingsources for what your code is suggesting you're doing. One is enough.

Second, seriously, pick up a book on VB.NET for beginners. These lines mearly declare a variable that CAN hold a BindingSource object. You never actually created any BindSource objects because you're missing the New keyword in the Dim statement.
Dim bsTuesStoreSched As New BindingSource()

The problem you run into with this code is that as soon as these variables fall out of scope, the BindingSources will be destroyed. You have to declare these in class scope, not method scope.



A guide to posting questions on CodeProject[^]



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




Generala coding problem Pin
s3rro3-Jan-08 10:42
s3rro3-Jan-08 10:42 
GeneralRe: a coding problem Pin
Dave Kreskowiak3-Jan-08 10:58
mveDave Kreskowiak3-Jan-08 10:58 
GeneralRe: a coding problem Pin
Ray Cassick3-Jan-08 11:30
Ray Cassick3-Jan-08 11:30 
QuestionApplication exits without error message Pin
Volker Weichert3-Jan-08 9:06
Volker Weichert3-Jan-08 9:06 
GeneralRe: Application exits without error message Pin
Christian Graus3-Jan-08 11:12
protectorChristian Graus3-Jan-08 11:12 
GeneralRe: Application exits without error message Pin
Volker Weichert4-Jan-08 1:55
Volker Weichert4-Jan-08 1:55 
GeneralCannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 6:30
Ed Hill _5_3-Jan-08 6:30 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 6:34
Ed Hill _5_3-Jan-08 6:34 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Dave Kreskowiak3-Jan-08 7:16
mveDave Kreskowiak3-Jan-08 7:16 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 22:25
Ed Hill _5_3-Jan-08 22:25 
GeneralInvoice Management System Pin
wEb GuRu...3-Jan-08 1:26
wEb GuRu...3-Jan-08 1:26 
GeneralRe: Invoice Management System Pin
Dave Kreskowiak3-Jan-08 5:03
mveDave Kreskowiak3-Jan-08 5:03 
GeneralRe: Invoice Management System Pin
wEb GuRu...3-Jan-08 5:09
wEb GuRu...3-Jan-08 5:09 
GeneralInserting XML Elements using XMlDocument Pin
Benny_Lava3-Jan-08 0:18
Benny_Lava3-Jan-08 0:18 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Dave Kreskowiak3-Jan-08 4:59
mveDave Kreskowiak3-Jan-08 4:59 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Kschuler3-Jan-08 5:48
Kschuler3-Jan-08 5:48 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Volker Weichert3-Jan-08 8:49
Volker Weichert3-Jan-08 8:49 

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.