Skip to main content

Notifications

Announcements

No record found.

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 Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VS Tools Window Fields - Enabled property

    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..

  • Verified answer
    Jothi Krishnan N Profile Picture
    Jothi Krishnan N 1,869 on at
    RE: VS Tools Window Fields - Enabled property

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans