vb.net - Move Form if second monitor screen exists -
looking way load if second screen exists.
i have tried code load event:
dim numofmon integer = screen.allscreens.length if numofmon > 1 me.bounds = screen.allscreens(1).bounds end if
side note: if point me how detect when cursor no longer on form, appreciate it.
to able place form on second screen, set windowstartuplocation manual before setting bounds. causes form positioned according left , top property values. these set changing bounds property did.
to detect if cursor above form that's focused, use mouseenter , mouseleave events.
Comments
Post a Comment