By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Invoke from a Module

P: n/a
Hi,

Does anyone know how to do the equivalent of me.invoke from within a
module?

Cheers..

Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"FNZB" <ha**********@btopenworld.com> schrieb
Hi,

Does anyone know how to do the equivalent of me.invoke from within a
module?


Invoke what?
Armin
Nov 21 '05 #2

P: n/a
Sorry, should have expanded on the question.

I can invoke a delegate within a forms class by creating a delegate sub
for another assembly event, small example below.

Private Delegate Sub dlgClient(ByVal index As integer)

private sub....
Dim dlg As New dlgClient(AddressOf Client)
me.invoke(dlg, New Object() {index})
end sub

Private Sub Client(ByVal index As Integer)
....

My problem is that im trying to do this within a Module because i
dont want to start my application from a form, however i do want to
display a form later. So Im currently using ...dlg.invoke... but when
i try to show the form from within the sub Client it runs the code fine
but the form doesnt show.

Im open to suggestions...

Thanks..

Nov 21 '05 #3

P: n/a
"FNZB" <ha**********@btopenworld.com> schrieb
Sorry, should have expanded on the question.

I can invoke a delegate within a forms class by creating a delegate
sub for another assembly event, small example below.

Private Delegate Sub dlgClient(ByVal index As integer)

private sub....
Dim dlg As New dlgClient(AddressOf Client)
me.invoke(dlg, New Object() {index})
end sub

Private Sub Client(ByVal index As Integer)
...

My problem is that im trying to do this within a Module because i
dont want to start my application from a form, however i do want to
display a form later. So Im currently using ...dlg.invoke... but
when i try to show the form from within the sub Client it runs the
code fine but the form doesnt show.

Im open to suggestions...

Thanks..


private sub....
Dim dlg As New dlgClient(AddressOf Client)
dlg(0)
end sub
Armin
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.