krazycay
krazycay
CC#
Created by krazycay on 4/25/2023 in #help
❔ how to detect if console app is maximized (IsZoomed)
i don't know how to correctly call IsZoomed in this case, so if anyones willing to help out it'd be really appreciated.
// example
while (true)
{
if (IsZoomed)
{
// do code
}
}
// example
while (true)
{
if (IsZoomed)
{
// do code
}
}
58 replies
CC#
Created by krazycay on 4/25/2023 in #help
❔ how to get the current position of the console (top pos, left pos)
how can i do this?
8 replies
CC#
Created by krazycay on 4/25/2023 in #help
❔ how can i UN-maximize a console app? (not minimize/etc, just un maximize it)
How could i do this? C# ofc
6 replies
CC#
Created by krazycay on 4/19/2023 in #help
❔ how can i make C# writeline change color every second
how could i do this?
79 replies
CC#
Created by krazycay on 4/19/2023 in #help
❔ how can i re use the readline after using it in a if statement
so basically im using readline and if it == "hello" for example, it'd writeline "hi!", then the program would exit. i'd like it to go back to readline after this. how can i do this?
// See https://aka.ms/new-console-template for more information
using ConsoleApp1;
using System.ComponentModel.Design;

namespace ConsoleApp1 // Note: actual namespace depends on the project name.
{
internal class Program
{
static void Main(string[] args)
{
Console.Title = Settings.WinName;
Console.SetWindowSize(Settings.WinSize1, Settings.WinSize2);
Console.BufferHeight = Settings.BufHeight;
Console.BufferWidth = 97;
Console.WriteLine(Settings.Logo);
Console.Write(":> ");
if (Input.userResponse == "hi")
{
Console.WriteLine("no");
}
else if (Input.userResponse == "bad")
{
Console.WriteLine("trash");
Input.userResponse;
}
}
}
}
// See https://aka.ms/new-console-template for more information
using ConsoleApp1;
using System.ComponentModel.Design;

namespace ConsoleApp1 // Note: actual namespace depends on the project name.
{
internal class Program
{
static void Main(string[] args)
{
Console.Title = Settings.WinName;
Console.SetWindowSize(Settings.WinSize1, Settings.WinSize2);
Console.BufferHeight = Settings.BufHeight;
Console.BufferWidth = 97;
Console.WriteLine(Settings.Logo);
Console.Write(":> ");
if (Input.userResponse == "hi")
{
Console.WriteLine("no");
}
else if (Input.userResponse == "bad")
{
Console.WriteLine("trash");
Input.userResponse;
}
}
}
}
66 replies
CC#
Created by krazycay on 11/30/2022 in #help
❔ Any way to make custom border in visual studio resizeable?
I'm looking to make my custom border in visual studio resizeable, i already have the outline around the application and i made it draggable through top panel, i'm just wondering how to make it resizeable, anyone got some code i could use for this or some way to do it?
5 replies