web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

VS Tools Window Fields - Enabled property

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm converting some VBA modifications to .Net using the Visual Studio Tools.

In VBA, it's possible to check if a field or a button is enabled by looking at its "Enabled" property.

With VST, I found methods to Disable, Enable, Lock, Unlock, Hide, and Show a field or a button, but how can we check the current states?  I can only find the properties isEmpty, isFilled, and Value.

Thank you

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Jothi Krishnan N Profile Picture
    1,897 on at

    I posted the same question long ago and found nothing. Then as a workaround what I did was....

    I was checking Enabled property to update the same field only when it is enabled, otherwise VBA was throwing an error saying you cant update the field. So, I have moved the code to Try Catch Block, and left the catch block empty and that handed my situation. So you might want to do the same as well if it works for you.

    community.dynamics.com/.../165124

  • Community Member Profile Picture
    on at

    Thank you Jothikrishnan. I think I will have to do the same Try Catch workaround.This is bizarre that such an essential property is ommitted in VS tools..

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Anthony Beatty Profile Picture

Anthony Beatty 2

#2
CP04-islander Profile Picture

CP04-islander 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans