Click here to Skip to main content
15,889,810 members
Home / Discussions / C#
   

C#

 
GeneralRe: removing Quotation marks ("") when parsing [modified] Pin
Graham Nimbley15-Jun-06 11:45
Graham Nimbley15-Jun-06 11:45 
GeneralRe: removing Quotation marks ("") when parsing Pin
minnie mouse15-Jun-06 23:03
minnie mouse15-Jun-06 23:03 
QuestionC# and hyper Terminal?? Pin
keroed_edmond14-Jun-06 13:44
keroed_edmond14-Jun-06 13:44 
QuestionURL collector [modified] Pin
Bilal Farooq14-Jun-06 12:36
Bilal Farooq14-Jun-06 12:36 
AnswerRe: URL collector Pin
Graham Nimbley14-Jun-06 16:29
Graham Nimbley14-Jun-06 16:29 
QuestionEmbarrassed - Simple Form Question Pin
Malcolm Smart14-Jun-06 10:49
Malcolm Smart14-Jun-06 10:49 
AnswerRe: Embarrassed - Simple Form Question Pin
donkaiser14-Jun-06 11:08
donkaiser14-Jun-06 11:08 
AnswerRe: Embarrassed - Simple Form Question Pin
kasik14-Jun-06 12:08
kasik14-Jun-06 12:08 
Angel1058 wrote:
'Close()'. Does that destroy the window?

If you mean will secondform be a null pointer after it's called, then no. Close() disposes the form and it's contents, and destroys it's window handle, but comparing secondform to null (like you're doing in your OnClickEvent() method) will return false.

You can use the IsDisposed property of the Form to check to see if the form has been disposed, and that should work (but you'd have to check if it's null first)...
if ( secondform == null || secondform.IsDisposed )
    secondform = new MyForm(data_for_form_listbox)
Hope that helps Smile | :)


“Accept that some days you are the pigeon, and some days you are the statue” -- David Brent

Cheers,
Will H
GeneralRe: Embarrassed - Simple Form Question Pin
Malcolm Smart14-Jun-06 20:44
Malcolm Smart14-Jun-06 20:44 
QuestionShape in VS2005 Pin
donkaiser14-Jun-06 10:47
donkaiser14-Jun-06 10:47 
QuestionUsing Return Value ... [modified] Pin
mostafa_h14-Jun-06 10:16
mostafa_h14-Jun-06 10:16 
AnswerRe: Using Return Value ... Pin
Elina Blank14-Jun-06 10:49
sitebuilderElina Blank14-Jun-06 10:49 
GeneralRe: Using Return Value ... Pin
mostafa_h14-Jun-06 11:12
mostafa_h14-Jun-06 11:12 
GeneralRe: Using Return Value ... Pin
Elina Blank14-Jun-06 11:17
sitebuilderElina Blank14-Jun-06 11:17 
AnswerRe: Using Return Value ... Pin
Guffa14-Jun-06 11:37
Guffa14-Jun-06 11:37 
AnswerRe: Using Return Value ... Pin
albCode14-Jun-06 22:46
albCode14-Jun-06 22:46 
GeneralRe: Using Return Value ... Pin
mostafa_h23-Jun-06 4:35
mostafa_h23-Jun-06 4:35 
GeneralRe: Using Return Value ... Pin
albCode23-Jun-06 4:41
albCode23-Jun-06 4:41 
GeneralRe: Using Return Value ... Pin
mostafa_h23-Jun-06 9:07
mostafa_h23-Jun-06 9:07 
GeneralRe: Using Return Value ... Pin
mostafa_h23-Jun-06 23:56
mostafa_h23-Jun-06 23:56 
QuestionC# and excel Pin
Balaj_C14-Jun-06 9:48
Balaj_C14-Jun-06 9:48 
AnswerRe: C# and excel Pin
Dustin Metzgar14-Jun-06 9:53
Dustin Metzgar14-Jun-06 9:53 
GeneralRe: C# and excel Pin
Balaj_C14-Jun-06 10:53
Balaj_C14-Jun-06 10:53 
Questionmultiple line label Pin
donkaiser14-Jun-06 9:37
donkaiser14-Jun-06 9:37 
AnswerRe: multiple line label Pin
donkaiser14-Jun-06 9:58
donkaiser14-Jun-06 9:58 

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.