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

Visual Basic

 
QuestionVisual Studio 2005 Standard vs. Professional Pin
dptalt18-Apr-07 10:01
dptalt18-Apr-07 10:01 
AnswerRe: Visual Studio 2005 Standard vs. Professional Pin
MatrixCoder18-Apr-07 10:23
MatrixCoder18-Apr-07 10:23 
AnswerRe: Visual Studio 2005 Standard vs. Professional Pin
Dave Kreskowiak18-Apr-07 10:30
mveDave Kreskowiak18-Apr-07 10:30 
GeneralRe: Visual Studio 2005 Standard vs. Professional Pin
dptalt19-Apr-07 2:26
dptalt19-Apr-07 2:26 
QuestionChanging properties of control in Class module Pin
mhovidz18-Apr-07 9:29
mhovidz18-Apr-07 9:29 
AnswerRe: Changing properties of control in Class module Pin
JackBradford18-Apr-07 10:10
JackBradford18-Apr-07 10:10 
GeneralRe: Changing properties of control in Class module Pin
mhovidz18-Apr-07 10:27
mhovidz18-Apr-07 10:27 
AnswerRe: Changing properties of control in Class module Pin
Dave Kreskowiak18-Apr-07 10:25
mveDave Kreskowiak18-Apr-07 10:25 
A class, unless it's the form itself, shouldn't care anything about any controls outside of it. This only worked in VB6 because, due to VERY bad practice, every form was visible to every piece of code in the app as a "global". This is, thankfully, no longer the case in VB.NET due to true OOP support.

Your class should expose a status property that the form code can use to update itself. This class could even expose an event that the form could subscribe to so it get's a notification that the status has changed.


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


Questioncreate event button by code Pin
reyhane18-Apr-07 7:05
reyhane18-Apr-07 7:05 
AnswerRe: create event button by code Pin
Dave Kreskowiak18-Apr-07 7:43
mveDave Kreskowiak18-Apr-07 7:43 
QuestionMultithreading Appplication Pin
mhovidz18-Apr-07 6:14
mhovidz18-Apr-07 6:14 
AnswerRe: Multithreading Appplication Pin
Dave Kreskowiak18-Apr-07 6:28
mveDave Kreskowiak18-Apr-07 6:28 
QuestionMessage Handling Pin
oerbay18-Apr-07 5:35
oerbay18-Apr-07 5:35 
AnswerRe: Message Handling Pin
MohammadAmiry18-Apr-07 5:50
MohammadAmiry18-Apr-07 5:50 
QuestionChanging exchange server in outlook profile Pin
PZC_JPC18-Apr-07 4:49
PZC_JPC18-Apr-07 4:49 
QuestionCitrix - CommonLanguage Runtime Debugging Services [modified] Pin
Chuck Easter18-Apr-07 4:37
Chuck Easter18-Apr-07 4:37 
AnswerRe: Citrix - CommonLanguage Runtime Debugging Services Pin
Dave Kreskowiak18-Apr-07 6:29
mveDave Kreskowiak18-Apr-07 6:29 
Questioncant add to database Pin
peteyshrew18-Apr-07 0:49
peteyshrew18-Apr-07 0:49 
AnswerRe: cant add to database Pin
Colin Angus Mackay18-Apr-07 2:33
Colin Angus Mackay18-Apr-07 2:33 
AnswerRe: cant add to database Pin
Eagle_Wizard18-Apr-07 4:59
Eagle_Wizard18-Apr-07 4:59 
AnswerRe: cant add to database Pin
njgrillo18-Apr-07 5:57
njgrillo18-Apr-07 5:57 
GeneralRe: cant add to database Pin
Colin Angus Mackay18-Apr-07 7:36
Colin Angus Mackay18-Apr-07 7:36 
QuestionPlz reply Pin
satyakala18-Apr-07 0:23
satyakala18-Apr-07 0:23 
AnswerRe: Plz reply Pin
Colin Angus Mackay18-Apr-07 2:36
Colin Angus Mackay18-Apr-07 2:36 
QuestionAll files Pin
Xmen Real 18-Apr-07 0:11
professional Xmen Real 18-Apr-07 0:11 

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.