HD-Fr0sT
HD-Fr0sT
CC#
Created by HD-Fr0sT on 9/9/2024 in #help
Can you use winAPI gdi and wpf with each other in c#?
Very barebones. No shapes, raw put xy pixels
11 replies
CC#
Created by HD-Fr0sT on 9/9/2024 in #help
Can you use winAPI gdi and wpf with each other in c#?
Absolutely despise making windows via functions
11 replies
CC#
Created by HD-Fr0sT on 9/9/2024 in #help
Can you use winAPI gdi and wpf with each other in c#?
Do graphics with primatives and windows with xaml
11 replies
CC#
Created by HD-Fr0sT on 8/11/2024 in #help
I need material for c# xaml/xml or sdl
thank you
8 replies
CC#
Created by HD-Fr0sT on 8/11/2024 in #help
I need material for c# xaml/xml or sdl
if wpf is a windows toolset or etc, ig that
8 replies
CC#
Created by HD-Fr0sT on 4/30/2024 in #help
Is there a c# equivalent to c malloc and realloc?
i love memmory leaks
11 replies
CC#
Created by HD-Fr0sT on 4/30/2024 in #help
Is there a c# equivalent to c malloc and realloc?
yeah
11 replies
CC#
Created by HD-Fr0sT on 4/20/2024 in #help
I need help with cursor logic
shouldnt have done the way i did prob
9 replies
CC#
Created by HD-Fr0sT on 4/20/2024 in #help
I need help with cursor logic
ik i screwed around till it worked
9 replies
CC#
Created by HD-Fr0sT on 4/20/2024 in #help
I need help with cursor logic
1 10 100
9 replies
CC#
Created by HD-Fr0sT on 4/20/2024 in #help
I need help with cursor logic
i want to make the cursor skip empty spaces and make it so it can recognize diffrent digit numbers
9 replies
CC#
Created by HD-Fr0sT on 4/20/2024 in #help
I need help with cursor logic
9 replies
CC#
Created by HD-Fr0sT on 4/20/2024 in #help
I need help with cursor logic
using System.Diagnostics;

int[,] grid = {
{1, 2, 3,},
{4, 5, 6,},
{7, 8, 9,},
};

int kolumnMAX = grid.GetLength(0) -1 ;
int radMAX = grid.GetLength(1) -1;

int kolumn = 0;
int rad = 0;

ConsoleKeyInfo key;

Console.Clear();

for (int i = 0; i < grid.GetLength(0); i++)
{
for (int j = 0; j < grid.GetLength(1); j++)
{
Console.Write(grid[i,j]);
Console.Write(" ");
}

Console.WriteLine(" ");
}

while (true)
{




key = Console.ReadKey();

switch (key.Key)
{

case ConsoleKey.UpArrow:
kolumn--;
break;

case ConsoleKey.DownArrow:
kolumn++;
break;

case ConsoleKey.LeftArrow:
rad--;
break;

case ConsoleKey.RightArrow:
rad++;
break;
}

if (kolumn>kolumnMAX)
{
kolumn=0;
}

else if(kolumn<0)
{
kolumn = kolumnMAX;
}

if (rad>radMAX)
{
rad=0;
}

else if(rad<0)
{
rad = radMAX;
}

//Switch gillar ej dynamiska tal
/* switch (kolumn)
{

case >2:
kolumn = 0;
break;

case <0:
kolumn = 2;
break;

} */

/* switch (rad)
{
case >2:
rad = 0;
break;

case <0:
rad = 2;
break;
} */


Console.SetCursorPosition(rad , kolumn);


}
using System.Diagnostics;

int[,] grid = {
{1, 2, 3,},
{4, 5, 6,},
{7, 8, 9,},
};

int kolumnMAX = grid.GetLength(0) -1 ;
int radMAX = grid.GetLength(1) -1;

int kolumn = 0;
int rad = 0;

ConsoleKeyInfo key;

Console.Clear();

for (int i = 0; i < grid.GetLength(0); i++)
{
for (int j = 0; j < grid.GetLength(1); j++)
{
Console.Write(grid[i,j]);
Console.Write(" ");
}

Console.WriteLine(" ");
}

while (true)
{




key = Console.ReadKey();

switch (key.Key)
{

case ConsoleKey.UpArrow:
kolumn--;
break;

case ConsoleKey.DownArrow:
kolumn++;
break;

case ConsoleKey.LeftArrow:
rad--;
break;

case ConsoleKey.RightArrow:
rad++;
break;
}

if (kolumn>kolumnMAX)
{
kolumn=0;
}

else if(kolumn<0)
{
kolumn = kolumnMAX;
}

if (rad>radMAX)
{
rad=0;
}

else if(rad<0)
{
rad = radMAX;
}

//Switch gillar ej dynamiska tal
/* switch (kolumn)
{

case >2:
kolumn = 0;
break;

case <0:
kolumn = 2;
break;

} */

/* switch (rad)
{
case >2:
rad = 0;
break;

case <0:
rad = 2;
break;
} */


Console.SetCursorPosition(rad , kolumn);


}
9 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
Also i could change consolesetposition items oriantation as well
13 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
Make sense
13 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
btw this is an older version
13 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
the controls are also flipped
13 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
13 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
int[,] grid = {
{1, 2, 3,},
{4, 5, 6,},
{7, 8, 9,},
};


int kolumn = 0;
int rad = 0;

ConsoleKeyInfo key;

Console.Clear();

for (int i = 0; i < grid.GetLength(0); i++)
{
for (int j = 0; j < grid.GetLength(1); j++)
{
Console.Write(grid[i,j]);
Console.Write(" ");
}

Console.WriteLine(" ");
}

while (true)
{




key = Console.ReadKey();

switch (key.Key)
{

case ConsoleKey.UpArrow:
kolumn++;
break;

case ConsoleKey.DownArrow:
kolumn--;
break;

case ConsoleKey.LeftArrow:
rad--;
break;

case ConsoleKey.RightArrow:
rad++;
break;
}

switch (kolumn)
{

case >2:
kolumn = 0;
break;

case <1:
kolumn = 2;
break;

}

switch (rad)
{
case >2:
rad = 0;
break;

case <1:
rad = 2;
break;
}


Console.SetCursorPosition(kolumn , rad);


}
int[,] grid = {
{1, 2, 3,},
{4, 5, 6,},
{7, 8, 9,},
};


int kolumn = 0;
int rad = 0;

ConsoleKeyInfo key;

Console.Clear();

for (int i = 0; i < grid.GetLength(0); i++)
{
for (int j = 0; j < grid.GetLength(1); j++)
{
Console.Write(grid[i,j]);
Console.Write(" ");
}

Console.WriteLine(" ");
}

while (true)
{




key = Console.ReadKey();

switch (key.Key)
{

case ConsoleKey.UpArrow:
kolumn++;
break;

case ConsoleKey.DownArrow:
kolumn--;
break;

case ConsoleKey.LeftArrow:
rad--;
break;

case ConsoleKey.RightArrow:
rad++;
break;
}

switch (kolumn)
{

case >2:
kolumn = 0;
break;

case <1:
kolumn = 2;
break;

}

switch (rad)
{
case >2:
rad = 0;
break;

case <1:
rad = 2;
break;
}


Console.SetCursorPosition(kolumn , rad);


}
13 replies
CC#
Created by HD-Fr0sT on 4/18/2024 in #help
The cursor wont move
fixed it moving but does not move appropriately
13 replies