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 8876677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:16:12+00:00 2026-06-14T19:16:12+00:00

In a C# app which is windows Form based not WPF. I need to

  • 0

In a C# app which is windows Form based not WPF. I need to show an IP/port dialog to the user right after the main form is shown to user.

Based on the connection to a server I need to show certain controls on the Form and disable others.

What’s the best place to do that ?

I started with Activated event, but it’s called every time Form gets activate.
Is there any method that’s tells me form is now showing and I can show the connection form now?

  • 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-14T19:16:13+00:00Added an answer on June 14, 2026 at 7:16 pm

    The Form.Shown event is fired when the form is first shown. This will only get fired the once.

    The Form.Load event is fired each time the form is loaded. This will get fired each time the form is shown. If the form is the main (or only) form in your application then this will only fire the once. If the form is a sub form (or dialog) then it will fire each time the dialog is opened.

    The Form.Activated event is fired each time the form becomes the active form. This could potentially happen several times during the lifetime of the form. It will fire for the main form when any sub form (or dialog) is closed.

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

Sidebar

Related Questions

When I want to show user a (windows) form which resides in a DLL
I have started using windows form for creating a small App in which user's
(Modifying the question)I have a windows form app in C# which calls into some
I have a windows form app, and a class which is called Game. Let's
I have a windows app which is just a form with a timer control
I have a Windows form App which write to log files using log4net. The
I have a c# windows form app in which we did a rapid prototype
I took some code from my C# Windows form app which uses the Application
I'm working on an app, which is based on Firefox and what I need
I have a c# windows form app which contains several forms. Generally, for example,

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.