csharp beginner

  1. maddyrafi

    Password case sensitive

    Sir, I save my password in database is SAAmi@123 but if even enter in small letters saami@123 means its also logging in but it was not correct. please correct in my code pls if (textBox9.Text != "" && textBox10.Text != "") { string connectionString; MySqlConnection cnn; connectionString =...
  2. maddyrafi

    Resolved Delete Query Error on code

    Mysql Delete record query error, if i select record from gridview that record shouls deleted from mysql database private void button9_Click(object sender, EventArgs e) { if (ID != 0) //if (textBox6.Text!= "" && textBox7.Text != "" && textBox8.Text != "") { string...
  3. T

    Extract outlook email attachment files and save in sql

    I'm trying to save the Outlook attachment file email and save in sql. I tried this following code and it only saved a numerical values using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using...
  4. T

    Save Outlook email Information to SQL Server

    I'm trying to save inbound Outlook mail data to sql server however I'm getting in error in System.Runtime.InteropServices.COMException: 'The attempted operation failed. An object could not be found.' What did I missed Note: RetrieveMail is exist in mailbox using System; using...
  5. T

    How to save email reply on sql

    I'm trying to create an email reply on Outlook and save the email details (Sender, To, CC, Subject, Body and Attachment) on Sql Server. Can you please guide me. Thank you! More Details: After receiving an email the user will reply to an email after replying the user data (Sender, To, CC...
  6. msaaaddev

    Question Can software in different cities uses the same database to store data?

    Hello Friends, I want to ask that can software in different cities uses the same database to store data. I am new to c#. I want to know if I develop software in c# and then install it in different cities(branches) of same company can I use the same database for all running software in different...
  7. AndreasPapandreou

    Question Randomized Playlist

    Hello i am new to c# and trying to create some simple programs and one of those is a randomized playlist for spotify. When I run the code I get this error: "Unhandled exception. System.ArgumentOutOfRangeException: Index must be within the bounds of the List. (Parameter 'index') at...
  8. spicyadmin

    Errors and more erros

    I've been trying to find a solution to a problem I am having. I am trying to save a picture to the "My Pictures" folder but I keep getting an error in the code saying "cannot convert from 'string' to 'system.environment.specialfolderoption'"...
  9. 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...
  10. 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?
  11. 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...
  12. 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...
  13. 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() {...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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() ...
  19. 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.
  20. 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