Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is it possible to call a control event inside another event? Pin
Eddy Vluggen15-Dec-18 6:35
professionalEddy Vluggen15-Dec-18 6:35 
GeneralRe: Is it possible to call a control event inside another event? Pin
Member 1097549715-Dec-18 9:43
Member 1097549715-Dec-18 9:43 
GeneralRe: Is it possible to call a control event inside another event? Pin
Eddy Vluggen15-Dec-18 9:46
professionalEddy Vluggen15-Dec-18 9:46 
QuestionHow to make blood donation management system in C# windows forms? Pin
User-14714-Dec-18 5:21
User-14714-Dec-18 5:21 
AnswerRe: How to make blood donation management system in C# windows forms? Pin
Pete O'Hanlon14-Dec-18 5:23
mvePete O'Hanlon14-Dec-18 5:23 
AnswerRe: How to make blood donation management system in C# windows forms? Pin
OriginalGriff14-Dec-18 5:44
mveOriginalGriff14-Dec-18 5:44 
AnswerRe: How to make blood donation management system in C# windows forms? Pin
Luc Pattyn14-Dec-18 6:50
sitebuilderLuc Pattyn14-Dec-18 6:50 
Question(might be solved) need some ideas about licensing implementation Pin
Super Lloyd11-Dec-18 21:01
Super Lloyd11-Dec-18 21:01 
I am working on a desktop software that I eventually hope to sell next year.
It's an end user application, not a business app. It will cost like $30, or free if you don't mind the built-in nagware on every save.

I plan to have my licensing follow the following algorithm:
1. First Run
    a. find a UniqueID for this installation
    b. ask the server to provide a license key for that UniqueID (providing relevant info)
    c. save licence key as text file in application folder
2. Later Runs
    a. Find the installation UniqueID
    b. Match system UniqueID to licence key

My problem now is step a., how to Find Installation UniqueID?

Idea 1.
One of the best candidate so far is to get a hard drive unique ID
Searching for a reliable hardware ID

Now, as some critics said, you have to license again if you change the hard drive.
However I am not sure how one could avoid licensing again on a new hardware / system.

Idea 2
Why bother with hard drive number, simply store a GUID generated on install, or first check and store in the Windows Registry.
Pretty much the same as idea 1 practically, as far as user experience is concerned though.

Other Ideas
Any better licensing model to suggest? or key generation method?

[EDIT]
Found something interesting in StackOverflow:
c# - What is a good unique PC identifier? - Stack Overflow
Which I can get with the following snippet:
static void Main(string[] args)
{
    var key = RegistryKey.OpenBaseKey(
        RegistryHive.LocalMachine,
        Environment.Is64BitOperatingSystem
            ? RegistryView.Registry64
            : RegistryView.Registry32);

    using (var reg = key.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"))
    {
        var v = reg.GetValue("ProductId");
        Console.WriteLine(v);
    }
}
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 13-Dec-18 9:35am.

AnswerRe: need some ideas about licensing implementation Pin
Mc_Topaz13-Dec-18 3:11
Mc_Topaz13-Dec-18 3:11 
AnswerRe: (might be solved) need some ideas about licensing implementation Pin
BillWoodruff13-Dec-18 9:21
professionalBillWoodruff13-Dec-18 9:21 
GeneralRe: (might be solved) need some ideas about licensing implementation Pin
Super Lloyd13-Dec-18 12:51
Super Lloyd13-Dec-18 12:51 
AnswerRe: (might be solved) need some ideas about licensing implementation Pin
GenJerDan13-Dec-18 19:43
GenJerDan13-Dec-18 19:43 
GeneralRe: (might be solved) need some ideas about licensing implementation Pin
Super Lloyd13-Dec-18 22:22
Super Lloyd13-Dec-18 22:22 
QuestionRegarding Audio Player Format Pin
Member 1408628311-Dec-18 19:27
Member 1408628311-Dec-18 19:27 
AnswerRe: Regarding Audio Player Format Pin
OriginalGriff11-Dec-18 20:14
mveOriginalGriff11-Dec-18 20:14 
GeneralRe: Regarding Audio Player Format Pin
Nelek13-Dec-18 20:41
protectorNelek13-Dec-18 20:41 
AnswerRe: Regarding Audio Player Format Pin
jschell15-Dec-18 7:03
jschell15-Dec-18 7:03 
AnswerRe: Regarding Audio Player Format Pin
mtoha15-Jan-19 15:32
professionalmtoha15-Jan-19 15:32 
QuestionDesign Form with DevComponent on C# Pin
Member 1408464310-Dec-18 15:16
Member 1408464310-Dec-18 15:16 
AnswerRe: Design Form with DevComponent on C# Pin
OriginalGriff10-Dec-18 20:06
mveOriginalGriff10-Dec-18 20:06 
AnswerRe: Design Form with DevComponent on C# Pin
BillWoodruff11-Dec-18 5:35
professionalBillWoodruff11-Dec-18 5:35 
PraiseRe: Design Form with DevComponent on C# Pin
Eddy Vluggen11-Dec-18 6:18
professionalEddy Vluggen11-Dec-18 6:18 
QuestionK-means clustering algorithm in C# Pin
Member 1408268110-Dec-18 10:42
Member 1408268110-Dec-18 10:42 
AnswerRe: K-means clustering algorithm in C# Pin
OriginalGriff10-Dec-18 20:05
mveOriginalGriff10-Dec-18 20:05 
GeneralRe: K-means clustering algorithm in C# Pin
Member 1408268110-Dec-18 20:08
Member 1408268110-Dec-18 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.