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
anhtruong52
NA
5
0
Probem to hide the first Form1 in VC# 2008
Jan 9 2011 11:13 AM
I have Form1 & Form2 in my VC# 2008 project, in the Form1 I did:
private void Form1_Load(object sender, EventArgs e)
{
this.Hide();
Form2 frm2 = new Form2();
frm2.Show();
}
But when it is executed, the Form1 still existed and covers Form2 in its back, even I try the following in Form2 ... the result is the same:
private void Form2_Load(object sender, EventArgs e)
{
Form1 frm1 = new Form1();
frm1.Hide();
}
Anyone can help, thanks in-advanced (by the way, I
don't want
to add a
Launch Form2
button in Form1)
Reply
Answers (
4
)
Async network io leaking memory?
How i create and use soap method using C#