Click here to Skip to main content
15,918,193 members
Home / Discussions / C#
   

C#

 
QuestionHow to restrict replay to a mail Pin
AR Reddy6-Mar-07 20:30
AR Reddy6-Mar-07 20:30 
AnswerRe: How to restrict replay to a mail Pin
Colin Angus Mackay6-Mar-07 21:22
Colin Angus Mackay6-Mar-07 21:22 
QuestionValidating Email Address Pin
dabuskol6-Mar-07 20:27
dabuskol6-Mar-07 20:27 
AnswerRe: Validating Email Address Pin
sam#6-Mar-07 20:35
sam#6-Mar-07 20:35 
AnswerRe: Validating Email Address Pin
goldli6-Mar-07 21:07
goldli6-Mar-07 21:07 
AnswerRe: Validating Email Address Pin
Wayne Phipps6-Mar-07 21:12
Wayne Phipps6-Mar-07 21:12 
AnswerRe: Validating Email Address Pin
Scott Dorman8-Mar-07 17:31
professionalScott Dorman8-Mar-07 17:31 
QuestionMDI and OutOfMemoryException and CreateHandle() Pin
sarang.chandaikar6-Mar-07 20:15
sarang.chandaikar6-Mar-07 20:15 
Hi,

I have this code that makes the form as an MDIChild:


chartWindowController.GetForm().MdiParent =
_expertTradeMainFrm;
chartWindowController.GetForm().WindowState =
FormWindowState.Normal;
chartWindowController.GetForm().Show();


The above code snippet throws exception when Show() is called:


Message "Object reference not set to an instance of an object."


StackTrace " at System.Windows.Forms.ToolTip.CreateHandle()\r\n
at
System.Windows.Forms.ToolTip.get_Handle()\r\n at
System.Windows.Forms.ToolTip.WmWindowPosChanging(Message& m)\r\n at
System.Windows.Forms.ToolTip.WndProc(Message& msg)\r\n at
System.Windows.Forms.ToolTip.ToolTipNativeWindow.WndProc(Message& m)\r
\n
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32
msg, IntPtr wparam, IntPtr lparam)\r\n at
Microsoft.Win32.SafeNativeMethods.MessageBox(HandleRef hWnd, String
text,
String caption, Int32 type)\r\n at
System.Diagnostics.AssertWrapper.ShowMessageBoxAssert(String
stackTrace,
String message, String detailMessage)\r\n at
System.Diagnostics.DefaultTraceListener.Fail(String message, String
detailMessage)\r\n at
System.Diagnostics.DefaultTraceListener.Fail(String
message)\r\n at System.Diagnostics.TraceInternal.Fail(String
message)
\r\n
at System.Diagnostics.Debug.Fail(String message)\r\n at
CimsFramework.CimsSecurity.CmsUsrDataSheetSubModule.GetDataEntryInfo()
in
D:\\CIMS.NET\\CimsFramework\\CimsSecurity.cs:line 4127"


But when the same is not a MDIChild then it works fine i.e., if I
comment the line
chartWindowController.GetForm().MdiParent = _expertTradeMainFrm, then
the application works fine.


I have Visual Team Edition 2005 for Developers + Windows XP Sp2.


Can anyone let me know why this is happening or how to fix it. Thanks
in advance.


Regards

Sarang
AnswerRe: MDI and OutOfMemoryException and CreateHandle() Pin
VirtualVoid.NET7-Mar-07 1:26
VirtualVoid.NET7-Mar-07 1:26 
QuestionCloning object with properties Pin
Priya09026-Mar-07 19:57
Priya09026-Mar-07 19:57 
AnswerRe: Cloning object with properties Pin
Martin#6-Mar-07 20:20
Martin#6-Mar-07 20:20 
QuestionRe: Cloning object with properties Pin
Priya09028-Mar-07 1:33
Priya09028-Mar-07 1:33 
AnswerRe: Cloning object with properties Pin
Martin#8-Mar-07 2:46
Martin#8-Mar-07 2:46 
QuestionHow to make a listview looks like the windows explorer? Pin
goldli6-Mar-07 19:54
goldli6-Mar-07 19:54 
AnswerRe: How to make a listview looks like the windows explorer? Pin
VirtualVoid.NET7-Mar-07 1:28
VirtualVoid.NET7-Mar-07 1:28 
Questionhow to restrict Copy and Paste in textbox control Pin
AR Reddy6-Mar-07 19:45
AR Reddy6-Mar-07 19:45 
AnswerRe: how to restrict Copy and Paste in textbox control Pin
Omkar Ghaisas6-Mar-07 19:55
Omkar Ghaisas6-Mar-07 19:55 
AnswerRe: how to restrict Copy and Paste in textbox control Pin
Navi156-Mar-07 20:08
Navi156-Mar-07 20:08 
QuestionInstantiating a Value Type in .NET Pin
Omkar Ghaisas6-Mar-07 19:29
Omkar Ghaisas6-Mar-07 19:29 
AnswerRe: Instantiating a Value Type in .NET Pin
Not Active6-Mar-07 20:08
mentorNot Active6-Mar-07 20:08 
GeneralRe: Instantiating a Value Type in .NET Pin
Omkar Ghaisas6-Mar-07 20:11
Omkar Ghaisas6-Mar-07 20:11 
GeneralRe: Instantiating a Value Type in .NET Pin
sam#6-Mar-07 20:45
sam#6-Mar-07 20:45 
GeneralRe: Instantiating a Value Type in .NET Pin
Colin Angus Mackay6-Mar-07 21:23
Colin Angus Mackay6-Mar-07 21:23 
GeneralRe: Instantiating a Value Type in .NET Pin
Not Active7-Mar-07 3:26
mentorNot Active7-Mar-07 3:26 
AnswerRe: Instantiating a Value Type in .NET Pin
Matthew Cuba7-Mar-07 1:09
Matthew Cuba7-Mar-07 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.