Show About form on DLL start

  • Thread starter Thread starter Martin H.
  • Start date Start date
M

Martin H.

Hi,

I'm working on a DLL which I want to make available for download (when
it's ready).

However, since I want to make a few $$, I want that the About dialog of
the DLL is shown each time the program (which references the DLL) is
started.

Is there any chance I can do that? I would not want to call the
lincensing routine in each function

Thanks in advance!

Best regards,

Martin
 
Hello Martin

Well this is pretty easy to acomplish , just add the about form to the
project and now add a sub new to your class in this sub new you initiate the
about form
however keep in mind that it is considered bad coding practice to use GUI
blocking code ( code that stops the message pump ) from a Dll

so my recomendation is to start a nag screen modeless on a sperate thread

regards

Michel Posseth [MCP]
 
Hello Michel,
Well this is pretty easy to acomplish , just add the about form to the
project and now add a sub new to your class in this sub new you initiate the
about form

I thought about that. However, I have quite many "Shared" functions in
my DLL, so I would have to add this License Check to each "Shared"
function. And that is what I want to avoid. So this is why I wonder, if
there is any "central" location on a DLL (similar to a Start Object or
Sub Main() on a DLL.
however keep in mind that it is considered bad coding practice to use GUI
blocking code ( code that stops the message pump ) from a Dll
so my recomendation is to start a nag screen modeless on a sperate thread

I wrote the License function as a normal form for a reason: If I wrote
it as a separate thread the application using my DLL could get the nag
screen and hide it outside the visible screen. If the programmer wants
to avoid the message, he has to register. If he does not want to
register, he has to live with the fact that his program will be
interrupted the first time he uses any function of the DLL.

Best regards,

Martin
 
Martin H. said:
I thought about that. However, I have quite many "Shared" functions in my
DLL, so I would have to add this License Check to each "Shared" function.
And that is what I want to avoid. So this is why I wonder, if there is any
"central" location on a DLL (similar to a Start Object or Sub Main() on a
DLL.

You could try to add it to the class' shared constructor ('Shared Sub
New()').
 
Hello Herfried,
You could try to add it to the class' shared constructor ('Shared Sub
New()').

Thanks a lot! This is what I was looking for.

Best regards,

Martin
 
Back
Top