473,670 Members | 2,563 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3284
"FNZB" <ha**********@b topenworld.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(Addre ssOf 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**********@b topenworld.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(Addre ssOf 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(Addre ssOf 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
4095
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 has been made. Whenever I attempt to update my frmProgress, the events are put placed at the end of the thread's queue and executed after my algorithm is finished. Using the frmProgress.Label.Invoke method with delagates, I have heard would fix...
7
4431
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
2309
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. I can get the button to open the other form but I can't get it to run the module with the subroutine in it. This is my first sorti into programming Access so be kind - I have some SQL and ASP experience but these modules are a problem for me.
2
1878
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 DataProcessingResults(object o, PresentationEventArgs args) { object argsData = new object; argsData = o; argsData = (object) args;
2
1366
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 to it. How do I do this? I tried various things but they didn't work for me. Can someone show me how to do this? Some simple code samples would even be better.
3
1246
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 ... End Class
4
3358
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 way for me? the simple and speediness choice the better. thanks.
14
4828
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 mailto_url(to=None,subject=None,body=None,cc=None): """ encodes the content as a mailto link as described on http://www.faqs.org/rfcs/rfc2368.html
2
2613
by: yuhongbao_386 | last post by:
Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported?
0
8384
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8901
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8813
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7412
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6212
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2037
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.