|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Check if Mousepointer is over a regionHi,
how can i check if the mousepointer is over a System.Drawing.Region (from graphicspath). In vb6 i used the API Call "PtInRegion" - Is ther something like that in VB 2005?? btw: The region is not a rectangle. Thanks Stefan "Stefan Uhlemann" <ste***@myxperience.de> schrieb Untested: Try the Region's IsVisible function.> Hi, > > how can i check if the mousepointer is over a System.Drawing.Region > (from graphicspath). > In vb6 i used the API Call "PtInRegion" - Is ther something like > that in VB 2005?? > > btw: > The region is not a rectangle. Depending on the coordinate system, you may have to use the Control's PointToClient/PointToScreen methods additionally, and you have to take the offset of the Control's origin and the Region's origin into account (if not equal) Armin
Show quote
Hide quote
On Nov 20, 6:03 am, "Stefan Uhlemann" <ste***@myxperience.de> wrote: If all else fails, you should still be able to use the API call you> Hi, > > how can i check if the mousepointer is over a System.Drawing.Region (from > graphicspath). > In vb6 i used the API Call "PtInRegion" - Is ther something like that in VB > 2005?? > > btw: > The region is not a rectangle. > > Thanks > > Stefan used in VB classic. http://www.pinvoke.net/default.aspx/gdi32/PtInRegion.html That declaration is for C#, but you should be able to convert it. Thanks, Seth Rowe
Running vb.net 2005 app under windows restricted user
dataset question how do you implement association between objects Check if libraries or program exist error with exe programs fast updates to textbox? Emailing a form in Visual Basic 2005 Express colons Need to develop an IDE add-on that would behave similar to the Find in Entire Solution data to datagrid |
|||||||||||||||||||||||