form2 location

Discussion in 'Programming General' started by [email protected], Apr 18, 2009.

form2 location
  1. Unread #1 - Apr 18, 2009 at 5:06 AM
  2. paul_so40@hotmail.com
    Joined:
    Sep 24, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    [email protected] Newcomer

    form2 location

    Hi all,

    TRying to make it so thats form2 loads in the top right on the screen as its start postion.

    Anyone know the code?

    Dose vb.net have the option where you can move an image about of your form, arround the image of a monitor to choose its loads postion like in vb6?

    Thanks

    Paul
     
  3. Unread #2 - Apr 18, 2009 at 5:42 AM
  4. hampe-92
    Joined:
    Jul 10, 2008
    Posts:
    328
    Referrals:
    0
    Sythe Gold:
    0

    hampe-92 Forum Addict

    form2 location

    the form start position is done like this;
    Code:
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Me.StartPosition = FormStartPosition.Manual
            Me.Location = New Point((Screen.PrimaryScreen.WorkingArea.Width - Me.Width), 0)
        End Sub
    
    I didn't understand your second question at all... mind elaborate?
     
< [VB.NET] Error When Copying Files | Need Help with Coursework Program!! Will Pay! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site