Working with DLLs

G

Guest

Hello,

With the help from people here, I've managed to make VB export functions and
make my DLL app work from within another application. Now I am required to
implement a functionality that when a user minimizes the main application,
the VB DLL application will get minimized also. So, if the VB DLL B works
inside application A, when A gets minimized, B gets minimized too. So far,
when I run application B inside A, I am only allowed to work within B until
it is closed. Is there a VB form property that modifies a state of a form?
If not, is there anything else I should do? Sorry, I am quite new to VB
environment and its functionalities.

Thank you,
Victor.
 
H

Herfried K. Wagner [MVP]

victorsk said:
Is there a VB form property that modifies a state of a form?
If not, is there anything else I should do?

\\\
Me.WindowState = vbMinimized
///
 
G

Guest

Hi,

Thanks for the reply. I put this code inside Form_Load() method but what it
does is to start DLL application in a minimized state. There is an
equivalent in form1 -> properties -> windowState options. But, I think it
does have to do something with Window state and "Me" data member so I
appreciate the idea.

Thank you,
Victor.
 
G

Guest

Hi,

Sorry, I probably have the weirdest questions here. What basically happens
is when I run my custom DLL app inside a main application, all the
functionalities of main application are disabled while the DLL app is open.
What I need to implement is the enabling of both DLL app and main
(container?) app functionalities which includes minimizing the main app
together with DLL app - such are my bosses' specifications.

Victor.
 
H

Herfried K. Wagner [MVP]

victorsk said:
Sorry, I probably have the weirdest questions here. What basically
happens
is when I run my custom DLL app inside a main application, all the
functionalities of main application are disabled while the DLL app is
open.
What I need to implement is the enabling of both DLL app and main
(container?) app functionalities which includes minimizing the main app
together with DLL app - such are my bosses' specifications.

Notice that the scenario of exporting functions from VB6 DLLs is in no way
supported, although it is possible. There are certain things you'll have to
keep in mind, like potential threading issues. I don't recommend exporting
functionality that deals with VB6 UIs at all, and I would not take a project
with such a requirement.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top