TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ray dona
NA
29
0
Declaring variables in Windows form
Feb 25 2009 3:50 PM
Hi,
Can anyone tell me what is the best way to declare and initialize variables to be used in a Windows form at file level (to be used by the form where the variable is declared) and at global level (to be used by several forms). I’ve been declaring variables under ‘Required designer variable’ as shown below and initializing the variables in Page_Load event (I don’t want to mess around with the form’s constructor as it causes the designer window not to function). I would be very grateful.
private:
/// <summary>
/// Required designer variable.
/// </summary>
Reply
Answers (
1
)
Refresh Main form after closing sub form
Child form back to parent