Disable EnableIncrementDecrementButtons at runtime

Hi,

I am using Iron Speed to generate my code and I would like to know if someone knows how to disable Increment and Decrement buttons at runtime.

Thanks,
ThinkerB
ThinkerBAsked:
Who is Participating?
 
ThinkerBConnect With a Mentor Author Commented:
I found that the increment/decrement button will not disappear if the field is disabled as per design.
I solved it adding a panel before the button and make it visible=false
0
 
Meir RivkinFull stack Software EngineerCommented:
0
 
ThinkerBAuthor Commented:
I tried this at run time : Me.Location.Attributes("EnableIncrementDecrementButtons") = "False" but it did not work.
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
Meir RivkinFull stack Software EngineerCommented:
Use the Application Generation Options dialog (Tools->Application Generation Options) to enable or disable them globally for your entire application.

Use the Properties dialog, Attributes tab to enable or disable them for a single control.
0
 
ThinkerBAuthor Commented:
Maybe I did not explain properly. I don't want to disable the enable and disable button when the code is generated.
What I want to do is make this textbox not visible depending of a value that I just know when the code is executed (at runtime) but when I make the field not visible the incrementdecrement button still show.
0
 
Meir RivkinFull stack Software EngineerCommented:
can u post a screenshot?
0
 
ThinkerBAuthor Commented:
It seemed to me that the person who was trying to answer had no experience with Iron Speed and I end up using an alternative way to solve the issue
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.