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

  • SEARCH
  • Home
  • 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 7887525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:36:11+00:00 2026-06-03T05:36:11+00:00

Bassicly im creating a program that allows the user to enter values and if

  • 0

Bassicly im creating a program that allows the user to enter values and if the values exceed a certain amount then disable a button that was on a different form. But im unsure how to access its buttons control. I thought it would be something like this? Thanx

 if(value>120)
 {
  Form3 form3 = new Form3();
  Button.Disable();
  this.close();
 }
  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-06-03T05:36:13+00:00Added an answer on June 3, 2026 at 5:36 am

    Your request is to disable a button that was on another form – from reading that I assume the form already exists. By creating a new instance:

    Form3 form3 = new Form3();
    

    You’re creating a new instance of Form3 so you’ll never disable a button on a form that was already visible.

    You’ll have to make the current form aware of the instance of Form3 to be able to change anything there. Here are a few ways to make them interact:

    • Store these values in a separate object and make your forms react on changes through events for example
    • Provide a reference to the instance of Form3 upon creating or Show()ing “this” form
    • Keep a reference to each created form in a static class

    Also keep in mind having multiple related forms active at the same time may confuse your end-user.

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

Sidebar

Related Questions

Bassicly i want the user to input 4 and then display the next question
Bassicly im creating a schedule where the user can input his on time such
Bassicly i want to print 1 then 2 then 3 then 4 incrementing when
I want to make a program that concatenates an exe and data into one
Bassicly my aim is too extend a activity so when the user presses Next
i am creating rss reader application with php.it is basicly getting rss url's from
Basicly, I want to write a C++ program and with it, pass messages to
Hey I have some problems creating my query into doctrine: My sql query looks
Basicly, what I need for the program to do is to act a as
So basicly what I'm trying to accomplish is that foreach row in mysql query

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.