How to rename rectangle shape in a FORM

SachAccess

Active member
Local time
Today, 19:35
Joined
Nov 22, 2021
Messages
437
Hi,

I have added a ‘Rectangle’ shape in my FORM and have assigned a macro to this shape.
This part is working fine, however I am not able to rename the shape, I tried playing with properties but was un-successful.
At present the Form just reflects the shape but without any text.

Can anyone please help me this. Thanks.
 
You rename it in exactly the same way you rename any other object on a form?
Your forms should hold meaningful names not Command26 Command27, text1 etc :(
 
You rename it in exactly the same way you rename any other object on a form?
Your forms should hold meaningful names not Command26 Command27, text1 etc :(
Hi @Gasman thanks a lot for the help. I agree with you, I tried naming it but somehow it is not working hence posted question to know what mistake am doing. I changed shape fill color too 2,3 times just to check.
Will re-try by adding new shape.

Have a nice day ahead. :)
 
A rectangle doesn't have any text property.
I think you would need a label and adjust its caption property to make a rectangle with text.

You then mention a Button - a command button does have a Caption property?
Which is it?
 
Hi @Minty sir, you are correct. I was using rectangle object.
Before posting my original question, I tried using 'Button' but was not able to 'Code Buidler' hence I decided to go ahead with Shape.

Now when I am posting this I realized my mistake, am able to write a code for Button now (able to rename it as well).
Thanks a lot for the help. Have a nice day ahead. :)

Hi @Gasman sir and @Uncle Gizmo sorry for confusing question, thanks a lot for the help. Issue is resolved now.
 

Users who are viewing this thread

Back
Top Bottom