Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2006

Tip: Looking for answers? Try searching our database.

problem with tooltip on 2.0 framework

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sonali_reddy123@yahoo.com - 20 Oct 2006 07:26 GMT
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
Ben Voigt - 20 Oct 2006 20:26 GMT
> Hi all,
>
[quoted text clipped - 27 lines]
> The strange thing about this that it cannot be caught in the try catch
> blocks.

I think a try-catch in your main method around Application.Run will
intercept it.

> 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.

If you open the stack frame for
System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
and look at hWnd, then open Spy++, you can find out what the HWND
corresponds to.  Likely it will be the tooltip control itself, so find out
what message (starting with TTM_) msg is.  Look that up on MSDN, and it will
explain what wparam and lparam mean.

> Does anybody has found any solution for such problem
>
> Thanks in advance

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.