I can't figure out how to resize a panel, I can't find anything other than what I've tried. I have an if statement run whenever a checkbox is changed and depending on whether it is checked or not depends on the size of a panel. I know the if statement runs (and works properly) because it modifies some other attributes on other elements.
I've tried all these below:
pnl_selection.Size = New Size(90, 105)
pnl_selection.Size = New System.Drawing.Size(90, 105)
pnl_selection.Size = (90, 105)
pnl_selection.Height = 105
pnl_selection.Height += 105
(where pnl_selection is the name of my panel)
I've also played with anchor and dock a bit but they don't seem to do much.
Thanks :)
Edit:
This is the entirety of the if statement sub - I know it's being called because the cmd_send.Visible = False/True
works fine.
Private Sub LiveModeToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles LiveModeToolStripMenuItem.Click
If LiveModeToolStripMenuItem.Checked Then
cmd_send.Visible = False
pnl_selection.Size = New Size(90, 105)
Else
cmd_send.Visible = True
pnl_selection.Size = New Size(90, 65)
End If
End Sub