Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUT] How to protect your program using your Windows Serial Key [VB.NET]
#3
(12-06-2010, 03:43 PM)KoBE Wrote: I don't understand why you would want two forms for this, or why you would use:
Code:
Label1.Text = WindowsSerial
if you arent even using Label1.

If you used this as your Form1_Load it it would work just fine w/ one form.
Code:
Dim MOS As ManagementObjectSearcher = New ManagementObjectSearcher("Select * From Win32_OperatingSystem")
Dim MO As System.Management.ManagementObject
Dim MOC As System.Management.ManagementObjectCollection = MOS.Get
Dim WindowsSerial As String = String.Empty
For Each MO In MOC
WindowsSerial = MO("SerialNumber")
Next
If WindowsSerial = "YOUR WINDOWS SERIAL" Then
    Me.Opacity = 100
Else
    MsgBox("Your windows serial does not match.")
    Me.close
End If


Good share none the less. Thumbsup

Thanks for the tips and feedback Kobe.

That label is hidden on the form ... Ninja
[Image: just-cause-2-header.jpg]
Reply


Messages In This Thread
RE: [TUT] How to protect your program using your Windows Serial Key [VB.NET] - by iCrack - 12-07-2010, 07:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to hook the keyboard. [VB.NET] [TuT] Vorfin 92 61,763 09-23-2019, 11:55 AM
Last Post: Jamimartin
  [Preview] Windows 7 Tools [VB.NET] ƃu∀ ıʞƃu∀ 4 3,693 10-14-2014, 11:55 AM
Last Post: 'Onam
  Encrypt String using x509Certificate private Key wih RSA jeffstan 0 2,442 01-26-2014, 04:18 PM
Last Post: jeffstan
  VB.NET Port Scanner [TUT] Fragma 30 14,659 11-27-2012, 11:26 PM
Last Post: ƃu∀ ıʞƃu∀
  [TUT] MD5 Encrypter & Finder [VB.NET] Fragma 12 7,918 11-25-2012, 10:36 PM
Last Post: ƃu∀ ıʞƃu∀

Forum Jump:


Users browsing this thread: 6 Guest(s)