Click here to Skip to main content
15,908,264 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: crying for help! Pin
Christian Graus28-Jun-05 13:43
protectorChristian Graus28-Jun-05 13:43 
GeneralDatagridview for VB.net - Basics Pin
bruceleecc28-Jun-05 7:49
bruceleecc28-Jun-05 7:49 
GeneralThoughts? Pin
bruceleecc29-Jun-05 7:14
bruceleecc29-Jun-05 7:14 
GeneralRe: Datagridview for VB.net - Basics Pin
Muhammad Ali Shaikh10-Feb-12 19:11
Muhammad Ali Shaikh10-Feb-12 19:11 
Generalwidth of the last column in datagrid Pin
aimar_2028-Jun-05 5:46
aimar_2028-Jun-05 5:46 
Generalprint a form Pin
daneshmand28-Jun-05 5:25
daneshmand28-Jun-05 5:25 
GeneralRe: print a form Pin
Dave Kreskowiak29-Jun-05 3:16
mveDave Kreskowiak29-Jun-05 3:16 
QuestionHow do I handle a closing form event? Pin
Qvicksilver28-Jun-05 5:07
Qvicksilver28-Jun-05 5:07 
Hi,

I have a little problem, I have a 2-form application where I can open the second form by clicking a buttom on form1 (that works fine). but when I click the close button (the red X in the upperright corner) the form closes down, and when I click the button on form1 to open form2 again I get this error:

An unhandled exception of type 'System.ObjectDisposedException' occurred in system.windows.forms.dll

Additional information: Cannot access a disposed object named "frmPlot".


I 'dim' form2 after the 'Windows Form Designer generated code'-region as a new Form2.

and the button only call the show() function.

Do I have to dim a new form2 when the button clicks? because I want the information on form2 to left there when I close it down, and when I open it up again it should still be there.


My main question is:
Is there a way to cancel that closing/destroy-function the closing button does and do a form2.hide() instead? Confused | :confused:



Regards /Joakim .A


Joakim .A - State: VB6 -> VB.NET
AnswerRe: How do I handle a closing form event? Pin
Robert Rohde28-Jun-05 11:32
Robert Rohde28-Jun-05 11:32 
GeneralFile extension from PIDL Pin
Andy H28-Jun-05 3:54
Andy H28-Jun-05 3:54 
GeneralRe: File extension from PIDL Pin
Dave Kreskowiak28-Jun-05 4:22
mveDave Kreskowiak28-Jun-05 4:22 
GeneralRe: File extension from PIDL Pin
Andy H28-Jun-05 6:48
Andy H28-Jun-05 6:48 
GeneralRe: File extension from PIDL Pin
Dave Kreskowiak28-Jun-05 10:07
mveDave Kreskowiak28-Jun-05 10:07 
GeneralADO recordset.Find Pin
rushing28-Jun-05 3:04
rushing28-Jun-05 3:04 
GeneralRe: ADO recordset.Find Pin
jonathan1528-Jun-05 3:41
jonathan1528-Jun-05 3:41 
GeneralRe: ADO recordset.Find Pin
rushing28-Jun-05 3:57
rushing28-Jun-05 3:57 
GeneralRe: ADO recordset.Find Pin
jonathan1528-Jun-05 4:05
jonathan1528-Jun-05 4:05 
GeneralConverting String to Byte Arrays Pin
alex120528-Jun-05 0:47
alex120528-Jun-05 0:47 
GeneralRe: Converting String to Byte Arrays Pin
Dave Kreskowiak28-Jun-05 4:18
mveDave Kreskowiak28-Jun-05 4:18 
QuestionHow to set default button in a winform? Pin
rushing28-Jun-05 0:31
rushing28-Jun-05 0:31 
AnswerRe: How to set default button in a winform? Pin
Dave Kreskowiak28-Jun-05 4:14
mveDave Kreskowiak28-Jun-05 4:14 
Generalfind word editor using API Pin
Anonymous27-Jun-05 22:36
Anonymous27-Jun-05 22:36 
GeneralRe: find word editor using API Pin
Dave Kreskowiak28-Jun-05 4:12
mveDave Kreskowiak28-Jun-05 4:12 
GeneralRe: find word editor using API Pin
Anonymous28-Jun-05 17:10
Anonymous28-Jun-05 17:10 
GeneralRe: find word editor using API Pin
Dave Kreskowiak29-Jun-05 0:50
mveDave Kreskowiak29-Jun-05 0:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.