New Message on dotNET User Group Hyd

Re: doubt in vb.net -reply soon

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: AmudhanElangoMCA


Hi,
 
Just go to code behind of any one of the Form, select the event as Layout event in VB.Net and then copy paste the below mentioned code in that function.           



    private void Form1_Layout(object sender, System.Windows.Forms.LayoutEventArgs e)

                    {

                                // Center the Form on the user's screen everytime it requires a Layout.

                                this.SetBounds((Screen.GetBounds(this).Width/2) - (this.Width/2),

                                    (Screen.GetBounds(this).Height/2) - (this.Height/2),

                                    this.Width, this.Height, BoundsSpecified.Location);   

                    }

Happy coding....

Regards,
Amudhan.E,
Hyderabad,
Mobile: (0)9866061614.



View other groups in this category.

Click Here
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to