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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to change properties on design time!

Status
Not open for further replies.

Pericoloso

Technical User
Dec 10, 2006
3
AU
In my project I can not change the value of my properties on design time. As you can see on the lowercase 'n' in the procedure below.

What could be the possible cause of this weirdness?!

Private Sub Command1_Click()
With Command1
.name = "Hello!"
End With
End Sub

Greetings,

Bart.

 
Hi,

the .name property is read only at runtime (in your case it is 'command1'). .name is used to refeer to the control (as you do 'Private Sub Command1_Click()').
Maybe your are looking for the .caption property, which sets the text shown on the button?

Private Sub Command1_Click()
With Command1
.Caption = "Hello!"
End With
End Sub


Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
I see what you mean. But the problem is the same with any of the properties. I am pretty familier with programming and I have asked experienced programmers in my company for their advise. This is a very strange problem.

I presume the problem is situated in the project file.

Thanx for your attention!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top