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.
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails


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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Let’s list some of the technologies that enable smooth teleworking. 
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

746 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

12 Experts available now in Live!

Get 1:1 Help Now