Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralRe: deployment Pin
Shuaib wasif khan22-Apr-09 11:04
Shuaib wasif khan22-Apr-09 11:04 
GeneralRe: deployment Pin
Shuaib wasif khan22-Apr-09 11:06
Shuaib wasif khan22-Apr-09 11:06 
GeneralRe: deployment Pin
Christian Graus22-Apr-09 17:04
protectorChristian Graus22-Apr-09 17:04 
QuestionTimestamp proble Pin
avi_dadi200222-Apr-09 10:25
avi_dadi200222-Apr-09 10:25 
AnswerRe: Timestamp proble Pin
Christian Graus22-Apr-09 10:54
protectorChristian Graus22-Apr-09 10:54 
AnswerRe: Timestamp proble Pin
Mycroft Holmes22-Apr-09 14:26
professionalMycroft Holmes22-Apr-09 14:26 
QuestionThreading problem Pin
Sajjad Izadi22-Apr-09 8:42
Sajjad Izadi22-Apr-09 8:42 
AnswerRe: Threading problem Pin
0x3c022-Apr-09 8:55
0x3c022-Apr-09 8:55 
Your problem is that the Form1 instance goes out of scope. When this happens, it gets Dispose()'d. When it gets disposed, it closes. You have two options

  1. Instead of setting form.Visible to true, call ShowDialog(). This will halt Thread execution until the Form closes
  2. Put the Form variable at the class level. This will tackle the basic problem

Just as an aside, you should be using safe cross-thread access by now if you aren't already. It looks longer, but is far better than just setting AllowCrossThreadCalls to true
GeneralRe: Threading problem Pin
Sajjad Izadi22-Apr-09 9:06
Sajjad Izadi22-Apr-09 9:06 
GeneralRe: Threading problem Pin
0x3c022-Apr-09 9:28
0x3c022-Apr-09 9:28 
AnswerRe: Threading problem Pin
Luc Pattyn22-Apr-09 8:56
sitebuilderLuc Pattyn22-Apr-09 8:56 
GeneralRe: Threading problem Pin
Fayu22-Apr-09 9:10
Fayu22-Apr-09 9:10 
GeneralRe: Threading problem Pin
0x3c022-Apr-09 9:29
0x3c022-Apr-09 9:29 
GeneralRe: Threading problem Pin
Luc Pattyn22-Apr-09 9:38
sitebuilderLuc Pattyn22-Apr-09 9:38 
GeneralRe: Threading problem Pin
Fayu22-Apr-09 10:04
Fayu22-Apr-09 10:04 
QuestionHelp with generics [modified] Pin
GuimaSun22-Apr-09 8:17
GuimaSun22-Apr-09 8:17 
AnswerRe: Help with generics Pin
0x3c022-Apr-09 8:35
0x3c022-Apr-09 8:35 
AnswerRe: Help with generics Pin
Thomas Weller22-Apr-09 9:07
Thomas Weller22-Apr-09 9:07 
GeneralRe: Help with generics Pin
GuimaSun22-Apr-09 9:30
GuimaSun22-Apr-09 9:30 
GeneralRe: Help with generics Pin
0x3c022-Apr-09 9:52
0x3c022-Apr-09 9:52 
GeneralRe: Help with generics Pin
GuimaSun22-Apr-09 9:56
GuimaSun22-Apr-09 9:56 
GeneralRe: Help with generics Pin
Thomas Weller22-Apr-09 20:22
Thomas Weller22-Apr-09 20:22 
GeneralRe: Help with generics Pin
0x3c022-Apr-09 9:30
0x3c022-Apr-09 9:30 
Questionpublically readonly but internally writable objects? Pin
student_rhr22-Apr-09 7:43
student_rhr22-Apr-09 7:43 
AnswerRe: publically readonly but internally writable objects? Pin
harold aptroot22-Apr-09 7:49
harold aptroot22-Apr-09 7:49 

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.