Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
QuestionEvents Pin
Monin D.16-Jan-07 20:20
Monin D.16-Jan-07 20:20 
AnswerRe: Events Pin
Christian Graus16-Jan-07 20:51
protectorChristian Graus16-Jan-07 20:51 
GeneralRe: Events [modified] Pin
Monin D.16-Jan-07 21:21
Monin D.16-Jan-07 21:21 
AnswerRe: Events Pin
S. Senthil Kumar17-Jan-07 0:35
S. Senthil Kumar17-Jan-07 0:35 
GeneralRe: Events Pin
Monin D.17-Jan-07 7:00
Monin D.17-Jan-07 7:00 
QuestionCross threading issue [modified] Pin
JacquesDP16-Jan-07 20:08
JacquesDP16-Jan-07 20:08 
AnswerRe: Cross threading issue Pin
Christian Graus16-Jan-07 20:53
protectorChristian Graus16-Jan-07 20:53 
GeneralRe: Cross threading issue Pin
S. Senthil Kumar16-Jan-07 21:39
S. Senthil Kumar16-Jan-07 21:39 
Does <code>StartThread</code> create the <code>appointmentBook</code> object? If not, who creates it? My guess would be that it is created by a different thread and when the UI thread attempts to access the <code>WindowState</code> property, a cross thread exception occurs.

You can solve this problem by creating the form on the UI thread (or whatever thread accesses the <code>WindowState</code>) property. To make a method execute on the UI thread, you can use Control.Invoke[^] or Control.BeginInvoke[^]. This[^] article will explain you the basics behind those methods and why they are needed.


Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | WinMacro

GeneralRe: Cross threading issue Pin
JacquesDP16-Jan-07 23:34
JacquesDP16-Jan-07 23:34 
GeneralRe: Cross threading issue Pin
S. Senthil Kumar17-Jan-07 0:28
S. Senthil Kumar17-Jan-07 0:28 
GeneralRe: Cross threading issue Pin
JacquesDP17-Jan-07 0:51
JacquesDP17-Jan-07 0:51 
QuestionHow to read flat file into Dataset Pin
NK716-Jan-07 19:58
NK716-Jan-07 19:58 
AnswerRe: How to read flat file into Dataset Pin
Abisodun17-Jan-07 3:35
Abisodun17-Jan-07 3:35 
QuestionConnect SQL Server from client machine in C# [modified] Pin
phantanagu16-Jan-07 19:48
phantanagu16-Jan-07 19:48 
AnswerRe: Connect SQL Server from client machine in C# Pin
Elephant12316-Jan-07 20:56
Elephant12316-Jan-07 20:56 
Questionurgent How do we execute block of code only onces when we execute a program first time in C#.net Pin
Vinay Dornala16-Jan-07 19:46
Vinay Dornala16-Jan-07 19:46 
AnswerRe: urgent How do we execute block of code only onces when we execute a program first time in C#.net Pin
NK716-Jan-07 20:03
NK716-Jan-07 20:03 
AnswerRe: urgent How do we execute block of code only onces when we execute a program first time in C#.net Pin
JacquesDP16-Jan-07 20:14
JacquesDP16-Jan-07 20:14 
GeneralRe: urgent How do we execute block of code only onces when we execute a program first time in C#.net Pin
Vinay Dornala16-Jan-07 20:23
Vinay Dornala16-Jan-07 20:23 
GeneralRe: urgent How do we execute block of code only onces when we execute a program first time in C#.net Pin
JacquesDP16-Jan-07 20:30
JacquesDP16-Jan-07 20:30 
AnswerRe: urgent How do we execute block of code only onces when we execute a program first time in C#.net Pin
J4amieC16-Jan-07 22:43
J4amieC16-Jan-07 22:43 
Questionweb application Pin
raju_net181816-Jan-07 19:30
raju_net181816-Jan-07 19:30 
AnswerRe: web application Pin
jdkulkarni16-Jan-07 22:44
jdkulkarni16-Jan-07 22:44 
QuestionFile Attributes questions Pin
Planker16-Jan-07 19:10
Planker16-Jan-07 19:10 
Questionvisual studio can not start debugging Pin
chintan1816-Jan-07 18:53
chintan1816-Jan-07 18:53 

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.