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
Maha
NA
0
326.3k
Main Window
Sep 20 2014 1:20 PM
Book says that:
CREATING A Form THAT Is A PROGRAM'S
MAIN WINDOW
You can instantiate a Form within an application and use the ShowDialog() method to display it, as in the program in Figure 9-15. Alternatively, you can create a child class
from Form that becomes the main window of an application. When you create a
new
main window
, you mu
st complete two steps:
•You must derive a new custom class from the base class System.Windows.Forms.Form.
•You must write a Main() method that calls the Application. Run() method, and you must pass an instance of your newly created Form class as an argument. This activity starts the program and makes the form visible.
Why is it called Main Window? Problem is highlighted.
Reply
Answers (
2
)
VS.NET Search option
Trying to set up a menu in the start of program