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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:56:59+00:00 2026-06-16T05:56:59+00:00

I have a borderless form that I would like to change the location of

  • 0

I have a borderless form that I would like to change the location of programmatically. I have tried a couple of different things and nothing seems to work. What is odd is if I go into the properties for the form, manually change the location to 100,100, set the StartPosition to manual, it still starts at 0,0. Another note is that the form only has one control and it’s a Flash player control. I’m not sure if that has anything to do with it. Any thoghts on why it wouldn’t move the window?

  • 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-16T05:57:00+00:00Added an answer on June 16, 2026 at 5:57 am

    Change the location through the Load event of the Form.

    void Form1_Load(object sender, EventArgs e)
    {
        Location = new Point(400, 600);
    }
    

    EDIT1: posting a full example, in response to the author’s comment. This works correctly for me.

    Form1.cs

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            var flash = new AxShockwaveFlash();
            Controls.Add(flash);
            FormBorderStyle = FormBorderStyle.None;
            StartPosition = FormStartPosition.Manual;
            Location = new Point(400, 600);
        }
    }
    

    Form1.Designer.cs

    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
    
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
    
        #region Windows Form Designer generated code
    
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this._axShockwaveFlash = new AxShockwaveFlashObjects.AxShockwaveFlash();
            ((System.ComponentModel.ISupportInitialize)(this._axShockwaveFlash)).BeginInit();
            this.SuspendLayout();
            // 
            // flash
            // 
            this._axShockwaveFlash.Enabled = true;
            this._axShockwaveFlash.Location = new System.Drawing.Point(0, 0);
            this._axShockwaveFlash.Name = "_axShockwaveFlash";
            this._axShockwaveFlash.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("flash.OcxState")));
            this._axShockwaveFlash.Size = new System.Drawing.Size(192, 192);
            this._axShockwaveFlash.TabIndex = 0;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(486, 299);
            this.Controls.Add(this._axShockwaveFlash);
            this.Name = "Form1";
            this.Text = "Form1";
            ((System.ComponentModel.ISupportInitialize)(this._axShockwaveFlash)).EndInit();
            this.ResumeLayout(false);
        }
    
        #endregion
    
        private AxShockwaveFlash _axShockwaveFlash;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following problem. I just tried to draw little things with C#. I would like
I have a borderless form that I'm docking onto the top edge of my
I have a situation where I would like to move a windows form by
I have code that lets be drag around a borderless form in winforms that
I have a borderless window (BorderStyle = None) where I would like to allow
I have a subclassed NSView that I would like to contain an editable NSTextField,
I have a borderless form which is always on top and with WS_EX_NOACTIVATE flag
I have a borderless NSButton that contains an image and is subclassed with my
I have a borderless, non-resizable WPF form (WindowStyle=None, AllowsTransparency=True, ResizeMode=NoResize) with a semi-transparent background.
I have created a borderless (and scrollbox-less) console application, but I have found that

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.