solution to screen centre

Umapathy Kaliaperumal replied to Partha Mandayam at 04-Jul-08 12:34

as the top is the starting point, it should not be at the centre rest forms centre and screens centre point should overlapp. Try this

    frm.Top = (Screen.Height * 0.5) - (frm.Height / 2)


    frm.Left = (Screen.Width * 0.5) - (frm.Width / 2)



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Screen Display - Timothy Purvis  03-Jul-08 03:00 3:00:48 PM
      screen center - Partha Mandayam  03-Jul-08 05:29 5:29:13 PM
          solution to screen centre - Umapathy Kaliaperumal  04-Jul-08 12:34 12:34:55 AM
      Try this link - this will solve your prob. - santhosh kumar  04-Jul-08 01:46 1:46:18 AM
      In form_resize event put the code to set appropriate left and top of the imagebox - Deepak Ghule  04-Jul-08 01:59 1:59:07 AM
View Posts