Live Chat Icon For mobile
Live Chat Icon

How can I word-wrap the Tooltip that is displayed?

Platform: WinForms| Category: Tips

Rhett Gong posted a work around using Reflection to achieve this in the microsoft.public.dotnet.framework.windowsforms.controls Newsgroup:

private extern static int SendMessage(IntPtr hwnd,uint msg, int wParam, int lParam);

object o = typeof(ToolTip).InvokeMember('Handle',BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.GetProperty,null,myToolTip,null);
IntPtr hwnd = (IntPtr) o;
SendMessage(hwnd,0x0418, 0, 300);

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.