System.ComponentModel.Win32Exception..error creating window handle

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear C# experts,
i face a problem which let my project get stopped ..when trying to run
...i found the following exception :

"An unhandled exception of type 'System.ComponentModel.Win32Exception'
occurred in system.windows.forms.dll
Additional information: Error creating window handle."

at this lines of my code


private void frmMdiMain_Load(object sender, System.EventArgs e)
{ string st ;
frm.MdiParent = this;
try
{
frm.Show();
}
catch (Exception ex)
{
st =(ex.Message);
Console.Write(st);
}
}

/// st = error creating window handle.

could you tell me kindly what shall i do?!

thank you in Advance
urs
Mohannad
 
Hello, Mohannad!

Can you please provide more details
What is frm, MdiParent, etc
Provide declarations at least...

You wrote on Sun, 12 Sep 2004 10:11:06 -0700:

M> "An unhandled exception of type 'System.ComponentModel.Win32Exception'
M> occurred in system.windows.forms.dll
M> Additional information: Error creating window handle."

M> at this lines of my code

M> private void frmMdiMain_Load(object sender, System.EventArgs e)
M> { string st ;
M> frm.MdiParent = this;
M> try
M> {
M> frm.Show();
M> }
M> catch (Exception ex)
M> {
M> st =(ex.Message);
M> Console.Write(st);
M> }
M> }

M> /// st = error creating window handle.

M> could you tell me kindly what shall i do?!


With best regards, Nurchi BECHED.
 
Back
Top