Click here to Skip to main content
16,010,360 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWebBrowser Control Print method won't Print Pin
rm302913-Nov-09 17:12
rm302913-Nov-09 17:12 
AnswerRe: WebBrowser Control Print method won't Print Pin
waddahattar13-Nov-09 22:00
waddahattar13-Nov-09 22:00 
AnswerRe: WebBrowser Control Print method won't Print Pin
Dave Kreskowiak14-Nov-09 1:21
mveDave Kreskowiak14-Nov-09 1:21 
QuestionHelp in code in visual basic for a new vb student Pin
Scamperdoodle13-Nov-09 9:37
Scamperdoodle13-Nov-09 9:37 
AnswerRe: Help in code in visual basic for a new vb student Pin
The Man from U.N.C.L.E.13-Nov-09 11:34
The Man from U.N.C.L.E.13-Nov-09 11:34 
AnswerRe: Help in code in visual basic for a new vb student Pin
Steven J Jowett14-Nov-09 0:17
Steven J Jowett14-Nov-09 0:17 
QuestionC# code snippet need help converting to VB Pin
bubk13-Nov-09 9:28
bubk13-Nov-09 9:28 
AnswerRe: C# code snippet need help converting to VB Pin
Dave Kreskowiak13-Nov-09 10:39
mveDave Kreskowiak13-Nov-09 10:39 
Easy, put your VB code in a seperate method than create the ThreadStart using that method.
Private Sub SomeMethodName()
    Dim form As New TProgress(DBNull.Value, port)
    form.sport = sport
    form.Show()
    form.GetThread = New Thread(New ParameterizedThreadStart(AddressOf form.GetInvoke))
    form.GetThread.Start(Transfer)
End Sub

And for the line you couldn't convert:
Dim start As New ThreadStart(AddressOf SomeMethodName)


Now, I'm not saying this code is going to work. Also, if this is doing what I think it's doing, it's a REALLY bad idea to create and show a form from a thread that is not the UI thread (the one your app started on).


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




GeneralRe: C# code snippet need help converting to VB Pin
bubk13-Nov-09 10:55
bubk13-Nov-09 10:55 
AnswerRe: C# code snippet need help converting to VB Pin
Dave Doknjas13-Nov-09 11:51
Dave Doknjas13-Nov-09 11:51 
AnswerRe: C# code snippet need help converting to VB Pin
Milad.Biroonvand14-Nov-09 17:55
Milad.Biroonvand14-Nov-09 17:55 
QuestionFtpWebRequest Pin
Archimedes2413-Nov-09 6:46
professionalArchimedes2413-Nov-09 6:46 
AnswerRe: FtpWebRequest Pin
Dave Kreskowiak13-Nov-09 7:27
mveDave Kreskowiak13-Nov-09 7:27 
GeneralRe: FtpWebRequest Pin
Archimedes2414-Nov-09 0:59
professionalArchimedes2414-Nov-09 0:59 
GeneralRe: FtpWebRequest Pin
Dave Kreskowiak15-Nov-09 10:55
mveDave Kreskowiak15-Nov-09 10:55 
GeneralRe: FtpWebRequest Pin
Archimedes2415-Nov-09 21:25
professionalArchimedes2415-Nov-09 21:25 
QuestionDatagridView Button Column Cell Editing Control Width. Pin
priyamtheone13-Nov-09 2:38
priyamtheone13-Nov-09 2:38 
AnswerRe: DatagridView Button Column Cell Editing Control Width. Pin
Dave Kreskowiak13-Nov-09 4:45
mveDave Kreskowiak13-Nov-09 4:45 
QuestionHow to get general control of any window in VB .net Pin
mtayyab200913-Nov-09 1:41
mtayyab200913-Nov-09 1:41 
AnswerRe: How to get general control of any window in VB .net Pin
Johan Hakkesteegt13-Nov-09 2:43
Johan Hakkesteegt13-Nov-09 2:43 
AnswerRe: How to get general control of any window in VB .net Pin
EliottA13-Nov-09 2:48
EliottA13-Nov-09 2:48 
AnswerRe: How to get general control of any window in VB .net Pin
Dave Kreskowiak13-Nov-09 4:31
mveDave Kreskowiak13-Nov-09 4:31 
Questionbinding data with gridview Pin
KIDYA12-Nov-09 21:45
KIDYA12-Nov-09 21:45 
AnswerRe: binding data with gridview Pin
Johan Hakkesteegt12-Nov-09 22:46
Johan Hakkesteegt12-Nov-09 22:46 
GeneralRe: binding data with gridview Pin
KIDYA12-Nov-09 22:52
KIDYA12-Nov-09 22:52 

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.