winforms

  1. SiamIT

    Question Loading GIF Picture From File Works But Not From Memory

    I am facing a weird issue, i need to load GIF image/picture from memory to picture box. It's works fine for non GIF picture, but for GIF it throws GDI error. A generic error occurred in GDI+. here is my test codes to show you the error public partial class Form1 : Form {...
  2. G

    Question: Propper Design and Implementation of a WinForms Custom Control

    Yesterday, I decided to start writing an application, providing the user a convenient interface for making and editing outlines. I want to implement an OutlineEditorControl control to allow this. However, I want to do a good job on the creation of this control, making its API conform to .NET...
  3. Manie Verster

    Dynamically create picture boxes with multiple images in Windows Forms

    Hi there, I want to create picture boxes programmatically from a data table and then to each of these picture boxes add multiple images from a data table in my code in C#. I got it this far but now using the time ticker I want to loop these images like a slide show. Here is my code so far...
  4. Programmable Physics

    Search Button that is using Stored Procedure is not listing a specific record

    I am using Northwind database in Sql Server. I am using Stored Procedure to connect Visual Studio with Sql Server and draw data from database. In CRUD operations, I am tring to write a SEARCH button that is using Stored Procedure. Other CRUD buttons are working okay. Search button is not...
  5. Programmable Physics

    only 1 instance of a form to exist while it has a parent form?

    I have a form application that when clicking a menustrip button, it opens an instance of a form. I made this newly opened form a child of other form to make the newly opened form(child) to stay in the borders of this(parent) form. I used form.MdiParent so newly opened form has a parent. If I...
  6. Programmable Physics

    WinForms : adding a form1 object as a parameter of radiobutton event causes error in the Designer

    Here are the code snippeds, form1.cs: And, here is the Designer ERROR : If I pass a form object as an parameter into a normal method argument, it works fine this way, no designer & eventhandler error occurs. However if I use events like RadioButton Checked Changed, then I get this EVENT...
  7. simos-sigma

    Question How can I access the resources of a project through a custom "uitypeeditor" which is located into a control library?

    Hello!!! :) I am trying to make a custom UITypeEditor with a dialog box which will import .svg files into a project or will select one from those already imported, like the Select Resource Dialog Box does with other files. I have managed to make it get the .svg file from a file and then place...
  8. Programmable Physics

    Dragging an item from listBox1 and droping the item into listBox2 code does not work(AllowDrop=true)

    Although both of the listBoxes **AllowDrop=true** listBox2 does not allow me to drop an item from listbox1 into listBox2. VS 2022 does not give any error, warning or exception handling problem. The problem is that this code does not do what it supposed to do. It does not let me carry 1 item...
  9. Programmable Physics

    Basic use of Linklabel tool in winforms gives Exception Handling Error

    This simple code gives Exception Handling Error: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace...
  10. Omer Butt

    Resolved Label is showing Total result by adding total to previous total instead new total

    I have created a function named ClearAllAfterSale() in which I Clear DataGridView, Textboxes and reset Labels as shown below: private void ClearAllAfterSale() { DGV_Med.Rows.Clear(); Lbl_Total.ResetText(); Lbl_Total.ResetText()...
  11. WiiLF

    Question Subscribe and Catch child control click event

    Hey Community! Happy to be here. I have a form that contains a custom list control. In this list control, is a flexlayout control called flpListBox with rows of results. I am having problems catching the click event of each item. I can MessageBox the sender object key (the song name in this...
  12. 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...
  13. SiamIT

    Generate Specific Printer Binary Data!

    Greeting, i am not sure if my title is perfect/good to understand.. but still here is the scenario.. there is a 3rd party software that save the selected printer on Printer setup dialog into registry.. but not in a very common way like the printer name, instead they save some hex/bin data to...
  14. SiamIT

    Resolved At Design View, Form Does Not Showing Any Control

    Greeting, i have manually convert a vb.net design file to c# file. though it's working/showing fine on run time.. but on design view it's not showing anything (controls) this is how it looks like on design view: And this is how it looks likes on run time: after many hours of trying i...
  15. R

    Resolved why is date from table not displaying properly

    i have a datagrid view that displays the information in a table, there is a created row which stores dates how ever when the information is loaded into the datagridview only the first number is displayed, currently the format of the date is yyyy-MM-dd, if you change the format to say dd-MM-yyyy...
  16. G

    Resolved Visual Studio 2019 Template Type Difference "Windows Forms App" vs "Windows Forms App (.NET Framework)"

    In Visual Studio 2019 there are two template types called: Windows Forms App A project template for creating .NET Windows Forms (Winforms) Windows Forms App (.NET Framework) A project for creating an application with a Windows Forms (Winforms) user interface Is the only difference where...
  17. R

    Question why am i getting insufficient parameters supplied to the command error

    i have trying to read a database and display it into a datagridview but i keep getting the error private void nameSearch() { using (SQLiteCommand cmd = connAccount.CreateCommand()) { connAccount.Open(); try { connAccount = new...
  18. G

    Question Implement Undo button on bound textbox

    I normally manually populate my forms fields and handle everything from there owing to years ago giving up owing to all the practical problems with bound Winform controls in all but the simplest scenarios. Thought I'd give it another shot. I have a grid populated with a datatable (not...
  19. J

    Question Code isn't working proprly

    Hello! Here's the following code that I have problem with. The problem is that everytime I put in Timer.start(); and Timer.stop(); the code doesn't work properly. When I hold and release shift the text is stuck at "Shift is held" and the Timer isn't starting at all. Is there any way to fix that...
  20. L

    Question Folder browsing during setup

    Hi, I'm new here and my problem is easily explained. If I create a setup project with VS2019 the graphic for the folder browsing during the setup is pretty old like it's Win95, I'd rather have one more "good-looking", perhaps one that adapts on the O.S. like the openfile dialog window. Also, one...
Back
Top Bottom