Results 1 to 3 of 3

Thread: ToolStripComboBox at maximize

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    17

    ToolStripComboBox at maximize

    Hi, i have a problem in ToolStripComboBox at maximize window dont change size.

    How change ?

    I write
    Code:
        Private Sub Form1_MaximumSizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MaximumSizeChanged
            ToolStripComboBox1.Dock = DockStyle.Right
            ToolStripComboBox1.AutoSize = True
        End Sub
    
        Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
            ToolStripComboBox1.Dock = DockStyle.Right
    
            ToolStripComboBox1.AutoSize = True
        End Sub
    
        Private Sub Form1_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged
            ToolStripComboBox1.Dock = DockStyle.Right
            ToolStripComboBox1.AutoSize = True
        End Sub
    But don´t work, how fix ?

    I like the ToolStripComboBox expand in the bar at maximize or change size of window, similar of dock work.

    -----------------------------
    ToolStrip white line problem, i make a ToolStrip and in the botton i see a small white line, how clean ??



    Ty.
    Last edited by hgdavidy; May 13th, 2011 at 08:35 AM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: ToolStripComboBox at maximize

    Follow the CodeBank link in my signature and check out my Tabbed Web Browser thread. The main form in that application has a ToolStripComboBox on it that expands and contracts with the form.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2011
    Posts
    17

    Re: ToolStripComboBox at maximize

    Ty, work fine.


    Ty.

Posting Permissions

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



Click Here to Expand Forum to Full Width