That only affects what your form looks like when you're at run-time. I was wondering if I can get the form positioned closer to the center of the screen at design-time, but I don't think that can be changed.
User 12941702
Posts
-
How to get the form at design time to the center of the screen -
How to get the form at design time to the center of the screenWhen I start a new Windows Forms project in Visual Studio it always places the form at the upper left of the screen which seems stupid to me to put it there. I'm looking for a way to move it to center screen. As far as I know adjusting the Properties only affects run-time position of the form.
-
How to disable console window when running a Python GUI programI don't see it. There is a check box labeled Windows Application but even when I check that sometimes that black console windows shows.
-
How to disable console window when running a Python GUI programI used Visual Studio with Python to make a simple GUI and when I ran my program I saw the GUI but I also saw the black console window which I don't want. Was wondering if anyone knows how to disable that.
-
Slight problem with my array programInstead of my program showing this: Enter element value: 0 Enter element value: 1 Enter element value: 2 ...and so forth it is currently showing this: Enter element value: 0 Enter element value: 0 Enter element value: 0 What am I doing wrong?
using System;
class InputArrayValues
{
static void Main()
{
int[] nums = new int[5];for (int i = 0; i < 5; i++) { Console.Write("Enter element value " + nums\[i\] + ": "); nums\[i\] = Convert.ToInt32(Console.ReadLine()); } Console.WriteLine(); Console.Write("The array values you entered are: "); for (int i = 0; i < 5; i++) Console.Write(nums\[i\] + " "); Console.WriteLine(); Console.WriteLine(); }
}
-
Is there a way to get Visual Studio 2015 to run my program that I made in Visual Studio 2019?I got it going now. Don't know what I was doing wrong yesterday but now it works fine.
-
Is there a way to get Visual Studio 2015 to run my program that I made in Visual Studio 2019?I made several Python programs using Visual Studio 2019. I decided to go back to Visual Studio 2015 since that version will easily open up my C# projects that I made in Visual Studio 2010. So what I did was when I was in Visual Studio 2015 I started a new project (let's say Welcome Program that simply prints a Welcome message), so I got the new folder and solution file and project file all made by the IDE, and then I opened the Python .py source code file and that opened up successfully in 2015. But when I ran my code all I got was this: Press any key to continue... My code did not run as it was written. I don't know what Visual Studio 2015 is doing I thought this would be a simple thing to accomplish. Is there something I have to do?
-
I have two questions concerning what Visual Studio adds when you make a GUI projectYou programmers seem to think and speak in the most peculiar, esoteric terms I've ever heard in my life.
-
I have two questions concerning what Visual Studio adds when you make a GUI projectIf I make a new project in Visual Studio and give it the name Welcome Program, then I see this in the code window: namespace Welcome Program Okay I am aware that a namespace helps organize things better and helps keep things separate, but this is not needed in a console program. But if I delete this line in a GUI program the program will not build. Is this just simply something Microsoft decided to build into their language? It has to be there when making a GUI? And my second question is about this line: Public Partial Class MainWindow:Window All I know about this is that a partial class allows you to split the class definition among more than one file. This line also has to be there. What does MainWindow:Window mean? What is the purpose of the colon?
-
There is a delay when running Python programs in Visual Studio 2019I got if figured out. You need to run your program with CTRL+F5 so you don't add debugging.
-
There is a delay when running Python programs in Visual Studio 2019I notice that when I run a Python program within the Visual Studio 2019 IDE there is a bit of a delay before I see the output. Does anyone care to speculate on why this is?
-
Does Delphi have an elseif statement?There is a program in my C# book that uses the elseif statement. I'd like to do it in Delphi but I'm doubting if Delphi has that statement. If Delphi doesn't have it what do I do? Do I just keep nesting ifs?
-
Why is boolean true represented as -1?I meant why is boolean true represented as a negative number instead of a positive number. Like in C++ boolean true is represented as 1. But I guess since true is represented by any non-zero integer I can see why -1 works just as good.
-
Why is boolean true represented as -1?I just wrote a program and used the BoolToStr() function to convert the boolean value true to a string so I could read it in a WriteLn statement. Much to my surprise the screen represented true as -1. Can someone explain?
-
This output makes no sense in my programWhen I comment out the sum := sum + i line then my program does say product is 120. I'm still trying to figure this out though. Okay I figured it out. I needed to include another begin and end. I guess those are like nested parentheses.
-
This output makes no sense in my programI'm doing a program that computes the sum and product of the integers from 1 to 5. Weird thing is when I run the program I get the correct answer for the sum. The sum says 15. Correct. But I get the wrong answer for product. I get 6. I cannot figure out where I'm going wrong:
// This program computes the sum and product of the integers from 1 to 5
program SumAndProduct;
uses
System.SysUtils;var
i : integer;
sum : integer;
product : integer;begin
sum := 0;
product := 1;begin
for i := 1 to 5 do
sum := sum + i;
product := product * i;
end;WriteLn('The sum is ' + IntToStr(sum));
WriteLn('The product is ' + IntToStr(product));WriteLn;
WriteLn('Press Enter to quit...');
ReadLn;
end. -
How do I make an .iso for Visual Studio 2017?Forget Visual Studio 2017. It's a fuckin' mess.
-
How do I make an .iso for Visual Studio 2017?I have downloaded the specific workload I want in Visual Studio 2017. But when the process was over and I looked on my drive there are not one but two folders present. One is called VS2017 (that's the one I named it on the command line) and the other one is called visualstudioprofessional2017. So why do I have two folders? And I want to make an .iso so when I put the DVD in my drive all I have to do is double-click the drive icon and the installation program will start? I have tried about five times now and I have made my autorun.inf file but when I double-click the drive icon the installation program does not start. All I see is the contents of the disk.
-
Looking for Python Tools for Visual StudioBut it appears that Visual Studio Code is slow at executing the file. Visual Studio and Eclipse are faster.
-
Looking for Python Tools for Visual StudioOkay I got it figured out. You have to go into the .json configuration file and change console to 'none'.