Click here to Skip to main content
15,916,949 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionShowing webpages Pin
The real $M@28-Sep-07 5:14
The real $M@28-Sep-07 5:14 
AnswerRe: Showing webpages Pin
svanwass28-Sep-07 5:38
svanwass28-Sep-07 5:38 
GeneralRe: Showing webpages Pin
The real $M@28-Sep-07 20:38
The real $M@28-Sep-07 20:38 
AnswerRe: Showing webpages Pin
DigiOz Multimedia28-Sep-07 8:47
DigiOz Multimedia28-Sep-07 8:47 
GeneralRe: Showing webpages Pin
Dave Kreskowiak28-Sep-07 9:21
mveDave Kreskowiak28-Sep-07 9:21 
GeneralRe: Showing webpages Pin
DigiOz Multimedia28-Sep-07 19:20
DigiOz Multimedia28-Sep-07 19:20 
QuestionAccessing controls on startup Form Pin
AliAmjad28-Sep-07 4:21
AliAmjad28-Sep-07 4:21 
AnswerRe: Accessing controls on startup Form Pin
Dave Kreskowiak28-Sep-07 6:10
mveDave Kreskowiak28-Sep-07 6:10 
AliAmjad wrote:
how can i access controls of Startup Form from another class.


In proper OOP programming, you don't. The only class responsible for those controls would be the form class. Your other classes do not need to know about those controls, nor should they even care to update them themselves. This would tie your other class to that form so hard you would be able to use the class in any other project.

Your class should be exposing events and properties that your Form class can get to and subscribe to so the form updates it's own controls, not the other way around.


A guide to posting questions on CodeProject[^]

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


GeneralRe: Accessing controls on startup Form Pin
AliAmjad29-Sep-07 4:22
AliAmjad29-Sep-07 4:22 
GeneralRe: Accessing controls on startup Form Pin
Dave Kreskowiak29-Sep-07 5:16
mveDave Kreskowiak29-Sep-07 5:16 
GeneralRe: Accessing controls on startup Form Pin
AliAmjad29-Sep-07 7:16
AliAmjad29-Sep-07 7:16 
GeneralRe: Accessing controls on startup Form Pin
Dave Kreskowiak29-Sep-07 8:17
mveDave Kreskowiak29-Sep-07 8:17 
GeneralRe: Accessing controls on startup Form Pin
AliAmjad29-Sep-07 11:39
AliAmjad29-Sep-07 11:39 
QuestionCrystal Reports Database Login Problem Pin
Kschuler28-Sep-07 3:58
Kschuler28-Sep-07 3:58 
AnswerRe: Crystal Reports Database Login Problem Pin
Paul Conrad30-Sep-07 13:41
professionalPaul Conrad30-Sep-07 13:41 
GeneralRe: Crystal Reports Database Login Problem Pin
Kschuler1-Oct-07 2:57
Kschuler1-Oct-07 2:57 
QuestionError? Pin
gates0928-Sep-07 2:23
gates0928-Sep-07 2:23 
AnswerRe: Error? Pin
GuyThiebaut28-Sep-07 2:35
professionalGuyThiebaut28-Sep-07 2:35 
GeneralRe: Error? Pin
gates0928-Sep-07 2:45
gates0928-Sep-07 2:45 
AnswerRe: Error? Pin
gates0928-Sep-07 2:47
gates0928-Sep-07 2:47 
QuestionRe: Error? Pin
gates0928-Sep-07 3:11
gates0928-Sep-07 3:11 
AnswerRe: Error? Pin
GuyThiebaut28-Sep-07 4:04
professionalGuyThiebaut28-Sep-07 4:04 
GeneralRe: Error? Pin
gates0928-Sep-07 4:19
gates0928-Sep-07 4:19 
GeneralRe: Error? Pin
GuyThiebaut28-Sep-07 4:22
professionalGuyThiebaut28-Sep-07 4:22 
QuestionOutlook2003 Pin
PeterStaal28-Sep-07 2:21
PeterStaal28-Sep-07 2:21 

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.