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

C#

 
JokeRe: Regular Expressions Pin
Dan Neely18-Sep-07 12:37
Dan Neely18-Sep-07 12:37 
GeneralRe: Regular Expressions Pin
Chris Maunder18-Sep-07 18:52
cofounderChris Maunder18-Sep-07 18:52 
GeneralRe: Regular Expressions Pin
#realJSOP18-Sep-07 23:35
mve#realJSOP18-Sep-07 23:35 
GeneralRe: Regular Expressions Pin
Christian Graus18-Sep-07 22:27
protectorChristian Graus18-Sep-07 22:27 
GeneralRe: Regular Expressions Pin
JimmyRopes19-Sep-07 2:53
professionalJimmyRopes19-Sep-07 2:53 
QuestionCan you hack numericupdown's to change button width? Pin
aei_totten18-Sep-07 10:17
aei_totten18-Sep-07 10:17 
AnswerRe: Can you hack numericupdown's to change button width? Pin
TJoe25-Sep-07 10:01
TJoe25-Sep-07 10:01 
QuestionHow to: Make Thread-Safe Calls to Windows Forms Controls Pin
gizmokaka18-Sep-07 10:16
gizmokaka18-Sep-07 10:16 
Hi to all, I work on an application that takes measurements from a piece of hardware, and
then manipulates it.
my problem is that while collecting the measurement my program gets stuck, meaning if I do something else on my PC at the same time, when I return to my form it is blank.
I understand it's a matter of threading.
the problem is I can't call my callback function passed to the new thread with the ProgressBar parameter.
my Form creates a ProgressBar that my collecting function is supposed to operate, but it can't.
I get the error,

Cross-thread operation not valid: Control 'progressBarSampling' accessed from a thread other than the thread it was created on.

What I want to achieve is to be able to pass the Form's progressbar as parameter to my function
so it can use it.

Any help will be most appreciated.

regards.
AnswerRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
Pete O'Hanlon18-Sep-07 10:22
mvePete O'Hanlon18-Sep-07 10:22 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
gizmokaka18-Sep-07 10:25
gizmokaka18-Sep-07 10:25 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
Pete O'Hanlon18-Sep-07 10:28
mvePete O'Hanlon18-Sep-07 10:28 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
gizmokaka18-Sep-07 10:41
gizmokaka18-Sep-07 10:41 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
Dave Kreskowiak18-Sep-07 10:48
mveDave Kreskowiak18-Sep-07 10:48 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
gizmokaka18-Sep-07 11:01
gizmokaka18-Sep-07 11:01 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
gizmokaka19-Sep-07 2:17
gizmokaka19-Sep-07 2:17 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
Dave Kreskowiak19-Sep-07 11:50
mveDave Kreskowiak19-Sep-07 11:50 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
Pete O'Hanlon18-Sep-07 10:50
mvePete O'Hanlon18-Sep-07 10:50 
GeneralRe: How to: Make Thread-Safe Calls to Windows Forms Controls Pin
gizmokaka18-Sep-07 11:02
gizmokaka18-Sep-07 11:02 
QuestionC# students in UK Pin
Francois Benadie18-Sep-07 10:09
Francois Benadie18-Sep-07 10:09 
AnswerRe: C# students in UK Pin
Pete O'Hanlon18-Sep-07 10:20
mvePete O'Hanlon18-Sep-07 10:20 
QuestionLinking function keys to buttons Pin
Dio2218-Sep-07 9:06
Dio2218-Sep-07 9:06 
AnswerRe: Linking function keys to buttons Pin
Giorgi Dalakishvili18-Sep-07 9:20
mentorGiorgi Dalakishvili18-Sep-07 9:20 
GeneralRe: Linking function keys to buttons Pin
Dio2218-Sep-07 10:17
Dio2218-Sep-07 10:17 
GeneralRe: Linking function keys to buttons Pin
Giorgi Dalakishvili18-Sep-07 10:24
mentorGiorgi Dalakishvili18-Sep-07 10:24 
GeneralRe: Linking function keys to buttons Pin
Dio2218-Sep-07 10:28
Dio2218-Sep-07 10:28 

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.