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.
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'.
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
Error 1 Value of type 'System.Windows.Forms.ComboBox' cannot be converted to 'String'.