vb.net - Visual Basic 2010 Finding objects at a point on the form -


so i've been doing programing in visual basic 2010. program need determine whether there object @ point on main form [for example (20, 35)]. tried:

dim objectfind object    objectfind = me.getchildatpoint(20, 35) 

i'm not sure if works, objectfind equals {system.windows.forms.form} figured if objectfind doesn't equal {system.windows.forms.form} me there's different object there, did:

if objectfind <> system.windows.forms.form       ' code here   end if  

but visual basic says system.windows.forms.form can't use in condition. i've done lots of research , didn't find on how find object @ point in visual basic.

i tried:

if objectfind.equals(system.windows.forms.form) = false       ' code here   end if   

i got same error before.
since system.windows.forms.form main form tried:

if objectfind.equals(me) = false       ' code here   end if   

but false no matter object @ (20, 35)

in case not sure question is: how can find out if there object @ point on form in visual basic 2010?

here how test object being type in vb.net:

if typeof objectfind system.windows.forms.form 

Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -