Click here to Skip to main content
15,909,445 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionClass Pin
momooomooomomo15-Nov-06 14:37
momooomooomomo15-Nov-06 14:37 
AnswerRe: Class Pin
Christian Graus15-Nov-06 15:10
protectorChristian Graus15-Nov-06 15:10 
GeneralRe: Class Pin
momooomooomomo15-Nov-06 16:04
momooomooomomo15-Nov-06 16:04 
GeneralRe: Class Pin
Christian Graus15-Nov-06 16:46
protectorChristian Graus15-Nov-06 16:46 
GeneralRe: Class Pin
momooomooomomo15-Nov-06 19:03
momooomooomomo15-Nov-06 19:03 
QuestionWhy so hard to write to a textbox? Pin
cstrader23215-Nov-06 12:18
cstrader23215-Nov-06 12:18 
AnswerRe: Why so hard to write to a textbox? Pin
Christian Graus15-Nov-06 13:12
protectorChristian Graus15-Nov-06 13:12 
AnswerRe: Why so hard to write to a textbox? Pin
Yona Low15-Nov-06 13:15
Yona Low15-Nov-06 13:15 
Windows Forms are not thread safe, since you want to update the textbox from another thread you will need to marshal the update method to the original thread (the main form thread) and execute the method there.

Code might look like this:

Delegate Sub TextDelegate(ByVal Text As String) 'Declared Somewhere

Sub SetText(ByVal Text As String) 'Declared Somewhere
Me.TextBox1.Text = Text
End Sub

'From second thread
If TextBox1.InvokeRequired Then TextBox1.Invoke(New TextDelegate(AddressOf SetText), "Hello")

'If calling from a second thread, create a bridge (Delegate) to a custom sub on the fly and tell the first thread to execute it through the safe bridge

Hope this clarifies something
GeneralRe: Why so hard to write to a textbox? Pin
cstrader23215-Nov-06 15:27
cstrader23215-Nov-06 15:27 
GeneralRe: Why so hard to write to a textbox? Pin
Yona Low16-Nov-06 3:48
Yona Low16-Nov-06 3:48 
GeneralRe: Why so hard to write to a textbox? Pin
cstrader23218-Nov-06 3:31
cstrader23218-Nov-06 3:31 
AnswerRe: Why so hard to write to a textbox? Pin
Yona Low19-Nov-06 8:07
Yona Low19-Nov-06 8:07 
Questionvb.net 2003 and Crystal Reports Pin
xtodazee15-Nov-06 10:39
xtodazee15-Nov-06 10:39 
QuestionSplit Binary Files Pin
flash.tato15-Nov-06 9:19
flash.tato15-Nov-06 9:19 
AnswerRe: Split Binary Files Pin
Christian Graus15-Nov-06 9:45
protectorChristian Graus15-Nov-06 9:45 
Questionfor quiz program Pin
bapu288915-Nov-06 9:04
bapu288915-Nov-06 9:04 
AnswerRe: for quiz program Pin
Christian Graus15-Nov-06 9:20
protectorChristian Graus15-Nov-06 9:20 
QuestionRe: for quiz program Pin
bapu288916-Nov-06 9:11
bapu288916-Nov-06 9:11 
AnswerRe: for quiz program Pin
Christian Graus16-Nov-06 9:18
protectorChristian Graus16-Nov-06 9:18 
QuestionRe: for quiz program Pin
bapu288916-Nov-06 9:26
bapu288916-Nov-06 9:26 
AnswerRe: for quiz program Pin
Christian Graus16-Nov-06 9:39
protectorChristian Graus16-Nov-06 9:39 
AnswerRe: for quiz program Pin
bapu288916-Nov-06 9:51
bapu288916-Nov-06 9:51 
QuestionDatagrid - Populate with SQL Select Statement Pin
Larry White15-Nov-06 7:53
Larry White15-Nov-06 7:53 
AnswerRe: Datagrid - Populate with SQL Select Statement Pin
Kevin Nicol15-Nov-06 8:53
Kevin Nicol15-Nov-06 8:53 
GeneralRe: Datagrid - Populate with SQL Select Statement Pin
Larry White15-Nov-06 10:12
Larry White15-Nov-06 10:12 

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.