Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hi there,

 

im a C# newbie ... may i know how to open a new window (pop up) when i click the menu ? i write this and it works something .. but sometimes not :

 

using proC1.abc;

...

...

private void menuItem11_Click(object sender, System.EventArgs e)

{

MyWindowSample objdd = new MyWindowSample();

objdd.ShowDialog(this);

}

 

Note :

- 'MyWindowSample' is name of my Child window's Class

- 'proC1.abc' is name of my child window's namaspace

 

Pls assist .. is this correct ? Thks in advance...

  • Leaders
Posted

It works sometimes? What happens when it "doesn't work".

What if you remove this from between the parentheses?

Is the code being called? Also, this won't work while the dialog form is displayed. :)

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...