nudge like MSN Messenger

  • Thread starter Thread starter AmR EiSa
  • Start date Start date
A

AmR EiSa

Hi

I try to make form nudge like MSN Messenger and Yahoo Messenger by this code
in vb.net

Me.Top = Me.DesktopLocation.Y - 6
Thread.Sleep(30)
Me.Top = Me.DesktopLocation.Y + 6
Thread.Sleep(30)

Me.Left = Me.DesktopLocation.X + 6
Thread.Sleep(30)
Me.Left = Me.DesktopLocation.X - 6
Thread.Sleep(30)

but if window is Maximized this not work and in MSN Messenger or Yahoo
Messenger MaximizeBox is maximised in nudge !!!
any help about that ?!!

I want nudge in Maximized too

AmR EiSa
 
Hi,
I think I see what you're saying. Why not change your form's window state
to normal but set its size to be the height/width of the screen, so it's
"pseudo maximised", then perform the nudge operation, and then just set it
back to maximized.


Regards,
Alex Clark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top