Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Retriving data from a irc server Pin
Casper Hansen21-Sep-08 2:25
Casper Hansen21-Sep-08 2:25 
GeneralRe: Retriving data from a irc server Pin
Colin Angus Mackay21-Sep-08 3:06
Colin Angus Mackay21-Sep-08 3:06 
GeneralRe: Retriving data from a irc server Pin
Casper Hansen21-Sep-08 6:06
Casper Hansen21-Sep-08 6:06 
AnswerRe: Retriving data from a irc server Pin
Casper Hansen21-Sep-08 21:12
Casper Hansen21-Sep-08 21:12 
QuestionPopup shown in backgroundworker thread Pin
PrashantGadhave20-Sep-08 23:40
PrashantGadhave20-Sep-08 23:40 
AnswerRe: Popup shown in backgroundworker thread Pin
PrashantGadhave21-Sep-08 0:38
PrashantGadhave21-Sep-08 0:38 
GeneralRe: Popup shown in backgroundworker thread Pin
Wendelius21-Sep-08 1:09
mentorWendelius21-Sep-08 1:09 
GeneralRe: Popup shown in backgroundworker thread Pin
PrashantGadhave21-Sep-08 1:55
PrashantGadhave21-Sep-08 1:55 
Hi Mika,
Thank you for your reply.
I typed it 'Minimized' in first if. It was my typing mistake.It should have been 'Maximized' instead.

I can't set the frmProgressBar's windowState from frmMain, because frmProgressBar is not a control in form frmMain, but a separate form whose methods (Hide and Show) are exposed through AggGlobals class (class which stores all application level variables and exposes common functionality). So I can't access it through frmMain.

But thank God, at last I got the solution. I set the 'Owner' property of frmProgressBar to frmMain (for that I had to store an instance of frmMain in AppGlobals) and set CheckForIllegalCrossThreadCalls = false in frmProgressBar constructor, and it worked !!! In vs 2003 it used to work without this setting but in vs 2005 MS has added a check for this. If you run it using ctrl + F5 the application run's perfectly fine, but while debugging i.e. F5 it is an issue.

Storing an object of frmMain in AppGlobals is a temporary solution and I think I will have to do this using reflection.

Cheers,
Prashant.
GeneralRe: Popup shown in backgroundworker thread Pin
Wendelius21-Sep-08 3:52
mentorWendelius21-Sep-08 3:52 
GeneralRe: Popup shown in backgroundworker thread Pin
PrashantGadhave22-Sep-08 6:52
PrashantGadhave22-Sep-08 6:52 
GeneralRe: Popup shown in backgroundworker thread Pin
Wendelius22-Sep-08 8:00
mentorWendelius22-Sep-08 8:00 
GeneralRe: Popup shown in backgroundworker thread Pin
Alan N22-Sep-08 8:27
Alan N22-Sep-08 8:27 
GeneralRe: Popup shown in backgroundworker thread Pin
PrashantGadhave24-Sep-08 2:19
PrashantGadhave24-Sep-08 2:19 
Questioncan someone help me in this program.. Pin
cutedrew20-Sep-08 21:38
cutedrew20-Sep-08 21:38 
AnswerRe: can someone help me in this program.. Pin
zafersavas21-Sep-08 0:50
zafersavas21-Sep-08 0:50 
AnswerRe: can someone help me in this program.. Pin
Ashfield21-Sep-08 21:41
Ashfield21-Sep-08 21:41 
QuestionSOA & C# Pin
Gil Shimer20-Sep-08 21:14
Gil Shimer20-Sep-08 21:14 
AnswerRe: SOA & C# Pin
Wendelius21-Sep-08 0:41
mentorWendelius21-Sep-08 0:41 
GeneralRe: SOA & C# Pin
Gil Shimer21-Sep-08 23:13
Gil Shimer21-Sep-08 23:13 
GeneralRe: SOA & C# Pin
Wendelius22-Sep-08 7:45
mentorWendelius22-Sep-08 7:45 
GeneralRe: SOA & C# Pin
Gil Shimer22-Sep-08 20:41
Gil Shimer22-Sep-08 20:41 
GeneralRe: SOA & C# Pin
Wendelius23-Sep-08 5:45
mentorWendelius23-Sep-08 5:45 
AnswerRe: SOA & C# Pin
Kevin McFarlane21-Sep-08 5:47
Kevin McFarlane21-Sep-08 5:47 
GeneralRe: SOA & C# Pin
Gil Shimer21-Sep-08 23:20
Gil Shimer21-Sep-08 23:20 
GeneralRe: SOA & C# Pin
Kevin McFarlane22-Sep-08 0:12
Kevin McFarlane22-Sep-08 0:12 

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.