Creating multiple forms
Posted on 2011-09-16
I have a main form called mainForm and a second form called StickyNotes.
On the mainForm i have just one toolbar-button to call for the form StickyNotes.
And on the form StickyNotes I have just a close-button. With this line in the On-
And in the methode of the toolbar-button I have this line:
StickyNotes frmNote = new StickyNotes();
But after pressing multilpe times on the toolbar-button I get an error:
"Cannot access a disposed object. Object: "StickyNotes".
What do i do wrong? How can i open multiple forms by pressing on the