|
-
Aug 21st, 2000, 08:33 AM
#1
Thread Starter
Lively Member
Greetings.
I have a form with some labels and textboxes. When the form load, I set some label and textboxes to visible = False. It works ok!
However, when the users click some button, I set soem labels and textboxes visible = False. I also did a refresh but nothing happen. what is my mistake?
private sub form_load()
Cmdfind.visible = false
CmdQuit.visible = True
end sub
private sub txtpart_change()
Cmdfind.visible = True
cmdQuit.visible = false
frmfind.refresh
end sub
Regards
CT
-
Aug 21st, 2000, 08:37 AM
#2
Works fine for me. What exactly do you want to accomplish?
-
Aug 21st, 2000, 08:40 AM
#3
Member
Perhaps...
Try not refreshing the form... perhaps it initialize it and execute your form_load event... and the buttons go back to their initial state...
I'm not sure... but you can try...
COSI
-
Aug 21st, 2000, 08:50 AM
#4
The Refresh method just redraws the form. It will not call the Load event again.
The code works fine for me too, try putting a break point in the txtPart_Change event and see if it's raised or not.
Maybe you just renamed the TextBox by mistake.
-
Aug 21st, 2000, 08:52 AM
#5
Thread Starter
Lively Member
there is a label (lbl1) and a text box (txt1) inside my form. when the form_load event I did the following:
private sub form_load()
Lbl1.visible = false
txt1.visible = false
frmfind.show
'lbl1 and txt1 did not show up. this is what i want
end sub
private sub cmdfind_click()
....
....
if found.... blah blah blah then
lbl1.visible = true
txt1.visible = true
end if
end sub
private sub cmdfindNext_click()
lbl1.visible = false
txt1.visible = false
...
....
'lbl1 and txt1 does not behave as i command
'they just sit there staring at me?????
end sub
-
Aug 21st, 2000, 08:58 AM
#6
Does the label and textbox appear the right way when you click on cmdFind and don't dissapear when you click on cmdFindNext?
If that is the case please post all the code you have in the cmdFindNext_Click routine so we can have a look at it.
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
|