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,
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
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
Bitmap image; private void button4_Click(object sender, EventArgs e) { pictureBox1.Image = image; Color co; for
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 for windows 11. I'm using c# 10. My application's custom maximize button shows only tooltip. MainForm's WndProc code: pr
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
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
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
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
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
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
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
I am building a two column custom context menu layout using Forms. I named the class of the form of the custom context menu as ContextMenu. I created a flag fun
I have a TabControl and I'm adding Tabpages to it programmatically. Each TabPage loads a UserControl in it, and each user control contains a few controls. For e
I'm building a WinForms project in C# using a PostgreSQL database and the Npgsql framework. For inserting a record, I need to return the ID of the new record.
I use this simple code to set the position of two Scrollbars of different RichTextBox Controls, at same time. The trouble comes when the text of a RichTextBox i
Below I'm trying to move item4 in place of item5, the action I expected was for item 4 to be on top of item5 and item5 under item4: Below I'm trying to move it
I'm very new to C# and I'm wondering if using delegates is the right way here: I created a UserControl in Visual Studio Windows Forms Designer. In a TableLayout
We have run in to a problem. We are creating a software using VS19 and we are using Crystal Report Version 13.0.26.3348 with this. When we created the build and