In form_resize event put the code to set appropriate left and top of the imagebox

Deepak Ghule replied to Timothy Purvis at 04-Jul-08 01:59

 

In form_resize event put the code to set appropriate left and top of the imagebox


imagebox.Left=(frm.Width  / 2) - (imagebox.Width  / 2)

imagebox.Top=(frm.Height / 2) - (imagebox.Height / 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