Questions tagged [windows-forms-designer]
Use this tag for questions specific to design-time support. For questions which are not specific to design-time support use WinForms tag.
2,474
questions
0
votes
0
answers
14
views
Is there a way to clear a flowlayoutpanel? C# Windows form
Im creating a timetable application using c# windows form where i have created a combobox that holds all programmes of study and a generate button. Once this generate button is clicked a sql ...
0
votes
0
answers
12
views
I have the following error System.Rutime.InteropServices.COMException(0xFFFFFFF8) at DPFP.Verification [closed]
I am developing a fingerprint check-in but when verifying myself, the following error appears
System.Rutime.InteropServices.COMException(0xFFFFFFF8) at DPFP.Verification
I've already been looking, but ...
-1
votes
1
answer
64
views
Having trouble with set-up of Windows Forms appication (VB.NET) in Visual Studio
I have been asked to work on a piece of software. I am an intern developer and there are no other developers at this company. I was given a folder of C# source code that includes other folders as well ...
0
votes
1
answer
39
views
My code does not return the proper coordinates for the cursor
I am trying to write a program that needs to move a picture box to the coordinates of the cursor on a mouse down event in windows forms app C#.
private void MouseClick(object sender, MouseEventArgs e)
...
0
votes
0
answers
16
views
WinForms: Trouble Switching UserControl TabPages of TabControl in Designer
I have some problem and need a help.
I create UserControl with TabControl with some TabPages. When I place it into form, I cant switch pages in designer, but into designer of UserControl its work.
By ...
-2
votes
0
answers
43
views
Solving common issues with the C# Windows Forms Designer for novice programmers [closed]
I am not getting this as I am student and Begineer. How can I get my design back as it was in previous condition. Due to this error my whole design has disappeared and my hours of work has gone in ...
-1
votes
0
answers
25
views
Report Viewer data has been skewed C# windows form
I have a little problem in the C# Windows form when loading data from the report viewer in form by opening that form in the panel. When I open the form that contains the report viewer the loaded data ...
-1
votes
0
answers
24
views
Using the camera in C# Windows Form [closed]
I've just started learning about using the camera using c# Windows Form App. I found some tutorials where they use AForge.Video and AForge.Video.DirectShow libraries. I followed suit and created a ...
0
votes
1
answer
43
views
Doubly linked list consuming too much memory
I`m making an application that opens an image in a WindowsForm PictureBox and by clicking left arrow or right arrow, it will change to previous or next image in the same folder.
In order to change ...
0
votes
0
answers
22
views
Why can't I first declare and initialize windows forms objects and have them appear on the designer tab?
I am making a basic windows forms app in C# on Visual Studio. Even after declaring two buttons in 'form1.Designer.cs' by copying the exact syntax that it adds to the file when you drag a button onto ...
1
vote
1
answer
28
views
WinForms bold label displays correctly in Visual Studio Designer but gets squished when running the application
As illustrated in the screenshot below, a normal WinForms label works fine in both the Designer and the running application, but a bold label will get distorted after a certain point in the running ...
0
votes
1
answer
39
views
Blank app when launching a windows form with C# [closed]
I am creating an interface for monitoring using C# in Visual Studio 2022. I wrote a simple code with a primal design when I build there are no errors or warnings - everything is good. But when I ...
0
votes
0
answers
16
views
How to resolve COMException 0x80040154 in x64 Windows Forms program while using zkemkeeper? [duplicate]
I want to get 64-bit output from my program, but it gives an error when running.
zkemkeeper.CZKEMClass cZKEMClass = new zkemkeeper.CZKEMClass();
System.Runtime.InteropServices.COMException HResult=...
0
votes
0
answers
35
views
There are gaps in the drawing line when drawing quickly c#
enter image description hereI'm trying to create a drawing app that uses an image stored in the resources as a paintbrush
The drawing will be depened on the location of the mouse and the mouse ...
-1
votes
2
answers
39
views
How can I set the default color for a user control property browsable and with ColorUI class of ColorEditor? [duplicate]
How can I set the default color for a user control property browsable and with ColorUI class of ColorEditor?
1/ I tried setting Default value as for native type aka
[DefaultValue(SystemColors....
0
votes
1
answer
49
views
C# Windows Forms Using FFMPEG to change video format got no response
I am trying to make an exe program to change a video format by using FFMPEG instead of doing it in the terminal. The formatted video will be saved in the download folder. I have tried my code below ...
0
votes
0
answers
21
views
Is there any way to "disable" the use of code generated by the designer in Visual Studio IDE 2022?
I am working on a Windows Forms desktop application in the Visual Studio IDE 2022. Initially, I used the designer to create all the components and views. This was all done in the Main form. The ...
0
votes
0
answers
29
views
webView2_Click and webView2_MouseClick doesn't get triggered when clicked on a webpage which is rendered using webview2 in Windows Forms [duplicate]
I am new to Windows Forms and my core competency is testing. I am trying to build a tool using Windows Forms where we can launch the webpage using webview2 and then record the steps which the user ...
0
votes
0
answers
37
views
Button clicked proceed to mew windows form event (Once only)
Good day developers,
I just want to ask if it is possible, once I clicked a button, it appearing the new windows form only once, because as of now it works for me but when I clicked a button many ...
1
vote
0
answers
12
views
display and Updating data from form's instances in one other static form in csharp
I am working on a queue management project in csharp. I've already added the elements and called them from the queue and so far so good. However, the problem is that I can't find a way to display the ...
0
votes
0
answers
19
views
How to fix this Bresenham code drawing only in one direction
I am trying to use the Bresenham algorithm to draw a line, but I can only draw the one in one direction, which I am assuming is the positive direction. After a few attempts, the program crashes. Here ...
-1
votes
1
answer
39
views
Visual Studio: Form1 designer view not matching Form1.Designer.cs after migration to .NET Framework
I will try to keep this short.
Recently, in Visual Studio 2022, I have moved my C# app from .NET 7.0 (Core) to .NET Framework 4.8, mostly because it promised better functionality for Excel interop ...
-1
votes
1
answer
109
views
Visual Studio 2022 Bugs
So in the old VS programs I could place objects in design view and have them render in program execution. I download the new VS 2022 and this is what I get. Any assistance?
Clearly the program seems ...
0
votes
0
answers
23
views
Draw a square in the first panel and get a complete square in the second panel
Draw a square in the first panel and get a complete square in the second panel,
i have 2 panel in winForm,
panelA
public partial class frmPaint : Form
{
public Point x = new();
...
0
votes
1
answer
29
views
How to set selection mode for images? C# in Winforms
I am creating Image gallery with image editor in it. In my project there are 2 forms: Form1 - gallery, where you can upload and then choose which image to edit. Form2 - editor itself.
How to make ...
0
votes
1
answer
45
views
System.InvalidOperationException: rows cannot be programmatically added to the datagridview's rows collection when the control is data-bound
I have a datagridview which I fill with a txt file which have 7 columns and 20 rows by default.
I want to add new rows to my datagridview using a button and textboxes in two different form, form1 for ...
0
votes
1
answer
43
views
Janus GridEX Designer does not get Opened
I've been working with Janus GridEx in Windows Forms for a long time. I'm afraid I'm suddenly unable to open the GridEx designer on Visual Studio 2019, which makes real work fairly impossible or at ...
0
votes
1
answer
65
views
Linq select just one column and down to list
I created db named DbDelta,
I have table named TblBrands,
I tried to linq Brandname column from TblBrands table ToList().
All Sql connection works correctly but I cannot get List().
I have tried ...
0
votes
0
answers
51
views
How to change the color of titlebar in WinFroms application in .net core C#
I want to change the colour of my title-bar but I don't know how?
I am new to WinForms.
I tried to find the property in properties tab of the form that change the colour of title-bar but I don't know ...
0
votes
0
answers
29
views
How to show a panel in bitmap image creation - Windows Forms
I have some code for a function that is meant to give a label a transparent background (I definitely did steal it from another question)
It goes as Shown:
void TransparetBackground(Control C)
{
C....
0
votes
1
answer
87
views
how add ListBox new data to data grid view without delete old data C#?
I'm trying to first add textbox values to add listed by listbox. after that listbox items adding to datagridview. Its fine. i did this. But i'm facing problem is first time I added listbox lists to ...
-1
votes
1
answer
54
views
Retrieving Values from selected rows in C# Datagridview with joined tables in SQL
This query works in SQL with the specified ID, however, when i try to get the value of the selected row from the datagrid view, it gives me an error saying the table does not have a primary key. (It ...
0
votes
1
answer
41
views
insert multi dates alarm in c#
im trying to do multi dates alarm but i don't know the code that can make it possible
private void timer1_Tick(object sender, EventArgs e)
{
DateTime currentTime = DateTime.Now;
...
0
votes
1
answer
167
views
System.InvalidOperationException: 'ADP_ConnectionRequired_Fill', Exception Unhandled
i was writing a code in c# for 3 tier approach using CRUD operations in windows based GUI. When i tried to run the code, i got Exception user-unhandled error in the line of code below.
sda.Fill(dt);
...
-3
votes
1
answer
32
views
Windows Forms textbox taking up the space of another textbox even though it's docked
(https://i.stack.imgur.com/KEYtk.png)
I'm making a simple text editor, where the right richtextbox is the typing field, while the small richtextbox on the left is a counter indicating which line the ...
0
votes
2
answers
73
views
How to add a linklabel in a PropertyGrid in Windows Forms
we have an information tool that displays information from active directory on a gui. I want to extend that tool to the part that i can click on a text to open a file. I am struggeling with the ...
0
votes
1
answer
34
views
Reading from file in Release version of c# app
I have a problem with my app in C#.
My program is supposed to read from the Resources file named TextFile1.txt paths to some files and parse them as arguments to another executable script.
In debug ...
-1
votes
1
answer
143
views
Face detection and recognition inaccurate result
I am working with this face detection and recognition application and I don't have any past experience making same project. I don't know why it always show unknown even I already have 10 sample images ...
0
votes
2
answers
34
views
Is it possible to make a log in form, that saves its data after the program closes and reopens other than using SQL?
I want to create a C# windows form application login form that allows the user to create an account and was hoping to save that account locally (in a file in current pc) for academic purposes. ...
0
votes
1
answer
104
views
Can I center a Form inside the Visual Studio WinForms Designer at design time
I'm currently making a small app that will automatically press a certain button for me overtime.
I'm making this with visual studio's windows forms but the project start with the forms window at the ...
0
votes
0
answers
27
views
Unable to drag inside Document Outline-Visual Studio forms
I'm working on a begginer windows forms application, I created two panels inside the form but the second panel is a child of the first panel, I would like them to be seperate parent's for the controls ...
0
votes
1
answer
128
views
Datetimepicker months and years only in VB.net
It is possible in datetimepicker can pick months and years only without date? I didn't see any properties to remove the date pick. If someone have an idea please share. It would be appreciated. Thank ...
-1
votes
1
answer
80
views
Error: System.ArgumentOutOfRangeException: 'Year, Month, and Day parameters describe an un-representable DateTime.'
Can someone help me?
My algorithm should be this:
(Note: I used DateEdit from DevExpress not DateTimePicker)
This is my output
OBTAForTheMonthDateEdit - DateEdit1
OBTADeadlineDateEdit - DateEdit2 (...
0
votes
1
answer
32
views
Selecting any date in DateEdit1 and display the 18th day in DateEdit2
Can someone help me, it is possible to choose any Date in DateEdit1 then display the 18th day of the month(selected month in DateEdit1) in DateEdit2 in VB.net. Not Working on mine. Thank you for ...
0
votes
1
answer
30
views
is it possible to create an attachment box to fetch FilePath using C# console as in Windows Form?
so I have this code that fetches me lines and columns from an ExcelPath(path/to/excel/file.xlsx) and shows it in the Console, but going forward I will make other uses of the lines and columns imported ...
0
votes
0
answers
49
views
I am attempting to create a Rubik's cube solver using c# forms
I am using 6 2D arrays in order to keep track of each face but when I run the following code it gets stuck in an infinite loop any suggestions?
The Topface, Leftface, Rightface, Bottomface, Backface ...
-3
votes
1
answer
51
views
Adding the value (integer) of a variable to a control name (PictureBox) in Windows Forms? [closed]
All my picture box controls are named the same beside the number at the end. Since I made it this way, is it possible to match an int value to the end of the PictureBox name and save copy/pasting some ...
5
votes
2
answers
2k
views
Changing the size of a window in Windows Forms gives "Should have two or more class paths." error
Yesterday, I started getting the "Should have two or more class parts." error when I adjust my UI through the Windows Forms Designer. This is on an established application. I then created ...
0
votes
0
answers
37
views
Execute function with Hex Vb.net
I have a simple vb function that does Hello World
I converted this function to hex and added hex to plain text file
The next thing I did was add a text file to resources
I have a button added to Form1,...
0
votes
0
answers
58
views
Cannot open designer after changing framework from 4.5 to 4.8 VS2022
Apologies if this isn’t the most informative question, I am not at my computer so I cannot take screenshots.
In my windows forms project which has the targeting framework 4.5 (I know outdated version, ...