Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 166293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:04:20+00:00 2026-05-11T12:04:20+00:00

I’m trying to do something I’ve been historically available to do using Visual FoxPro

  • 0

I’m trying to do something I’ve been historically available to do using Visual FoxPro (VFP). By use of a ‘SETALL()’ function, I am able to do something like pertaining to a current form… this.SetAll( ‘someProperty’, ‘toSomeNewValue’ ) and it goes through and assigns the value to all controls. By creating my own custom property and an internal to VFP via ‘_assign’, will cause these events to trigger. From THAT method, each control would take care of itself on the form, from enable/disable/visibility, editable, readonly, color, font, validation, etc, based on what I put in each individual control.

So, how would I do a similar thing in C#… Such as have a public property, or method, or delegate at the form level, such as ‘FormEditMode’. Then, when I do something like this.FormEditMode = AddMode, all controls will be self-triggered to turn themselves on/off, enable/disable respectively instead of explicit calls for all controls on a given form.

Thanks

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:04:21+00:00Added an answer on May 11, 2026 at 12:04 pm

    I actually got it solved by getting each control self-registered at the end of the form’s InitialzeComponents() call, and a combination of other pieces I’ve read in my research for a solution.

    After building my baseline form, textbox, label controls (and others), after the InitializeComponents(), I do a recursive call for each control on the form and register its method to the form’s delegate/event. Then, during a call to change the form’s Edit Mode, it invokes the delegate call and triggers each individuals controls function. So, I’m getting a better handle on the delegate / event handings, and now the recursive call. This is done ONCE up front, so I don’t have to keep recursively checking and calling during a button’s click, or some other condition to cycle through controls each time I need to do something.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 219k
  • Answers 219k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could probably use the javascript unescape function http://www.w3schools.com/jsref/jsref_unescape.asp May 12, 2026 at 11:49 pm
  • Editorial Team
    Editorial Team added an answer MySQL Guru or not, the problem is that unless you… May 12, 2026 at 11:49 pm
  • Editorial Team
    Editorial Team added an answer I don't know anything about CentOS, but if you have… May 12, 2026 at 11:49 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
In order to apply a triggered animation to all ToolTip s in my app,
I have a French site that I want to parse, but am running into

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.