Click here to Skip to main content
15,891,184 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Windows Service Comsuming 99% CPU Pin
Аslam Iqbal11-Jul-10 0:54
professionalАslam Iqbal11-Jul-10 0:54 
QuestionHow can I right-align an image inside a picturebox? Pin
Sonhospa26-May-10 7:28
Sonhospa26-May-10 7:28 
NewsRe: How can I right-align an image inside a picturebox? Pin
Sonhospa26-May-10 8:30
Sonhospa26-May-10 8:30 
GeneralRe: How can I right-align an image inside a picturebox? Pin
Henry Minute26-May-10 11:59
Henry Minute26-May-10 11:59 
GeneralRe: How can I right-align an image inside a picturebox? Pin
Luc Pattyn26-May-10 13:05
sitebuilderLuc Pattyn26-May-10 13:05 
GeneralRe: How can I right-align an image inside a picturebox? Pin
Luc Pattyn26-May-10 13:09
sitebuilderLuc Pattyn26-May-10 13:09 
NewsRe: How can I right-align an image inside a picturebox? Pin
Sonhospa27-May-10 9:54
Sonhospa27-May-10 9:54 
QuestionShow dataset created in own thread in GUI Pin
Johan Hakkesteegt26-May-10 2:58
Johan Hakkesteegt26-May-10 2:58 
Hi,

(.net 4, VS 2010 express)
I have a windows form with a DataGridView, a dataset, a timer, and a boolean variable (GUI thread).
I have a separate thread where I fill another dataset, created in that thread (data thread), when this thread has filled its own dataset I set the boolean to true.
At the timer tick event, in the GUI thread, I check the boolean. If it is true, I copy the data thread's dataset to the GUI thread's dataset (MyGUIThreadDataSet = MyDataThreadDataSet.Copy).
Then I attach the GUI thread's dataset to the DataGridView (DataGridView.DataSource = MyGUIThreadDataSet).
When I run the application, the line DataGridView.DataSource = MyGUIThreadDataSet causes a cross thread error.

What am I missing here?

Cheers,

Johan
My advice is free, and you may get what you paid for.

AnswerRe: Show dataset created in own thread in GUI Pin
Sonhospa26-May-10 5:53
Sonhospa26-May-10 5:53 
GeneralRe: Show dataset created in own thread in GUI Pin
William Winner26-May-10 13:08
William Winner26-May-10 13:08 
GeneralRe: Show dataset created in own thread in GUI Pin
Johan Hakkesteegt26-May-10 20:56
Johan Hakkesteegt26-May-10 20:56 
QuestionVBA Previous sheet copy Pin
Dalek Dave26-May-10 1:21
professionalDalek Dave26-May-10 1:21 
AnswerRe: VBA Previous sheet copy Pin
JR21226-May-10 1:52
JR21226-May-10 1:52 
GeneralRe: VBA Previous sheet copy Pin
Dalek Dave26-May-10 3:11
professionalDalek Dave26-May-10 3:11 
GeneralRe: VBA Previous sheet copy Pin
JR21226-May-10 22:56
JR21226-May-10 22:56 
AnswerRe: VBA Previous sheet copy Pin
DaveAuld26-May-10 2:12
professionalDaveAuld26-May-10 2:12 
GeneralRe: VBA Previous sheet copy Pin
Dalek Dave26-May-10 3:12
professionalDalek Dave26-May-10 3:12 
GeneralRe: VBA Previous sheet copy Pin
DaveAuld26-May-10 3:55
professionalDaveAuld26-May-10 3:55 
GeneralRe: VBA Previous sheet copy Pin
Dalek Dave26-May-10 3:59
professionalDalek Dave26-May-10 3:59 
QuestionHow to serialize shared members of a class? Pin
MohammadAmiry26-May-10 0:32
MohammadAmiry26-May-10 0:32 
AnswerRe: How to serialize shared members of a class? Pin
Dave Kreskowiak26-May-10 2:02
mveDave Kreskowiak26-May-10 2:02 
QuestionDatagridview checkbox enter key Pin
C#Coudou25-May-10 15:04
C#Coudou25-May-10 15:04 
AnswerRe: Datagridview checkbox enter key Pin
Dr.Walt Fair, PE25-May-10 15:41
professionalDr.Walt Fair, PE25-May-10 15:41 
GeneralRe: Datagridview checkbox enter key Pin
C#Coudou25-May-10 15:56
C#Coudou25-May-10 15:56 
GeneralRe: Datagridview checkbox enter key Pin
Dr.Walt Fair, PE25-May-10 16:47
professionalDr.Walt Fair, PE25-May-10 16:47 

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.