Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27193

VS 2012 Resizing a groupbox

$
0
0
How do I write and where would I put the code to resize a groupbox immediately depending on what was selected from a combobox? Do I need to double click the groupbox and add the code there because I tried that and it didn't work.
Code:

Private Sub GroupBox1_Enter(sender As Object, e As EventArgs) Handles GroupBox1.Enter
        Dim TieWeight As New GroupBox
        If CmbTieSize = "FTB4" Then
            TieWeight.Height = 70
        End If
    End Sub

It displayed an error message with CmbTieSize underline with a blue squiggle
Error 1 Value of type 'System.Windows.Forms.ComboBox' cannot be converted to 'String'.

Viewing all articles
Browse latest Browse all 27193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>