R
Robert in SF
Guest
Suppose you have a form with a toolbar, and one of the toolbar buttons creates and displays a second form, like this:
private void toolView_Click(object sender, EventArgs e)
{
var form = new RequestsForm();
form.Show();
}
The second form is not shown modal on purpose, so that you can open two or more instances of this second form to compare the records side by side. However, every time the user clicks the View button, it creates an instance with the same name.
Will this create a problem? Is it poor practice? What's a better alternative? I've tested it and it seems to work ok, but I haven't banged on it for hours like actually using it would.
Continue reading...
private void toolView_Click(object sender, EventArgs e)
{
var form = new RequestsForm();
form.Show();
}
The second form is not shown modal on purpose, so that you can open two or more instances of this second form to compare the records side by side. However, every time the user clicks the View button, it creates an instance with the same name.
Will this create a problem? Is it poor practice? What's a better alternative? I've tested it and it seems to work ok, but I haven't banged on it for hours like actually using it would.
Continue reading...