help

  1. M

    show the message with WaitForSeconds

    Hi, I´m currently wokring on an application, the purpose of the app is to display a message with a text, then you should be able to close the message down (like a notification). The message should be displayed after a couple of seconds. So what i need help with is to understand how to show the...
  2. V

    Question Error in method JsonDocument.Parse

    Please tell me. I can't solve the error in the JsonDocument.Parse method in any way. Translation of the error text: Error CS1061 / "object" does not contain a definition for "Parse" and it was not possible to find an extension method "Parse" that takes the type "object" as the first argument...
  3. T

    Trying to reduce gravity of player in unity2D

    Hi, I'm very new to C#, but I haven't found any information on the internet on how to do this, so I looked to a forum. This is my script at the moment; using System.Collections; using System.Collections.Generic; using UnityEngine; public class useGlider : MonoBehaviour { private Rigidbody2D...
  4. Paradoxz1

    Question BMI Calculator

    Hi, I have been trying for the past 6 days to get this BMI calculator working to my requirements but to no success. I am not even able to get a value out from it. I don't know where to start looking for the issue as I have been looking at this code for hours now and been looking at different...
  5. V1ck

    script cannot convert int?

    rSimple script i don't get the problem
  6. 1

    Question GUI Framework Question

    Is there any free GUI Framework with a slider similar to the one shown below?
  7. D

    Question C#; I need help with easy tasks

    I have to wrote a program solving these in an easiest way, not really know how without the mistakes, so thanks for any help. The 'file' contains whats under " John Medeic,MD 10|7|5|3|8|2|1|0|9|3|4|5|5|6|7|2|3 " Task. 1. Load and correctly interpret the data contained in the file. As a result...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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 {...
  14. 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...
  15. 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