Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error when trying to set visible property of frame

Status
Not open for further replies.

miikel

ISP
Jul 28, 2004
21
GB
could not set the visible property. unexpected call to method or property access"

I have some code that has been running for a while now without issue. i entered the code today to try to make some amends, and during testing the above message appeared.

this message appears when:
i have two date time pickers, and compare the values in both. if they are the same day, then show a frame with some radio buttons in, if different hide the frame.

i am running it now on a different computer, so not sure if windows update could have caused this?? it has just started happening today!

<code>
If dt_type_from.Value = dt_type_to.Value Then
fram_day_length.Visible = True
Else
fram_day_length.Visible = False
End If
</code>

any ideas guys n gals?

regards and thanks in advance
 
Yay!! ive fixed it!!!

turns out the control i was trying to make invisible was the next one in the tab order, therefore I was trying to set the visible property to false of the active control!

one to watch out for!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top