Hi all,

I am experiencing a strange problem for the call setToolTip while
running my application on frmaework 2.0. I have found 2 messages on
google discussing the same issue but there are
no replys

It dumps saying something like
System.InvalidOperationException: Adding the tip to the native ToolTip
control did not succeed.
at System.Windows.Forms.ToolTip.SetToolInfo(Control ctl, String
caption)
at System.Windows.Forms.ToolTip.CreateRegion(Control ctl)
at System.Windows.Forms.ToolTip.CreateAllRegions()
at System.Windows.Forms.ToolTip.get_TopLevelControl()
at System.Windows.Forms.ToolTip.CreateRegion(Control ctl)
at System.Windows.Forms.ToolTip.HandleCreated(Object sender,
EventArgs eventargs)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

The strange thing about this that it cannot be caught in the try catch
blocks.
Actually I have set the tooltip to most of the controls in my
application. It sets and displays it properly but somewhere in the
middle it dumps. The trace I am getting won't tell me exactly to which
tooltip it dumps so I am not able to figure out exactly.

Does anybody has found any solution for such problem

Thanks in advance

Re: tooltip problem on framework 2.0 by Bryan

Bryan
Fri Oct 27 17:08:01 CDT 2006

It would help if you could post an example.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




"sonali_reddy123@yahoo.com" <sonali_reddy123@yahoo.com> wrote in message
news:1161325662.772403.66960@e3g2000cwe.googlegroups.com:

> Hi all,
>
> I am experiencing a strange problem for the call setToolTip while
> running my application on frmaework 2.0. I have found 2 messages on
> google discussing the same issue but there are
> no replys
>
> It dumps saying something like
> System.InvalidOperationException: Adding the tip to the native ToolTip
> control did not succeed.
> at System.Windows.Forms.ToolTip.SetToolInfo(Control ctl, String
> caption)
> at System.Windows.Forms.ToolTip.CreateRegion(Control ctl)
> at System.Windows.Forms.ToolTip.CreateAllRegions()
> at System.Windows.Forms.ToolTip.get_TopLevelControl()
> at System.Windows.Forms.ToolTip.CreateRegion(Control ctl)
> at System.Windows.Forms.ToolTip.HandleCreated(Object sender,
> EventArgs eventargs)
> at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
> at System.Windows.Forms.Control.WmCreate(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.Label.WndProc(Message& m)
> at
> System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
> m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
> msg, IntPtr wparam, IntPtr lparam)
>
> The strange thing about this that it cannot be caught in the try catch
> blocks.
> Actually I have set the tooltip to most of the controls in my
> application. It sets and displays it properly but somewhere in the
> middle it dumps. The trace I am getting won't tell me exactly to which
> tooltip it dumps so I am not able to figure out exactly.
>
> Does anybody has found any solution for such problem
>
> Thanks in advance