Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Solve Integration Equiation ? Pin
Adel83k9-Dec-04 21:44
Adel83k9-Dec-04 21:44 
AnswerRe: How to Solve Integration Equiation ? Pin
cjengler10-Dec-04 0:09
cjengler10-Dec-04 0:09 
QuestionHow do I write a class extend to another form? Pin
ting6688-Dec-04 22:13
ting6688-Dec-04 22:13 
Generalwhere to create object Pin
montu33778-Dec-04 21:51
montu33778-Dec-04 21:51 
GeneralFilter messages Pin
A T I F8-Dec-04 20:20
A T I F8-Dec-04 20:20 
GeneralRe: Filter messages Pin
Alex Korchemniy8-Dec-04 20:42
Alex Korchemniy8-Dec-04 20:42 
GeneralRe: Filter messages Pin
A T I F9-Dec-04 18:27
A T I F9-Dec-04 18:27 
GeneralA Bug in Tab Control? Help! Pin
slylos8-Dec-04 19:27
slylos8-Dec-04 19:27 
I have an app written in C# (obviously). Here is my dilemma:

The form loads, instantiates a bunch of worker threads that execute one at a
time. When one finishes, it starts the next one in line. I have about 5
datagrids on 5 different tab pages in a tab control. What I'm using the
Threads for is pretty basic: get data from a database and fill a datagrid. I
use delegates throughout to allow the worker thread to call the
'FillDataGrid' method in the main thread (the form thread). I've had
problems before with threads not accessing other threads controls which is
why I use the delegates. But still it crashes with the following:

An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll

Additional information: Controls created on one thread cannot be parented to
a control on a different thread.

I decided to add another tab page (out of pure imagination) as the first tab
page in the control. voila! now everything loads properly (without changing
any code whatsoever). Problem is, I try to programmatically remove the
temporary page (with a generic "please wait while loading" message). It
removes the page fine, but on the next page in line, all the controls
dissappear. If I don't change or remove tab pages programmatically, all the
controls stay intact. I'm not sure what I am missing, and leaving the temp
page intact is just ugly. Anybody know what I'm missing?


If you put a time limit on this project, it won't ever get finished . . .
Generalvb6 and C# Pin
sharon_s8-Dec-04 19:14
sharon_s8-Dec-04 19:14 
GeneralRe: vb6 and C# Pin
Alex Korchemniy8-Dec-04 20:27
Alex Korchemniy8-Dec-04 20:27 
GeneralRe: vb6 and C# Pin
Alexander Kent10-Dec-04 17:32
Alexander Kent10-Dec-04 17:32 
GeneralRe: vb6 and C# Pin
sharon_s10-Dec-04 21:35
sharon_s10-Dec-04 21:35 
Generalbit values Pin
Anonymous8-Dec-04 19:10
Anonymous8-Dec-04 19:10 
GeneralRe: bit values Pin
Alex Korchemniy8-Dec-04 20:10
Alex Korchemniy8-Dec-04 20:10 
GeneralPointToClient and PointToScreen Pin
Tyrus1828-Dec-04 18:21
Tyrus1828-Dec-04 18:21 
GeneralRe: PointToClient and PointToScreen Pin
Alex Korchemniy8-Dec-04 18:43
Alex Korchemniy8-Dec-04 18:43 
GeneralRe: PointToClient and PointToScreen Pin
Tyrus1828-Dec-04 18:46
Tyrus1828-Dec-04 18:46 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 18:45
Jay Shankar8-Dec-04 18:45 
GeneralRe: PointToClient and PointToScreen Pin
Anonymous8-Dec-04 18:47
Anonymous8-Dec-04 18:47 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 18:52
Jay Shankar8-Dec-04 18:52 
GeneralRe: PointToClient and PointToScreen Pin
Anonymous8-Dec-04 19:02
Anonymous8-Dec-04 19:02 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 19:14
Jay Shankar8-Dec-04 19:14 
GeneralRe: PointToClient and PointToScreen Pin
Tyrus1828-Dec-04 19:19
Tyrus1828-Dec-04 19:19 
GeneralRe: PointToClient and PointToScreen Pin
Jay Shankar8-Dec-04 19:54
Jay Shankar8-Dec-04 19:54 
GeneralRe: PointToClient and PointToScreen Pin
Alex Korchemniy8-Dec-04 21:10
Alex Korchemniy8-Dec-04 21:10 

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.