windows form

  1. D

    Resolved Problem displaying information in a listBox

    Hello, When I display all the agents in my listBox I get the right number of agents but not the right information. I get the result from the attachment. And here is the code of my function: public static List<Utilisateur> GetTousLesAgents() { List<Utilisateur> ListeUsers =...
  2. ThreeNamesGrace

    Problem setting the Text property of a Characters object in Excel Interop using Visual C#

    I'm making ChartSheets in Excel using .NET 7 and the latest update of Office 365; this is the code that I use to change the style of the charts and give them a title: GráficasFrecuenciaGanancia[i - 1].ChartType = XlChartType.xlLineMarkers; GráficasFrecuenciaGanancia[i-1].HasTitle = true...
  3. 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++
  4. 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...
  5. 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...
  6. 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...
  7. 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>()...
  8. 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...
  9. 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...
  10. 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.
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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 =...
  18. 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...
  19. 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...
  20. 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......
Back
Top Bottom