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
Brandon Baum
NA
8
0
C# Open,Close,Hide custom forms
Jan 2 2010 12:42 AM
I am trying to build an application for a psychology doctorate study. I'm using a MIDI project in C#. I want to open a form with a series of questions on it, frmQuestions. When frmQuestions loads, I want to show a form that displays the instructions. On this form I want a button for the user to confirm when they have finished reading the instructions. When this button is clicked I want it to close the Instruction form.
private void frmQuestions_Load(object sender, EventArgs e)
{
Form childForm = new Instructions();
childForm.MdiParent = this.ParentForm;
childForm.Show();
}
on the instruction form I have this code so far.
private void button1_Click(object sender, EventArgs e)
{
this.Close; //I tried this
this.Hide; // I tried this as well.
this.Parent.Show; //still not working.
}
I know I'm missing something obvious, any pointers would be helpful.
Reply
Answers (
1
)
Fatal Execution Engine Error (7A0F3CD5) (800703e9)
upload and store in database and retrieve using picture box