Disable EnableIncrementDecrementButtons at runtime

Posted on 2011-02-25
Last Modified: 2013-11-08

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.

Question by:ThinkerB
  • 4
  • 3
LVL 42

Expert Comment

ID: 34995089

Author Comment

ID: 34997378
I tried this at run time : Me.Location.Attributes("EnableIncrementDecrementButtons") = "False" but it did not work.
LVL 42

Expert Comment

ID: 34997462
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.
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.


Author Comment

ID: 34999006
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.
LVL 42

Expert Comment

ID: 35004736
can u post a screenshot?

Accepted Solution

ThinkerB earned 0 total points
ID: 35444225
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

Author Closing Comment

ID: 35465266
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

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now