By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Deleting forms and code

P: n/a
Hi Everybody:

I made trial version depend on the number of the access that the user enter
to my program which is 10 times.

my question is when the access become 10 I want to delete all the codes and
forms in my program and end my program.

so any one can tell me any direction or advise to do so.

any help will be appreciated

regard's

Husam
Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Husam" <Hu***@discussions.microsoft.com> schrieb:
I made trial version depend on the number of the access that the user
enter
to my program which is 10 times.

my question is when the access become 10 I want to delete all the codes
and
forms in my program and end my program.


\\\
Public Sub Main()
If GetNumberOfRuns() = 10 Then
MsgBox("Buy the full version!")
Else
Application.Run(New MainForm())
End If
End Sub
///

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

Nov 21 '05 #2

P: n/a
Herfried,

I tried your code it did not work.

Cor
Nov 21 '05 #3

P: n/a
Husam,

I don't know how it is done, however probably it will be mostly done by a
dirty name and use of the registry where you keep track of the count.

I don't think that anybody will tell how they did it.

However I would never delete the code or whatever on a customer computer
withouth his knowledge, the change that you delete something wrong is not
impossible. They can in most countries probably charge you for the loss of
important information. (And if that was not there is than something you have
to proof)

I hope this helps,

Cor
Nov 21 '05 #4

P: n/a
"Cor Ligthert" <no************@planet.nl> schrieb:
I tried your code it did not work.


It's time to turn the brain on...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #5

P: n/a
Verry cool answer ...

,,,, ;-) ,,,,,


"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eJ**************@tk2msftngp13.phx.gbl...
"Cor Ligthert" <no************@planet.nl> schrieb:
I tried your code it did not work.


It's time to turn the brain on...

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

Nov 21 '05 #6

P: n/a
> Verry cool answer ...

,,,, ;-) ,,,,,

????

Cor
Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.