Category "winforms"

compare user draw to a bitmap defined

I'm trying to build an app like StrokePlus using bitmap to be able to check between two images if they're the same visually. The user can draw on the whole scre

How to add button to a specific DataGridView C# WinFrom

Hi, I am very new to C# and window forms. Just like this image showing, I added DataGridView_B to DataGridView_A, where DataGridView_B is usually invisible an

Hovering over a DataGridViewComboBoxColumn in a WinForms app in Windows 11 turns cell black (OK in Windows 10)

When we run our application on Windows 11 the DataGridView control seems to act differently. Hovering over a cell in a DataGridViewComboBoxColumn turns the cell

How to solve the infinite loop in reportviewer? winforms

I am working with reportviewer in visual studio 2010, but when I open the report for the first time the data loads correctly, but when I change to another repor

UI thread slow to respond to Progress updaters on async Task method using VS2022 & Net6.0

I’ve run into a performance obstacle and I’m uncertain of the cause, all of this is running under VS2022 & Net6.0. As this is my 1st time using

Using c# winform Live-Charts, how to make real time plot with changing data?

My data is coming from a real time source that provides a number of milliseconds from start and the value. I want a real time plot, i.e. the old values fall of

Fill the DataSource of a DataGridView with existing Columns

Is there a way to fill the DataSource of a DataGridView using the existing Columns? I'm trying to set a DataSource to my DataGridView; every time I set my DataS

Need help deleting rows/lines in richtextbox c# win forms

So essentially, I have a button, when I press the button, the button should delete the most recent row of text embedded into the rich text box. Press it again,

How can I embed a variable on build from a text file I read?

I am working on C# winform application and I had setup .env files with this package https://github.com/tonerdo/dotnet-env, the problem is I can't access my data

What is preventing Combobox SelectedValue from setting?

I have several comboboxes, all similar code and only one, CustomerSelector.SelectedValue, is not working. I have even tried setting the value like this: Custom

c# How to get the most repeated pixel values from an image

Bitmap image; private void button4_Click(object sender, EventArgs e) { pictureBox1.Image = image; Color co; for

How to set color for checkbox present in datagridview?

I have a datagridview in windows form. It looks like this. In this, have one Checkbox column, two textbox column. My requirement is need to set readonly true a

How to support snap layout in WinForms in C# for windows 11

How to support snap layout in WinForms for windows 11. I'm using c# 10. My application's custom maximize button shows only tooltip. MainForm's WndProc code: pr

Databind Object to Winforms DatagridView with ComboBox

Currently I'm trying to databind object properties to a datagridview. The thing is that the datagridview should have a combobox column, where the user has to ch

How to exclusively set the value of a DataGridViewCheckBoxCell?

I have a List<Car> objects that have a bool property named Marked. I want to check / uncheck the Cell corresponding to this property, in a way that only o

Copy selected text of a RichTextBox to the Clipboard with a Mouse Click

I have a RichTextBox(RTB) that obtains text from two sources a txt file and data from a SQLite DB. The RTB has ReadOnly property set to False. I am trying to NO

Is there a way to exclude document files from the installation folder for vb.net project?

I have created a windows form application using vb.net 2019, and everything seems fine until I found out that an .xml document which contains confidential files

How make pages in Winforms?

I would like to make pages for UserControl but I don't know how I can do this. How can I implement this as in the picture in WinForms? I would like to display a

Handle MouseMove, MouseDown, MouseUp Events in a ListView to drag a borderless Form

I'm using MouseMove, MouseUp, MouseDown events to move a borderless form (as found here as an example). It works great, but for a ListView, it only works if I c

how can i use a function from MyForm1.h in MyForm.h

i have a funcion 'button1_click' in the header 'MyForm1.h'. I want to use this function in another header 'MyForm.h'. How can i do this? i already included 'MyF