csharp beginner

  1. Z

    CS1061 Unity Error

    Hi guys, New to coding trying to create player movement and these errors are showing up in unity - Assets\Script\Movement.cs(16,26): error CS1061: 'Vector2' does not contain a definition for 'GetAxisRaw' and no accessible extension method 'GetAxisRaw' accepting a first argument of type...
  2. C

    Question For C#, windows is better than ubuntu?

    For C#, windows is better than ubuntu? I've just started to learn C# (I've arrived to switch, else if ecc), according to you, should I use windows? or ubuntu is ok?
  3. D

    Question Problem with my WinForms project

    Hello, I have problem with my WinForms application that I cannot solve and that's why I am writing this. The problem is that my controls settings are resetting back to default. The designer file is saving. The problem occurs every time I relaunch Visual Studio. I will attach pictures how it...
  4. RedHand

    Question error CS0122

    I'm writing a code that is trying to access the backSprite and frontSprite, but it gives me an error CS0122. Can anyone help? This is for Unity. The error is: Assets\Script\Battle\BattleUnit.cs(16,57): error CS0122: 'MonsterBase.frontSprite' is inaccessible due to its protection level and...
  5. T

    Device.Net, Does anyone have some experience using Device.Net?

    I have grabbed a sample code that they publish with the documentation, but I am confused at why I am getting errors in Visual Studio. I highlighted the lines i'm getting errors at. Please note I have not changed anything in the sample. Code: private static async Task checkHID() {...
  6. MohaMB

    Question How to add a value in a list inside another list that already exists?

    I have a bug and I don't know how to fix the bug is the following: I have a list, which in turn is of type <List <String>>, with the constructor what I do is save certain info, and what I have coded is what next: List<List<string>> opciones = new List<List<string>>(); public...
  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. codify

    Answered Setting primary key in windows form

    Hello! I am have connected SQL management studio with my visual studio where I am making this hospital management system. I have set the PATIENT ID as the primary key in the SQL management studio. But when I am entering duplicate id, there is no objection being made by the code. What should I do...
  9. codify

    Storring wrong data in a text box!

    Hello! In a window form, Patient id is being stored in both text box1 and textbox2. It is not storing the name of the patient in textbox2. Please help! private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"Data...
  10. RickGove

    Resolved How to save a custom ObservableDictionary to a file, and restore it later?

    I'm not sure if I'm using any of the right language, and I'm a beginner... I have created an ObservableDictionary like so: [Serializable] public class ObservableDictionary<TKey, TValue> : Dictionary<TKey, TValue>, INotifyCollectionChanged { public ObservableDictionary() ...
  11. codify

    Question Project not opening on visual 2019

    Hello! I am trying to open this project. It should automatically open the rest of cs files which are linked to it. But when I open it my visual screen is blank.
  12. aadi56

    Resolved Please help me with asp.net and mongoDB

    I am trying to make employee registration page in asp.net with database as MongoDB. What I want to do is to have the unique email id, when a user tries to register with a email id it should show that email id already exists in the database I am not able to figure out how to do this in MongoDB...
Top Bottom