|
-
Jun 8th, 2002, 11:00 AM
#1
Thread Starter
New Member
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?
-
Jun 8th, 2002, 12:27 PM
#2
Hyperactive Member
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!!!
-
Jun 8th, 2002, 01:00 PM
#3
Thread Starter
New Member
re:
ok thanks. where can i get the codes and functions to help me out?
-
Jun 8th, 2002, 01:51 PM
#4
Hyperactive Member
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:
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!!!
-
Jun 10th, 2002, 07:04 AM
#5
Hyperactive Member
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!!!
-
Jun 10th, 2002, 07:56 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|