dcsimg
Results 1 to 3 of 3

Thread: .location x,y questions [Resolved]

  1. #1

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    .location x,y questions [Resolved]

    How can I do this?:
    Browser.Location.Y = Browser.Location.Y + GroupBoxBrowserControls.Height
    Last edited by intellilogic; Nov 21st, 2010 at 05:59 PM. Reason: Where did 'Mark as resolved tool go?'

  2. #2

    Thread Starter
    Member intellilogic's Avatar
    Join Date
    Oct 2010
    Location
    Tyson's Corner, VA
    Posts
    39

    Re: .location x,y questions

    Ok, ok, I figured it out
    Code:
        Public Sub BrowserControls(ByRef vis As String)
            If vis = "show" Then
                GroupBoxBrowserControls.Visible = True
                GroupBoxBrowserControls.BringToFront()
                Browser.Location = New Point(Browser.Location.X, Browser.Location.Y + GroupBoxBrowserControls.Height)
                Browser.Height = Browser.Height - GroupBoxBrowserControls.Height
    
            ElseIf vis = "hide" Then
                GroupBoxBrowserControls.Visible = False
                Browser.Location = New Point(Browser.Location.X, Browser.Location.Y - GroupBoxBrowserControls.Height)
                Browser.Height = Browser.Height + GroupBoxBrowserControls.Height
            End If
        End Sub

  3. #3
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    103,871

    Re: .location x,y questions [Resolved]

    If you only need to set one coordinate then set the Top or Left property of the control.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width