Results 1 to 6 of 6

Thread: need help opening file in another form..

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    4

    Question need help opening file in another form..

    i am making a program (like hangman/wheel of fortune) and i have two forms. one form is used to make words and they are saved into a .dbf file.
    i want to bring up those previously saved words in the other form, but i want them masked (making "word" look like "****") and still have their letter values so that the letters appear when the corresponding letter is chosen (i have an array of command buttons with the letters of the alphabet on them).
    any ideas anyone?

  2. #2
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    You can load text file to a text box and set the PasswordChar property to * and all letters will display as *'s to the veiwer but the value property of the textbox will contain the actual words.
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    4

    re:

    ok thanks. where can i get the codes and functions to help me out?

  4. #4
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    OK you don't really need any functions to get the textbox to display asterix's instead of letters. Just add a textbox and in the properties window look for PasswordChar and enter a * and data in the textbox will not display as *'s. To read the info in the textbox just use:
    Code:
    textbox1.value
    As for reading the .dbf file do you need help with that or are you already sorted?
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

  5. #5
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    You should only need to assign the value of the property once before entering the word. I'd have imagined it would still work where it is but obviously not.
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

  6. #6
    Si_the_geek
    Guest
    you can only set it at design time (otherwise it would be simple to unmask passwords). in the VB editor select the textbox and change the properties.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width