473,398 Members | 2,125 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,398 software developers and data experts.

License screen

Hi

Is there a way that when the end user runs a vb.net app for the very first
time a license screen pops up asking to agree the license and if user agrees
then screen disappears and never appears again for the lifetime of the
application. The part that I am not sure about is how to ensure that the
screen never come sup again.

Thanks

Regards
Nov 20 '05 #1
6 1572
-----Original Message-----
Hi

Is there a way that when the end user runs a vb.net app for the very firsttime a license screen pops up asking to agree the license and if user agreesthen screen disappears and never appears again for the lifetime of theapplication. The part that I am not sure about is how to ensure that thescreen never come sup again.

Thanks

Regards


Hello
You could use the registry...
Kind Regards
Jorge.

Nov 20 '05 #2
Cor
Hi John,
Never is impossible, but you can put a switch in the registry.
That is easy to do with VB.net
If you have problems with doing that, message again please?
Success
Cor

Nov 20 '05 #3
Hi

Yes, please give an example of how to set the registry and then to check it
later to see if it has already been done.

Many Thanks

Regards
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...
Hi John,
Never is impossible, but you can put a switch in the registry.
That is easy to do with VB.net
If you have problems with doing that, message again please?
Success
Cor

Nov 20 '05 #4
Cor
Hi John,
I think this is the easiest way.
You will see, that you will later put this in a class, but this is for an
example
And just and example, you have to test it yourself if it works.
I did nothing if the user doen't accept the licence, that you have to do
yourself of course.
\\\\\
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim Reg As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.CurrentUser
Dim FirstStart As Integer
Reg =
Microsoft.Win32.Registry.CurrentUser.CreateSubKey( "Software\John")
FirstStart = CInt(Reg.GetValue("FirstStart"))
If FirstStart = 0 Then
Dim LicenceForm As New Form2
LicenceForm.ShowDialog(Me)
If True = True Then 'Licenceform.OK this you have to change for
sure
Reg.SetValue("FirstStart", 1)
LicenceForm.Dispose()
End If
End If
End Sub
////
I will be glad if you answer me if it did work?
I hope this helps a little bit.
Cor
Nov 20 '05 #5
Hi

Is the subkey created every time the application is run? Would this not
overwrite 'firsttime' every time? Should we not check for the existence of
sub key "Software\John" before creating it?

Thanks

Regards
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
Hi John,
I think this is the easiest way.
You will see, that you will later put this in a class, but this is for an
example
And just and example, you have to test it yourself if it works.
I did nothing if the user doen't accept the licence, that you have to do
yourself of course.
\\\\\
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Reg As Microsoft.Win32.RegistryKey =
Microsoft.Win32.Registry.CurrentUser
Dim FirstStart As Integer
Reg =
Microsoft.Win32.Registry.CurrentUser.CreateSubKey( "Software\John")
FirstStart = CInt(Reg.GetValue("FirstStart"))
If FirstStart = 0 Then
Dim LicenceForm As New Form2
LicenceForm.ShowDialog(Me)
If True = True Then 'Licenceform.OK this you have to change for sure
Reg.SetValue("FirstStart", 1)
LicenceForm.Dispose()
End If
End If
End Sub
////
I will be glad if you answer me if it did work?
I hope this helps a little bit.
Cor

Nov 20 '05 #6
Cor
John,

This about the registry question. please keep questions to the same thread,
because otherwise other people become confused.

For me my registry answer did work, I tested it, but you would do that
yourself too.

On this newsgroup are no garanties, just advices and help.

I think the only problem can be if there is another company with the name
John, which uses the same keyname

But I should not know how to overcome that.

Cor
Nov 20 '05 #7

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

Similar topics

11
by: gooze | last post by:
Hi I know, this might be the wrong place for such a question, but maybe you can redirect me to the right place to post. I wrote a small software under the GNU General Public License and put...
34
by: Michael Foord | last post by:
I'd like to formalise slightly the license I release my projects under. At the moment it's 'free to use, modify, distribute and relicense'. This is basically fine as I don't want t oprevent people...
9
by: Daniel Keep | last post by:
I'm currently working on a Python program, and was wondering if it's possible to license the program, some associated tools, and a few other libraries I've written under the Python license. I...
18
by: Antoon Pardon | last post by:
I have made a module derived from the Queue module deliverd with python 2.3. I would like to make this module (called tube) available for other people. However it is not clear to me how I can do...
1
by: bruce gilland | last post by:
Hi all, I am new to Visual C++. I need to implement a software install program, which at one point needs to display a screen of licensing text, possibly scrollable. At the bottom, it needs...
3
by: bruce | last post by:
Hi, I am trying to write a simple installation program that asks the user a few questions and then installs a software application and its associate files based on those answers. I am new to...
51
by: mojosam | last post by:
I've been watching the flame war about licenses with some interest. There are many motivations for those who participate in this sector, so disagreements over licenses reflect those agendas. I...
2
by: Jonas Bergman | last post by:
Hi I would like to have some input on creating license codes. I do not really wish to use any standard methods (like -lic files). What I need to do is the following. Our application will...
4
by: Martitza | last post by:
Hi. I work for a small company (actually in process of forming) interested in embedding or extending python as part of our commercial non-open-source product. We have legal counsel, but are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
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...

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.