windows form

  1. Mohamed Osama

    gol

    how I can make an project calculate LU Decomposition of numerical analysis ? I want write it in c# i have code in c++
  2. SiamIT

    Adding Preview Support In File Open Dialogue

    Greetings.. after some search on google, i found that i can use Microsoft.WindowsAPICodePack.Shell to add custom controls on file open/save dialogue box as needed. so, i tried some, but i can't make it work to solve my purpose. I have added a button to preview music. But it throws a...
  3. mr.prateekg

    Question Unexpected NullReferenceException caught in Global Exception Handler

    We have developed a windows forms application that captures user interactions i.e. Typed text, clicks. Sometimes, out of the blue on some machine, we get the following exception: Object reference not set to an instance of an object. at System.Environment.GetStackTrace(Exception e, Boolean...
  4. Omer Butt

    Resolved How to Change the row color of DataGridView based on SQL Query?

    What I tried is: (But need to know what to put in if condition and what to put in foreach condition) ViewMedicine_DataGrid is a name of DataGridView Pharmacist_Medicine is a name of a Table in Sql Server E_Date is a column name of Expiry Date private void...
  5. 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>()...
  6. 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...
  7. 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...
  8. 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.
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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 =...
  16. 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...
  17. 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...
  18. 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......
  19. 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