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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:25:32+00:00 2026-05-27T10:25:32+00:00

I am trying to figure out how to move specified System.Windows.Forms.Form onto another than

  • 0

I am trying to figure out how to move specified System.Windows.Forms.Form onto another than primary screen. I have ComboBox with list of available screens where user selects whichever screen he likes and my application is supposed to move one of its windows onto that screen.

I have only one screen on my laptop and no external monitor, so ComboBox on my computer offers only one option. I think minimalising desired window, moving it’s left corner in the center of selected screen’s Bounds and maximilising would do the job, right? I just can’t test it. Is this a good way to go?

Thanks in advance!

  • 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-05-27T10:25:33+00:00Added an answer on May 27, 2026 at 10:25 am

    Here’s what I did, as a simple test…

    I added a simple wrapper class so that I could change what happens on the ToString call (I only wanted to see the name listed in the combo box)

    private class ScreenObj
    {
        public Screen screen = null;
    
        public ScreenObj(Screen scr)
        {
            screen = scr;
        }
    
        public override string ToString()
        {
            return screen.DeviceName;
        }
    }
    

    In the form load event I added this:

    foreach(Screen screen in Screen.AllScreens)
    {
         cboScreens.Items.Add(new ScreenObj(screen));
    }
    

    And for the selected index change event of the combo box I had this:

    private void cboScreens_SelectedIndexChanged(object sender, EventArgs e)
    {
        object o = cboScreens.SelectedItem;
        if(null == o)
            return;
    
        ScreenObj scrObj = o as ScreenObj;
        if(null == scrObj)
            return;
    
        Point p = new Point();
    
        p.X = scrObj.screen.WorkingArea.Left;
        p.Y = scrObj.screen.WorkingArea.Top;
    
        this.Location = p;
    }
    

    It moved the form to the upper left hand corner of each of my screens.

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

Sidebar

Related Questions

I'm just learning asp.net mvc and I'm trying to figure out how to move
Trying to figure out how to install rails plugins manually on windows so I
I'm trying to figure out the membership module in asp.net. Currently i have a
I'm new to XCode/iOS and I'm trying to figure out how to move a
Im trying to figure out a way to move a UILabel to different pre
I have a slightly nasty setup which I am trying to figure out a
I'm trying to figure out what would be required to move my current blog
I'm trying to figure out the best way to move/merge a couple tables of
I have been trying to figure out how to write a simple program to
I am currently trying to figure out how to do move semantics correctly with

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.