473,472 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Show About form on DLL start

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
Mar 10 '07 #1
4 2067
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]

"Martin H." <hk***@gmx.netschreef in bericht
news:45**********************@news.freenet.de...
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

Mar 10 '07 #2
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
Mar 10 '07 #3
"Martin H." <hk***@gmx.netschrieb:
>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.
You could try to add it to the class' shared constructor ('Shared Sub
New()').

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 10 '07 #4
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

Mar 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: genetic.error | last post by:
I'm moving from Vb6 to VB.Net. I have a feeling this has come up before... The VS.Net MSDN file seems to state that the following should work: Form1.Show Form1.Visible = True Form1.Hide...
20
by: WindAndWaves | last post by:
Hi Gurus I was wondering if you can send me in the right direction: I have a table with about 300 rows. I want to make all of them invisible and when a user enters a code in a form then make...
6
by: Chris Thunell | last post by:
Right now I have a vb.net windows form project that does a whole bunch of things on the form.load event. The problem with this is that the user does not see the form until all the those things are...
15
by: Paul T. Rong | last post by:
Hi everybody, This time a very very difficult case: I have a table "tblStudent", there are 50 students, I also made a form "frmStudent" based on "tblStudent", now if I don't want to show all...
4
by: anders | last post by:
I have a 'solution' with a Webservice, Business layer and a data layer. In the Business layer I've added a form that need to be started on the server(this site has full rights, runs with Local...
7
by: Pi | last post by:
I have an MDI parent with one or more children forms. Each child form has an engine thread that processes data. The child form's _Closing event is roughly 01 Private Sub...
13
by: Tim Smallwood | last post by:
Hi, This is probably a stupid question, but I can't seem to get a form to show / load? In the older versions of VB I'd use frmMyform.show / load myForm, etc? I looked at the help file and it...
0
by: question | last post by:
Hi! I have a requirement where I need to display multiple forms one after the other like a slide show. These are in the same application. Basicall on selection of a menu item it should start...
4
by: DBC User | last post by:
Hi, I have windows form program. While that form is building to show, I want to show another window (kinda splash screen so I can show the user the program is loading..) Can someone suggest a...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
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
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...
0
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.