Wanted Key-Cert-Branding Project

Discussion in 'Windows 7' started by Suicide Solution, Oct 20, 2009.

  1. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,460
    420
    60
  2. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    #22 nononsence, Oct 20, 2009
    Last edited by a moderator: Apr 20, 2017
    I have been working on the key input box, set the CharacterCasing property for the text box to upper

    Code:
        Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
           
            If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back AndAlso e.KeyChar < "a" OrElse e.KeyChar > "z" Then
                e.Handled = True
            End If
    
            If e.KeyChar = ControlChars.Back Then
                If TextBox1.TextLength = 8 Then
                    TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.TextLength - 3)
                    TextBox1.SelectionStart = TextBox1.Text.Length
                    TextBox1.SelectionLength = 0
                End If
                If TextBox1.TextLength = 16 Then
                    TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.TextLength - 3)
                    TextBox1.SelectionStart = TextBox1.Text.Length
                    TextBox1.SelectionLength = 0
                End If
                If TextBox1.TextLength = 24 Then
                    TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.TextLength - 3)
                    TextBox1.SelectionStart = TextBox1.Text.Length
                    TextBox1.SelectionLength = 0
                End If
                If TextBox1.TextLength = 32 Then
                    TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.TextLength - 3)
                    TextBox1.SelectionStart = TextBox1.Text.Length
                    TextBox1.SelectionLength = 0
                End If
            End If
    
            If TextBox1.TextLength = 37 Then
                If e.KeyChar = ControlChars.Back Then
                    e.KeyChar = ControlChars.Back
                Else
                    e.KeyChar = Nothing
                End If
            End If
        End Sub
    
        Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
    
            If TextBox1.TextLength = 5 Then
                TextBox1.AppendText(" - ")
            End If
    
            If TextBox1.TextLength = 13 Then
                TextBox1.AppendText(" - ")
            End If
    
            If TextBox1.TextLength = 21 Then
                TextBox1.AppendText(" - ")
            End If
    
            If TextBox1.TextLength = 29 Then
                TextBox1.AppendText(" - ")
            End If
    
        End Sub
    
        Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
            If TextBox1.TextLength = 37 Then
                TextBox1.TextAlign = HorizontalAlignment.Center
            Else
                TextBox1.TextAlign = HorizontalAlignment.Left
            End If
        End Sub
    
    End Class
    
     
  3. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    806
    826
    30
    no from one of Hazar's things
     
  4. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,460
    420
    60
    i thought the folder names looked familiar :p

    and thanks for the code worked great might redo it for c# tho no clue yet
     
  5. djesteban

    djesteban MDL Novice

    Jul 29, 2009
    24
    0
    0
    Where the hell can we get the official ones? Or at least some of the major ones... can't find a thread here with them...

    Let me know if any of you can find them..
    maybe the thread starter ;P
     
  6. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,460
    420
    60
    #27 PAYMYRENT, Oct 20, 2009
    Last edited by a moderator: May 23, 2017
  7. Icy

    Icy MDL Novice

    Oct 17, 2009
    13
    1
    0
    WOW!!! I just love it :D Please also include the OEM branding as optional. I mean people get to choose (yes or no option) while installing the cert and key whether they want to install OEM branding too or not! Thanks again :)
     
  8. PAYMYRENT

    PAYMYRENT MDL Developer

    Jul 28, 2009
    1,460
    420
    60
    when its finished the user will have to click the "install oem info" button if they want it
     
  9. cyclops

    cyclops MDL Senior Member

    Sep 10, 2007
    299
    39
    10
    @PAYMYRENT looking good m8, keep up the good work
     
  10. Icy

    Icy MDL Novice

    Oct 17, 2009
    13
    1
    0
    Great! :) Best of luck.
     
  11. Jordi36

    Jordi36 MDL Novice

    Jun 24, 2009
    41
    2
    0
    yep nice work , cant wait to test it :)
     
  12. kibkalo

    kibkalo MDL Addicted

    Sep 8, 2009
    576
    225
    30
    Would be very nice, if there was a sort of Repository with .xrm-ms certificates, OEM keys and OEM logos here on MDL - not like a forum thread, but a sort of web-folder, where moderator may put this files.
    And the app might not only browse local disks for certificates, etc (that takes time to find needed), but might suggest to chose it from web - with predefined links for Certs, Keys and Logos repository.
    So I just run App, select "browse repository" and chose waht I want.
    No need to rebuild app when new certs/keys are available, and it is always actual.
     
  13. Suicide Solution

    Suicide Solution MDL Addicted

    Apr 29, 2008
    534
    2,004
    30
    Wouldn't need to update it for keys and certs anyway..that is why I wanted the browse functions for them and the use of a answer INI file so it can be modified. As far as connecting online, I wouldn't want that ither as it may get flagged by AV's and will only work if the host remained valid. If the app is being built with answer files it can be updated/edited by the user to fit their needs so everything would be supplied by the user for the things they need it to do.
    If it came preset for Windows 7 keys it could be modified to work with Vista and Server 08 easily this way.


    Things are looking good guys..cant wait to check it out.
     
  14. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Looks promising, keep it up ;)
     
  15. omdhar

    omdhar MDL Junior Member

    Aug 1, 2009
    94
    40
    0
    U can always use vista7 slic ldr here
     
  16. simarpreet007

    simarpreet007 MDL Junior Member

    Jun 10, 2009
    69
    0
    0
    #39 simarpreet007, Oct 21, 2009
    Last edited by a moderator: May 23, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. karateca

    karateca MDL Junior Member

    Aug 5, 2009
    62
    2
    0
    where download this?