pop up another window

0 views
Skip to first unread message

Nuwan Silva

unread,
Nov 25, 2009, 10:22:46 PM11/25/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
this is a simple question i think but i cant seem to get it right.

im using  VS 2005 and its menu creating tool.

i have a main interface and on its menu bar you get
Add --> Student

when you click "Student" a student registration form pops up.

my problem is what i the code you can put on to popup this registration form?

// Add --> Student
private void Add_menu_item_student_Click(object sender, EventArgs e)
{
       // your code here
}

please any suggestions? 

thanks.

--
Thank You,
Best Regards,

Nuwan Silva
+94 779 804 543
nu1s...@gmail.com

Blootooth(R)

Karthikeyan R

unread,
Nov 26, 2009, 2:10:17 AM11/26/09
to dotnetde...@googlegroups.com
Hey nuwan,
 
Use the following code.
 

private void Add_menu_item_student_Click(object sender, EventArgs e)
{

Frm_student student = new Frm_student();

student .MdiParent = this.MdiParent;

student .MdiParent = this;

student .Show();

--
Thanks & Regards,
Karthikeyan

Nuwan Silva

unread,
Nov 26, 2009, 3:42:49 AM11/26/09
to dotnetde...@googlegroups.com
thanks buddy that worked :)

2009/11/26 Karthikeyan R <kart...@gmail.com>
Reply all
Reply to author
Forward
0 new messages