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

Visual Basic

 
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 
AnswerRe: Show dataset created in own thread in GUI Pin
Sonhospa26-May-10 5:53
Sonhospa26-May-10 5:53 
Hi Johan,

did you already try the standard method using a delegate? It's commonly used to avoid cross-thread trouble... This is an untested example - just an idea:
Public Delegate Sub CopyDelegate(ByVal e As CopyEventArgs)

Public Sub UpdateGui(ByVal e As CopyEventArgs)
    If InvokeRequired Then
        Dim dlg As New CopyDelegate(AddressOf UpdateGui)
        BeginInvoke(dlg, New Object() {e.arg1, e.arg2})
    Else
        ' put everything to happen on the GUI here
        DataGridView.DataSource = MyGUIThreadDataSet
    End If
End Sub
Hope it helps Thumbs Up | :thumbsup:

Michael

modified on Wednesday, May 26, 2010 12:18 PM

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 
GeneralRe: Datagridview checkbox enter key [modified] Pin
C#Coudou25-May-10 18:35
C#Coudou25-May-10 18:35 

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.