windows forms

  1. C

    Printer using Windows Forms

    People, hello again! I need a help, using the ToolStrip! I have a basic experience in the ToolStrip! So, i gonna use the ToolStrip, and click in the button, and i click in the Insert Standard Items. Probably, gonna show the bar. And, if i click in the printer button in the ToolStrip ''bar'', how...
  2. C

    Using MongoDB in C#

    Hello guys!! So, i need help!! I want use the MongoDB, programming in C#. I need help, and i gonna make all 100% alone in the program C#. So, someone can help me please, how to use the Mongo DB database in C#? So, i know use MongoDB, and connect the database, using the tables, but, i have very...
  3. C

    Question about the recognized in Windows Forms

    How can i program in C#, to make the form be filled and recognized, as 1st, 2nd, 3rd-100th, all times, with the people fill?
  4. C

    Issues with Badges in Windows Forms not showing up on task bar

    Hello. I have an issue with badge notifications using windows forms. The badge icon does not show up in the taskbar, but does show up in the start menu. I made a test UWP app, where the badges show up both in the start menu and in the taskbar no problem. I run the exact same code to send a badge...
  5. 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...
  6. 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...
  7. 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...
  8. 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)...
  9. 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...
  10. 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 asp.net? Is there anything we cannot do with asp.net but can do with windows form? I am thinking of turning to the web field later. What kind of roadmap...
  11. 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?
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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
  17. 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...
  18. 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