473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Invoke from a Module

Hi,

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

Cheers..

Nov 21 '05 #1
3 3254
"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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Altland | last post by:
Here is my basic problem. I have a form that executes a cpu instensive algorithm occupying the first thread. When the algorithm is executed another form pops up telling the user the progress that...
7
by: AznCollegeGuy | last post by:
Hello, Im trying to invoke a simple perl script with in my visual c++ gui program to with c++'s system call feature: when i call: system("dir"); it works
6
by: Jules | last post by:
Hi: I have an Access 97 Search form set up - a couple of combo boxes, a couple of text fields and a command button. I want the command button to run an SQL script and then open the results form....
2
by: Meya-awe | last post by:
Anyone can tell me how to use control.Invoke or .BeginInvoke if i want to pass some day from a non-ui thread to a ui thread? Currently, i am using events into the UI module: private void...
2
by: feng | last post by:
Hi, In my program, I have a loaded assembly that contains a module (not a class, not a form, but a module). I need to use reflection to invoke a method in this module and pass some parameters...
3
by: yxq | last post by:
Hello, I writed some classes(but not a class) in a ClassLibrary and builded a test.dll file, but how to invoke the test.dll? 'test.dll////////////////////// Moudle MyTest Public class A ......
4
by: momobear | last post by:
A friend of my write a Java program, and I want use it in my python program as a module. I searched the topic in Google and find maybe the better way is use GCJ to compile it. Is there any other...
14
by: luc.saffre | last post by:
Hello, the simplest way to launch the user's standard mail client from a Python program is by creating a mailto: URL and launching the webbrowser: def...
2
by: yuhongbao_386 | last post by:
Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.