Click here to Skip to main content
15,900,110 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Cover a form and it no longer updates Pin
Luc Pattyn13-Jan-10 5:31
sitebuilderLuc Pattyn13-Jan-10 5:31 
GeneralRe: Cover a form and it no longer updates Pin
Gregory Gadow13-Jan-10 5:57
Gregory Gadow13-Jan-10 5:57 
GeneralRe: Cover a form and it no longer updates Pin
Tom Deketelaere13-Jan-10 3:57
professionalTom Deketelaere13-Jan-10 3:57 
GeneralRe: Cover a form and it no longer updates Pin
Gregory Gadow13-Jan-10 5:18
Gregory Gadow13-Jan-10 5:18 
QuestionVB+Crystal Report Problem Pin
Tufail Ahmad11-Jan-10 21:32
Tufail Ahmad11-Jan-10 21:32 
QuestionAbout Public Arrays in VB Pin
Niungareamit11-Jan-10 21:17
Niungareamit11-Jan-10 21:17 
AnswerRe: About Public Arrays in VB Pin
Wayne Gaylard12-Jan-10 2:37
professionalWayne Gaylard12-Jan-10 2:37 
AnswerRe: About Public Arrays in VB Pin
Ray Cassick12-Jan-10 6:53
Ray Cassick12-Jan-10 6:53 
Personally this is a very BAD idea.

Forms are objects that should encapsulate the data within them. At no time should one object just simply reach out and grab hold of data inside of another object. This is really one of the major tenets of OOP design.

That does not mean that you can't talk between forms, but it should be done properly via an established interface.

You should be providing an interface (functions, methods, or custom properties) on your forms for allow that type of communication to happen. This gives you a way to not only gain access between data on forms the proper OOP way, but also gives you the ability to provide data validation, authentication when needed, and also perhaps some contention detection when that may be needed also.

Please, NO public variables on forms! Forms are objects just like a class is. You don't open up a variable inside a class by making it public, you provide an accessor method to get to it. RIGHT? That's how you are doing in in your classes? Please say yes?

Forms are no different.


GeneralRe: About Public Arrays in VB Pin
Ian Shlasko12-Jan-10 11:11
Ian Shlasko12-Jan-10 11:11 
GeneralRe: About Public Arrays in VB Pin
MikeMarq12-Jan-10 12:10
MikeMarq12-Jan-10 12:10 
GeneralRe: About Public Arrays in VB Pin
Ray Cassick12-Jan-10 14:14
Ray Cassick12-Jan-10 14:14 
GeneralRe: About Public Arrays in VB Pin
Wayne Gaylard12-Jan-10 21:05
professionalWayne Gaylard12-Jan-10 21:05 
Questionset WaitCursor without a form running Pin
JW73811-Jan-10 9:12
JW73811-Jan-10 9:12 
AnswerRe: set WaitCursor without a form running Pin
nlarson1111-Jan-10 10:10
nlarson1111-Jan-10 10:10 
GeneralRe: set WaitCursor without a form running Pin
JW73811-Jan-10 10:44
JW73811-Jan-10 10:44 
AnswerRe: set WaitCursor without a form running Pin
Luc Pattyn11-Jan-10 11:04
sitebuilderLuc Pattyn11-Jan-10 11:04 
GeneralRe: set WaitCursor without a form running Pin
JW73811-Jan-10 23:02
JW73811-Jan-10 23:02 
QuestionPrint each row of database on crystal report. !! Pin
jeshra27911-Jan-10 5:31
jeshra27911-Jan-10 5:31 
AnswerRe: Print each row of database on crystal report. !! Pin
Paramu197311-Jan-10 20:54
Paramu197311-Jan-10 20:54 
Questionconverting matlab codes to vb codes?? Pin
sheshe8811-Jan-10 5:16
sheshe8811-Jan-10 5:16 
AnswerRe: converting matlab codes to vb codes?? Pin
Dave Kreskowiak11-Jan-10 6:17
mveDave Kreskowiak11-Jan-10 6:17 
QuestionContext Menu Event setup Pin
JaeBeam11-Jan-10 3:23
JaeBeam11-Jan-10 3:23 
AnswerRe: Context Menu Event setup Pin
Dave Kreskowiak11-Jan-10 6:16
mveDave Kreskowiak11-Jan-10 6:16 
AnswerRe: Context Menu Event setup Pin
Eddy Vluggen12-Jan-10 8:27
professionalEddy Vluggen12-Jan-10 8:27 
QuestionMultiQuery,MultiTables in Single Dataset & SQL DataAdapter ? Pin
Paramu197311-Jan-10 3:10
Paramu197311-Jan-10 3:10 

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.