I have a dialog (System.Windows.Forms.Form) which is called FrmTest
, I’ve set the FormBorderStyle
to SizableToolWindow
, in the source code I’ve added:
private void FrmTest_Resize(object sender, EventArgs e) {
Control ctrl = (Control)sender;
Console.WriteLine(ctrl.Text);
}
public void OnResize() {
Console.WriteLine("OnResize");
}
This is just test code so I can see the event is raised then I can handle it, these inserts are based on google searches:
https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-create-a-resizable-windows-form-for-data-entry?view=netframeworkdesktop-4.8#example
I’m in the debugger and I don’t see either of these functions / handlers being called. What else do I need to do?