Location of the Windows Forms
I changed the coordinates in the right bottom corner of the Windows Forms properties but location of the form is not changing. How to change the location of the form?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 23, 2014, 4:50 AM EDT
If you are, then the best place to set the Location property is in the Properties Box which, when you click on the Form in the designer, will list all its properties.
VulpesRank #55 · 29.2K reputationPosted Sep 23, 2014, 4:01 AM EDT
To change it, do something like this:
this.Location = new Point(20, 20);
Posted Sep 23, 2014, 4:12 AM EDT
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Z_WindowsFormsApplication1
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Posted Sep 23, 2014, 5:35 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 23, 2014, 7:00 AM EDT
Posted Sep 23, 2014, 11:47 AM EDT
I wish to know which version of VS is most suitable to do USING GUI OBJECTS AND THE VISUAL STUDIO IDE, USING CONTROLS and HANDLING EVENTS.
VulpesRank #55 · 29.2K reputationPosted Sep 23, 2014, 12:41 PM EDT
As long as you use the Windows Forms template, programming such an application is much the same as using the 'paid for' editions.
The Form is split into two partial classes which are in separate files. The VS designer writes its user interface code to one of them and the other is for you to add your own code including event handlers for controls.
Posted Sep 23, 2014, 1:27 PM EDT