help

  1. shawnhee

    Resolved Minimize Windows Form when Clicked Outside the Application

    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...
  2. shawnhee

    Resolved Windows Forms Application overlayed other Application

    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...
  3. F

    Answered How to store bigger values in variables.

    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...
  4. carl4020

    error CS0103: The name [name] does not exist in the current context

    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...
  5. M

    Resolved How to Implement DbSet and DbContext in Service-Repository Architecture?

    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...
  6. M

    Question How to Foreach Through ViewModels?

    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 {...
  7. S

    Question not understanding async completely

    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...
  8. smokereaper98

    unity slide to resize square

    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?
Top Bottom