Results 1 to 3 of 3

Thread: how to get items in a form to auto-resize with the form using visual basic

  1. #1
    Join Date
    Mar 2011
    Location
    Belfast
    Posts
    2

    how to get items in a form to auto-resize with the form using visual basic

    hello,
    i have created recently been working on creating a web browser using visual basic 2010 and i am nearly finished it but i am having trouble with the items in the project auto-resizing when i resize the form. Is there any code that i code use that would get the items to auto-resize? the items that i have in the project are; tabcontrol, menu strip, 6 buttons, toolstrip bar and a timer.

    any help with this would be greatly appreciated.
    It's Not who i am underneath, But what I do that defines me

  2. #2
    Join Date
    May 2009
    Posts
    2,865

    Re: how to get items in a form to auto-resize with the form using visual basic

    Code:
    Private Sub Child_form(ByVal frm As Form) 
    frm = New Form1 
    frm.MdiParent = Me 
    frm.Bounds = Me.Controls.OfType(Of MdiClient).First().ClientRectangle 
    frm.Show() 
    End Sub
    Try the above code it will allow you to auto resize the child form similarly you can activate it on the form required.

  3. #3
    Join Date
    Mar 2011
    Location
    Belfast
    Posts
    2

    Re: how to get items in a form to auto-resize with the form using visual basic

    Thanks but i have tried this and it is not making any difference to my web browser.
    It's Not who i am underneath, But what I do that defines me

Similar Threads

  1. Form Help in MS Visual Basic 2008!
    By NGV BalaKrishna in forum Software Development
    Replies: 5
    Last Post: 21-01-2010, 10:07 PM
  2. Closing out a form in Visual Basic
    By Adel123 in forum Software Development
    Replies: 3
    Last Post: 31-08-2009, 04:56 PM
  3. Visual basic crashes when viewing form
    By Bandish 555 in forum Windows Software
    Replies: 3
    Last Post: 23-06-2009, 06:04 PM
  4. How to auto resize controls on the form in Vb.Net?
    By AmolP in forum Software Development
    Replies: 4
    Last Post: 16-02-2009, 04:44 PM
  5. simple login form in visual basic 6?
    By hariharan_00 in forum Software Development
    Replies: 3
    Last Post: 28-10-2006, 08:51 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,582,478.37857 seconds with 17 queries