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

C#

 
GeneralAccess Device Driver Pin
Sun Rays16-Jan-08 22:23
Sun Rays16-Jan-08 22:23 
GeneralGet Current Working Direcotry/Folder Pin
M Riaz Bashir16-Jan-08 22:20
M Riaz Bashir16-Jan-08 22:20 
GeneralRe: Get Current Working Direcotry/Folder Pin
C-Scharbe16-Jan-08 22:48
C-Scharbe16-Jan-08 22:48 
GeneralRe: Get Current Working Direcotry/Folder Pin
Giorgi Dalakishvili16-Jan-08 23:43
mentorGiorgi Dalakishvili16-Jan-08 23:43 
GeneralRichTextBox ForeColor Problem [modified] Pin
half-life16-Jan-08 20:25
half-life16-Jan-08 20:25 
GeneralRe: RichTextBox ForeColor Problem Pin
Luc Pattyn16-Jan-08 22:25
sitebuilderLuc Pattyn16-Jan-08 22:25 
GeneralRe: RichTextBox ForeColor Problem Pin
half-life17-Jan-08 1:16
half-life17-Jan-08 1:16 
GeneralRe: RichTextBox ForeColor Problem Pin
Luc Pattyn17-Jan-08 2:26
sitebuilderLuc Pattyn17-Jan-08 2:26 
Hi,

a Control (such as a RichTextBox) should only be accessed by the thread that created it
(normally thats the main or "GUI thread") since Controls are not thread-safe.
Violating this rule often results in GUI hang-ups or CrossThread violation exceptions
(new since .NET 2.0, can be disabled, bad idea tho).

The only good solution is by using a pattern based on Control.InvokeRequired and
Control.Invoke and a delegate; you can google for these, and/or look at a small example
at the end of my Sokoban article.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: RichTextBox ForeColor Problem Pin
half-life17-Jan-08 5:36
half-life17-Jan-08 5:36 
GeneralRe: RichTextBox ForeColor Problem Pin
Luc Pattyn17-Jan-08 6:06
sitebuilderLuc Pattyn17-Jan-08 6:06 
GeneralSending Free Sms [modified] Pin
razanabanu16-Jan-08 18:23
razanabanu16-Jan-08 18:23 
GeneralRe: Sending Sms Pin
Abhijit Jana16-Jan-08 18:41
professionalAbhijit Jana16-Jan-08 18:41 
Generalpopulate data to generic list from classes using c# Pin
ramyanaidu16-Jan-08 18:07
ramyanaidu16-Jan-08 18:07 
GeneralRe: populate data to generic list from classes using c# [modified] Pin
DaveyM6917-Jan-08 3:07
professionalDaveyM6917-Jan-08 3:07 
GeneralRe: populate data to generic list from classes using c# Pin
ramyanaidu17-Jan-08 17:22
ramyanaidu17-Jan-08 17:22 
Generalprogram can but run only one instance Pin
jason_mf16-Jan-08 17:22
jason_mf16-Jan-08 17:22 
GeneralDatabase is slooowwwww Pin
Jacob Dixon16-Jan-08 15:51
Jacob Dixon16-Jan-08 15:51 
GeneralCreating HTML Encrypter using C# Pin
Nadia Monalisa16-Jan-08 12:14
Nadia Monalisa16-Jan-08 12:14 
GeneralRe: Creating HTML Encrypter using C# Pin
Gareth H16-Jan-08 12:21
Gareth H16-Jan-08 12:21 
GeneralRe: Creating HTML Encrypter using C# Pin
Nadia Monalisa16-Jan-08 12:48
Nadia Monalisa16-Jan-08 12:48 
GeneralRe: Creating HTML Encrypter using C# Pin
Ennis Ray Lynch, Jr.16-Jan-08 15:07
Ennis Ray Lynch, Jr.16-Jan-08 15:07 
GeneralLoad Image File Pin
MasterSharp16-Jan-08 11:38
MasterSharp16-Jan-08 11:38 
GeneralRe: Load Image File Pin
Gareth H16-Jan-08 11:57
Gareth H16-Jan-08 11:57 
GeneralRe: Load Image File Pin
MasterSharp16-Jan-08 12:03
MasterSharp16-Jan-08 12:03 
GeneralRe: Load Image File Pin
Luc Pattyn16-Jan-08 12:05
sitebuilderLuc Pattyn16-Jan-08 12:05 

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.