Click here to Skip to main content
16,007,885 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Binding a Listbox with a dataset Pin
C1AllenS5-Feb-08 9:29
C1AllenS5-Feb-08 9:29 
AnswerRe: Binding a Listbox with a dataset Pin
Vimalsoft(Pty) Ltd5-Feb-08 18:46
professionalVimalsoft(Pty) Ltd5-Feb-08 18:46 
GeneralRe: Binding a Listbox with a dataset Pin
Dave Kreskowiak5-Feb-08 10:01
mveDave Kreskowiak5-Feb-08 10:01 
GeneralRe: Binding a Listbox with a dataset Pin
Vimalsoft(Pty) Ltd5-Feb-08 18:42
professionalVimalsoft(Pty) Ltd5-Feb-08 18:42 
QuestionSoftware Needed Pin
yasso_1155-Feb-08 4:50
yasso_1155-Feb-08 4:50 
GeneralRe: Software Needed Pin
Steven J Jowett5-Feb-08 4:56
Steven J Jowett5-Feb-08 4:56 
GeneralRe: Software Needed Pin
Christian Graus5-Feb-08 8:49
protectorChristian Graus5-Feb-08 8:49 
QuestionInvoking a delegate sub inside a module? Pin
Benny_Lava5-Feb-08 2:38
Benny_Lava5-Feb-08 2:38 
Hi,

I have a public sub in a module that inserts text into a textBox on another class(form). This sub is called when the data from a RS-232 (serial port) comes.Because the serial port is opened on another thread, a cross-thread InvalidOperationException is raised when I try to insert text into a text box.

In a class I would do this:

Private Delegate Sub procStatusDelegate(ByVal msg As String, ByVal clear As Boolean, ByVal noviRed As Boolean)

Public Sub procStatus(ByVal msg As String, ByVal clear As Boolean, ByVal noviRed As Boolean)
if me.invokeRequired then
Dim procStatusDele As New procStatusDelegate(AddressOf procStatus)
Dim params(2) As Object
params(0) = msg
params(1) = clear
params(2) = noviRed
me.invoke(procStatusDele,params)
else
' do normal stuff
end sub

But because module doesn't have Me. namespace, Me.invoke isn't available so the question is what is the alternative?

Thank You!
AnswerRe: Invoking a delegate sub inside a module? [modified] Pin
nlarson115-Feb-08 3:52
nlarson115-Feb-08 3:52 
AnswerRe: Invoking a delegate sub inside a module? Pin
Guffa5-Feb-08 8:45
Guffa5-Feb-08 8:45 
GeneralDates Between Date Pin
danasegaranea5-Feb-08 2:00
danasegaranea5-Feb-08 2:00 
GeneralRe: Dates Between Date Pin
pmarfleet5-Feb-08 2:04
pmarfleet5-Feb-08 2:04 
GeneralRe: Dates Between Date Pin
danasegaranea5-Feb-08 17:27
danasegaranea5-Feb-08 17:27 
GeneralVS2005 error: Conversion from string "negative number" to type Date is not valid Pin
Xooku5-Feb-08 0:59
Xooku5-Feb-08 0:59 
GeneralRe: VS2005 error: Conversion from string "negative number" to type Date is not valid Pin
Guffa5-Feb-08 1:14
Guffa5-Feb-08 1:14 
GeneralRe: VS2005 error: Conversion from string "negative number" to type Date is not valid Pin
Xooku5-Feb-08 1:23
Xooku5-Feb-08 1:23 
AnswerRe: VS2005 error: Conversion from string "negative number" to type Date is not valid Pin
Guffa5-Feb-08 4:20
Guffa5-Feb-08 4:20 
GeneralRe: VS2005 error: Conversion from string "negative number" to type Date is not valid Pin
Paddy Boyd5-Feb-08 2:51
Paddy Boyd5-Feb-08 2:51 
GeneralRe: VS2005 error: Conversion from string "negative number" to type Date is not valid Pin
Xooku5-Feb-08 18:12
Xooku5-Feb-08 18:12 
GeneralAuto Scroll on a text BOX Pin
Benny_Lava5-Feb-08 0:58
Benny_Lava5-Feb-08 0:58 
AnswerRe: Auto Scroll on a text BOX Pin
Scubapro5-Feb-08 1:34
Scubapro5-Feb-08 1:34 
GeneralRe: Auto Scroll on a text BOX Pin
Dave Kreskowiak5-Feb-08 10:11
mveDave Kreskowiak5-Feb-08 10:11 
QuestionCustom events? Pin
Benny_Lava5-Feb-08 0:46
Benny_Lava5-Feb-08 0:46 
AnswerRe: Custom events? Pin
nlarson115-Feb-08 3:57
nlarson115-Feb-08 3:57 
AnswerRe: Custom events? Pin
Dave Kreskowiak5-Feb-08 10:13
mveDave Kreskowiak5-Feb-08 10:13 

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.