Click here to Skip to main content
15,919,500 members
Home / Discussions / C#
   

C#

 
QuestionApplication deep logging/traceing Pin
nemopeti19-Jul-06 6:24
nemopeti19-Jul-06 6:24 
AnswerRe: Application deep logging/traceing Pin
Judah Gabriel Himango19-Jul-06 7:16
sponsorJudah Gabriel Himango19-Jul-06 7:16 
GeneralRe: Application deep logging/traceing [modified] Pin
nemopeti19-Jul-06 10:57
nemopeti19-Jul-06 10:57 
GeneralRe: Application deep logging/traceing Pin
Alexander Wiseman19-Jul-06 11:36
Alexander Wiseman19-Jul-06 11:36 
GeneralRe: Application deep logging/traceing [modified] Pin
nemopeti19-Jul-06 11:54
nemopeti19-Jul-06 11:54 
QuestionStatus bar's progress bar Pin
Elvis_Pretzelator19-Jul-06 5:27
Elvis_Pretzelator19-Jul-06 5:27 
AnswerRe: Status bar's progress bar Pin
Not Active19-Jul-06 5:37
mentorNot Active19-Jul-06 5:37 
AnswerRe: Status bar's progress bar Pin
Stefan Troschuetz19-Jul-06 6:33
Stefan Troschuetz19-Jul-06 6:33 
The problem is the following line: da=new OdbcDataAdapter(this.rtbSQL.Text, this.cnn);. As the error message says accessing a control a thread other than the thread it was created on isn't allowed.
You should retrieve the value of the this.rtbSQL.Text property before starting the worker thread and then pass it to the method. Therefor you could either use this overload of the Thread.Start method[^] or follow techniques presented in this MSDN article[^].


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de
QuestionHuge file [modified] Pin
abalfazl19-Jul-06 5:24
abalfazl19-Jul-06 5:24 
AnswerRe: Huge file Pin
Not Active19-Jul-06 5:32
mentorNot Active19-Jul-06 5:32 
AnswerRe: Huge file Pin
Super Lloyd19-Jul-06 5:33
Super Lloyd19-Jul-06 5:33 
GeneralRe: Huge file Pin
abalfazl19-Jul-06 5:50
abalfazl19-Jul-06 5:50 
GeneralThe solution Pin
Ennis Ray Lynch, Jr.19-Jul-06 7:00
Ennis Ray Lynch, Jr.19-Jul-06 7:00 
GeneralRe: The solution Pin
Dan Neely19-Jul-06 7:27
Dan Neely19-Jul-06 7:27 
Generalwell duh Pin
Ennis Ray Lynch, Jr.19-Jul-06 8:36
Ennis Ray Lynch, Jr.19-Jul-06 8:36 
GeneralRe: Huge file Pin
Super Lloyd19-Jul-06 13:36
Super Lloyd19-Jul-06 13:36 
QuestionA question about Asyn-communicating by using UdpClient of .NET. Pin
weiyuw19-Jul-06 5:19
weiyuw19-Jul-06 5:19 
QuestionDateTime picker control Pin
Balaj_C19-Jul-06 5:18
Balaj_C19-Jul-06 5:18 
AnswerRe: DateTime picker control Pin
Not Active19-Jul-06 5:49
mentorNot Active19-Jul-06 5:49 
GeneralRe: DateTime picker control Pin
Balaj_C19-Jul-06 6:14
Balaj_C19-Jul-06 6:14 
QuestionProblems with Interop and Excel versions Pin
Gavin_RTE19-Jul-06 5:11
Gavin_RTE19-Jul-06 5:11 
QuestionTimers not working Pin
donkaiser19-Jul-06 4:42
donkaiser19-Jul-06 4:42 
AnswerRe: Timers not working Pin
stancrm19-Jul-06 4:55
stancrm19-Jul-06 4:55 
GeneralRe: Timers not working Pin
Martin#19-Jul-06 4:56
Martin#19-Jul-06 4:56 
AnswerRe: Timers not working Pin
Martin#19-Jul-06 4:55
Martin#19-Jul-06 4:55 

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.