Is it possible?

Discussion in 'Questions (Windows Mobile)' started by vinians, Aug 8, 2007.

  1. vinians

    vinians Member Licensed User

    I need to show a form to ask the user for a password, but after method form.show the program continue on the next line. How can I simulate a MODAL form? Its it possible? Like this:
    Code:
    'rem get password and set up a global var SUPER
    GetPassword.Show
    do while GetPassword.IsRunning 
       
    doEvents
    loop
    'ask var
    if SUPER = true then 
       
    'do a lot of things
    else
       ShowMessage(
    "Password incorrect")
    end if
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    This is not the way to accomplish what you want.
    You should continue your code in GetPassword_Close event.
     
  3. vinians

    vinians Member Licensed User

    ok thanks I will try :)
     
  4. Cableguy

    Cableguy Expert Licensed User

    I was Planning on creating a "Password Input" Dll....

    So I take this thread to ask,..
    What features would be desirable, both visual and funcional?
     
  5. specci48

    specci48 Well-Known Member Licensed User

    Hi cableguy,

    do you want to create a password field or a password panel, or both?

    Functional features could be:
    - option to define minimum an maximum password length
    - option to define the allowed input, e.g. only numbers, only lower/upper alphabetic chars, use of special chars like §, & or /, use of chars only from an arraylist
    - option to define a mask, which describes on which position which character is allowed
    - option to disable the hiding feature (showing the real password)

    Visual feature:
    - option to set the replacement char


    specci48
     
  6. Cableguy

    Cableguy Expert Licensed User

    Some items in your wishlist are a bit to hard for me...
    I was thinking on a panel with 2 inputs, a Name/Username and a Password

    The first would be a normal textbox and the second a "character replaced" input...

    I'm planning to offer the following poperties:

    Name/Username label settable by the user...
    Name/Username visible
    Replacement character
    Uncrypted password retrieval
    Crypted( simple cryption ) password retrieval

    Panel should of course also have 2 buttons, OK and Cancel for obvious reasons...

    Tell me what you think...
     
  7. specci48

    specci48 Well-Known Member Licensed User

    :signOops: My post was not really a wishlist. Just some thoughts of possible features.
    Implementing all of them maybe something for a basic4ppc competition. ;)

    I think your plans are a good start. The crypted password retrieval sounds very interesting!
     
  8. LineCutter

    LineCutter Active Member Licensed User

    If you're doing a modal input form dll, could you consider having an option at enter user data in cleartext, but skip the password request? i.e. a simple question form

    e.g. Popup modal form: "Enter your favourite fruit" ___________ OK/Cancel
     
  9. Cableguy

    Cableguy Expert Licensed User

    For starters im going to create just a PasswordTextBox control, then it will evolve to a grafic password panel....

    I have to understand a few things first...
     
Loading...