windows form

  1. S

    Storing values from a single column within a list.

    I would like to read all of the values from the column name "seatNo" and store those values within a list. I've done most of the code but i have absolutely no idea how to actually store the values Here is what i have so far: private List<string> seatNumbers = new List<string>()...
  2. S

    Resolved Accessing an individual value within a list

    I have a sign in method, which stores the details of a user based on the password and email that they enter. Within this method i call a function which stores those details inside of a list. My question is how would i be able to access those individual values? I want to be able to access just...
  3. S

    Resolved Getting error message regarding a foreign key when inserting data into a table.

    When signing up data will be stored within two tables. customerLogin and customer. The code for this is shown below, it works the way i want it to, inserting the correct details into both tables. { string query_1 = "Insert into customer (firstName...
  4. S

    Resolved PictureBox appears on form but not user control.

    Hello, when i drag a custom picture box onto my user control and run the application i can see it, however if i place the item on top of the panel i cant. Does anyone know how i can get round this? See image below, items under seat reservation aren't visible.
  5. S

    Resolved Getting an error message when dragging seat object onto user control

    I made a Seat class and inherited the PictureBox class: class seat : PictureBox { public string Row { get; set; } public int Number { get; set; } public string Seat => $"{Row}{Number}"; public bool Available { get; set; } } } I'm getting the...
  6. S

    Changing picture box image based on seat status

    I want to create a simple seat reservation system where the picture box will change to another image once the user has clicked the picture box. If the image is set as "available" it will turn green. If the user attempts to select another seat with the status "available" i want the application to...
  7. S

    Resolved Attempting to fill text boxes in user control once the user has logged in

    When the user logs in they will be taken to a dashboard where they can select different options. one of them being "Account details". within this user control I've set up text boxes which will be filled with the users details once they double click on the row within the DataGridView . I have...
  8. codify

    Resolved SqlException: 'Invalid column name 'id'.

    I am making a window form database management system. When I click on the "Add staff" option, this error occurs System.Data.SqlClient.SqlException: 'Invalid column name 'id'.' on line number : 20 private void StaffInformation_Load(object sender, EventArgs e) { // TODO: This...
  9. sj1597

    Answered Need some help in logic for making of the application

    So I am making a windows application in which I have store my recipe proportions. For example: if one pizza requires 200 gms flour,2 spoons of sauce,100 gms of cheese,250 gms of water...then what will be the proportions of the ingredients required for making 47 pizza's. P.S.: I am new to coding...
  10. N

    Question Use Dynamic Resource from the class

    Hello there! I am programming something with views, view models, and models, and i need to display a DataGrid. I want to put the names of the colums in a xaml file, so the user can choose a langage package. I need to declare these colums in my ViewModel file. This work fine when I put the name...
  11. A

    Windows Form DataGridViews

    Hi! ive got two dataGridViews with two columns each and i have a (csv file) with products and prices that i import to gridView1. string[] lines = File.ReadAllLines("Products.csv"); foreach (string line in lines) { string[] words =...
  12. S

    Question connection string over internet

    Hi, i am trying to learn C# programing language, so far i am an absolute beginner. I find visual studio and C# to be a fantastic tool. I am trying to make a very simple windows form application that would connect to SQL server over internet with which a user could add or change data in the...
  13. G

    Question Excel automation run macro

    Hi If i make mistakes in posting this I apologize in advance. I am new to this forum. Before I begin I am a beginner in C# I went through some web videos in two days and wrote this script (below). Objective: The Script has to monitor a particular folder, if the folder contains a file...
  14. T

    Question Disable working of Keyboard?

    I need to made a Secured Login Page in C#.NET Windows Forms Application. in this process I have need to disable my pc's keyboard and use only ON SCREEN KEYBOARD. I have open ON SCREEN KEYBOARD but still can't disable my peripheral device keyboard? please help me in this regards......
  15. M

    Question fill jpeg image with users text

    I want to export the jpeg(pre-designed) image of A4 size from windows form filled by the data from database in vs2010. Let me give you full description of my problem... I have one A4 size image(2484x3501) containing 10 ID cards template. What i have to do is fill that jpeg image with users...
Top Bottom