windows forms

  1. S

    Hi guys just have a question regarding parameterized queries.

    Initially I was concatenating my SQL queries, i was then informed that it would be best to use parameterized queries to prevent SQL Injection. I've now done that and everything works fine, however when posting on a forum yesterday about one of my queries not working properly, a person told me...
  2. S

    Warn user with messageBox if they navigate away from the current user control

    I've tried to achieve this by creating a leave event on the user control, but the message Box isn't appearing for some reason. I also have a panel in front of the user control which I'm thinking might be the issue? Below is the code i have so far: private void...
  3. S

    Resolved Creating a seat reservation feature on windows forms.

    I'm making a coach booking system and I'm at the final stage where the user has to select a seat before inserting the data within a table. When the user selects one of the picture boxes it'll turn green, and that specific seat Id will be stored within the Booking table. If another customer...
  4. S

    Resolved how to transfer data from one grid view to a text box in another user control

    When the user double clicks on one of the bookings within the grid view, i would like to transfer the Id to a text box in a separate user control. Any ideas of how could I achieve this? Thankyou private void availableBookings_CellDoubleClick(object sender, DataGridViewCellEventArgs e)...
  5. S

    Resolved Needs some assistance with a seat reservation system.

    I'm currently creating a windows form project which is for a coach booking system using the baked in SQL server. What I'm trying to figure out at the moment is the best way to reserve a seat for a particular customer. In my coach table i have the coach Type i.e. single decker and double...
  6. Nick...

    Starting C#

    My first question is where can I learn C #. Note: I know programming logic and have some progress in C #. My second question is windows form or Is there anything we cannot do with but can do with windows form? I am thinking of turning to the web field later. What kind of roadmap...
  7. S

    Question Why My List<string> Saved In User Settings doesn´t Save the strings?

    Good Day, I Have A List<string> Saved In My App User Settings, this List is supposed to save the file paths of a openfiledialog to then deserialize it, but I already Called the method Save(); And even the method Upgrade(); After adding the strings to the list, but this strings, doesn´t save. Why?
  8. K

    Question Why are programmatically added controls not shown?

    Does anyone know why these controls are not displayed on the form? When I add the controls over the design and the algorithm writes the properties to the InitializeComponents method, everything works great. But if I use the same code from the designer in the form constructor with just different...
  9. M

    Windows Forms application with a shared database

    I am pretty much new in C# programming and desktop applications development. Still, I have a deep understanding of OOP concepts, patterns etc., because I come from other languages/platforms. What I am interested in, are some guidelines / best practices... I am about to to make an app that will...
  10. G

    Question Validating Cell if there is same info

    Hello guys I have 1 question How Can i check cell if there is same Data or not . For Example here you see that there are many 2550000 so i want to code that checks this row and see if there is more than 4 same info just MessageBox.Show("there are too many same data"+(the data what is too...
  11. J

    Issue calling third party C code

    Hello I have a third party api that I am using within a C# Windows form I am having trouble with one piece of it where I am trying to increment through a ptr to a structure that has a ptr to ten structures within it and was hoping for some advice This is my code for a function call - In a...
  12. sanjeewa.nibm

    DataGridview update and Datagridview refresh

    What would be the similarities and differences in DataGridview.Update() and Datagridview.Refresh() methods What are the places to use DataGridview.Update() and Datagridview.Refresh() I'm little confused
  13. J

    Windows firewall question

    Hi there, I am working on an application which makes the user's computer act as a server in a local network by binding itself to a random open port. The user gets a popup letting the them know that it has blocked my application or some of its features. What I am trying to understand is this...
  14. MrDevo

    Guess the number

    Hi. I am pretty new to C# and trying to get this game to work. I got a textbox where I type the number that I have in mind and the computer must guess it using bisection algorithm but I don't understand why the loop won't work since the condition is true. Here's my code. The biggeest and the...
Top Bottom