I want to minimize my windows form when i clicked anywhere outside it.... But this code will just close the whole program, can anyone help? I want to hide the app to taskbar, and when i press it from taskbar it shows up again.......
Here is the code:
protected override void...
My WFA has overlayed other application since i added this code unto it. But i need this code to lock other users from repositioning the form. Please help 🙏
protected override void WndProc(ref Message m)
{
const int WM_NCLBUTTONDOWN = 161;
const int WM_SYSCOMMAND = 274;
const int...
So I've this very simple program:
int number;
number = Convert.ToInt32(Console.ReadLine());
I want to be able to store a password in this variable. But when I try to add more than 10 digit numbers the program throws an Exception "Value is either too large or too small for an int32".
How can I...
Hello. Basically i suck at code at times and i am very shit at troubleshooting. I get these errors in my MeshGenerator.cs:
Assets\Scripts\OpenWorld\Procedural Landmass Generation\MeshGenerator.cs(52,32): error CS0103: The name 'heightCurve' does not exist in the current context...
I am updating my .NET Core web app from just MVC to a Service-Repository pattern.
My question is, how do you implement DbSet<> when you add the Service and Repository layers?
I originally added these to my ApplicationDbContext file under the Data folder. Is this still correct? Then would I just...
How do you use a ForEach loop on ViewModels on .NET MVC?
I have 2 models:
A Park Model:
public class Park
{
[Key]
public int ParkId { get; set; }
public string ParkName { get; set; }
public string ParkState { get; set; }
public string ParkLatitude {...
Hi everyone, I have something that i simply need to get some help with.
I am doing some exercises with async and await. I have this method that i want to make asynchronous. It simply supposed to take an array of strings, and then create a List of strings with the same content, but just with...
lets say i have a square 2x2. when i slide my finger upwards i want it to get bigger in the Y axes and smaller in the x axes..and when i slide my finger down i want it to get smaller in Y and bigger in X.
i have some code but i dont like how it works. can someone help me to create something better?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.