I Saved C# Project form as a new name, now project is broken. How to fix it?
I have a C# project in Visual Studio Community 2022 with a single form for the interface. I made some changes to the form and wanted to save it as a different name so I could preserve the previous design. Now I cannot see the form in the designer, but…
Converting the PDF to a bitmap image corrupted the text content of the PDF.
I have a PDF document and using the below code logic, I am trying to convert the PDF page to an image. After converting the image, the text content in the PDF displayed as corrupted. PQ-376500-STR-FDN-KZV-00011-001.pdf |Stream PdfStream =…
Data insertion by datagridview
I have a DataGridview filled with some data in approx 100 rows and in 5 columns. I also have a button on the form. i want that whenever i click on that button, all the data from that DataGrid view gets inserted in my database but all the rows data at…
![](https://techprofile.blob.core.windows.net/images/4U5sZ3rVOUKcgH5-OE8ReA.png?8DBE48)
How to generate user defined PIN in a Miracast Receiver application in Windows 10 using Windows.Media.Miracast namespace ?
Hi All, I have created an application using the Miracast namespace that acts as a Miracast receiver. I have made it as per my requirements except for one thing and it's like this - Whenever any Miracast-supported Android device or Windows PC or Sender…
How to store data from Excel to database?
How to store data from Excel to database in EF C# windows form Application?
System.Windows.Forms Version=8
I keep getting errors that the system is looking for Version 8 references. All I find are System.Windows.Forms.dll - version 4. How do I resolve this error? Should I change all the references to Version 4? In this folder - C:\Program…
how to fix System.TypeInitializationException : Инициализатор типа "FlaUI.Core.Tools.SystemInfo" выдал исключение. ----> System.InvalidOperationException : Не удается загрузить данные имени счетчика, поскольку в реестре обнаружен недопустимый индекс "
In university we started to work with Windows Forms и WPF. For each work we're given a pre-work with all files and tests. But when I try to start test, they fall with the same Exception: System.TypeInitializationException : Инициализатор типа…
Why does the transaction continue even though there is an error in a method?
I have three methods that are part of a single transaction, part of a transaction to register a purchase. I am testing if the transaction works. First, I deleted the Kardex table, and yes, it worked correctly, the changes are rolled back. Now, when…
How to prevent any form resizing in VS2022 Windows Forms?
Okay, I have been working on a Wizard based VSIX installing templates into VS2022 for my place of employment. They are typically simple forms, that utilize a variety of controls - many of them customized. The latest updated (17.9) for VS2022 affected…
KERNELBASE.dll Exception code: 0xe0434352 Fault offset: 0x000000000002cf19 Faulting process ID: 0x26c0 error
after the clickonce setup. the application gets terminates and in event viewer two erros are generated What may be going wrong ? Applicaton error Faulting application name: Bansal-RM.exe, version: 1.0.0.2, time stamp: 0x656e13f7 Faulting module name:…
![](https://techprofile.blob.core.windows.net/images/hb2e6y1aGU2jvb1t68CaGA.png?8D889F)
![](https://techprofile.blob.core.windows.net/images/hb2e6y1aGU2jvb1t68CaGA.png?8D889F)
GroupBox.Controls.Remove is not removing all controls
I have a Windows Form App written in C#, using .NET Framework 4.7.2 that allows the users to select a starting position to begin printing to laser labels. The print dialog form I have created has a group box populated with radiobuttons set to appear as…
Cannot reference System.Windows.Forms.DataVisualization in a console app
Hi, I'm in a Console App (.Net Framework) project and cant use windows.forms, I'm using a .Net Framework Console App because I was not able do it in a .Net Core app either. Specifically trying to call a class from…
How can i find missing bills pdf saved in a folder
Hello experts can you guide how can i find missing or duplicate files in a folder where files are stored as BillNumberxBillSerisxFinYear.pdf 1x10x23.pdf ... 9495x10x23.pdf [ it may have duplicate files 10x10x23(1).pdf, 10x10x23(2).pdf 1x45x23.pdf ...…
![](https://techprofile.blob.core.windows.net/images/hb2e6y1aGU2jvb1t68CaGA.png?8D889F)
Form design window not properly docking in main window
The form design window does not dock properly in the main window. It holds the wrong place on the form with the mouse. I cannot hold the form elements with the mouse. font sizes are incorrect. Image attached for reference:
How to exit the modal loop after calling "ShowDialog()"
form1.ShowDialog() I have run this code and the code after will not run until the form1 is closed. I wonder how to quit the modal loop without closing form1 using another code. For example : I press a button (named "Button1" ) of form1, then…
Play/Pause video playing inside Movies & TV
Is it possible to programmatically (C# preferred but C++ also ok) play/pause a video played by Movies & TV and also get other information about the playback, like Title, ...? I know only two ways and both have a huge problem. Play/Pause by…
How to fix WinForms designer RESX problem with custom control
Using: Visual Studio 2022, latest updated version. Developing a WinForms custom control for .NET Framework 4.8. Platform is set to Any CPU. I am experimenting with building a custom control. The eventual aim is that it will display a graph in a…
Winforms screen dimming overlay program gets drawn twice when opening/closing start menu or context menu's in taskbar
I'm currently making a screen dimming program in C# that uses black winform forms with an adjustable opacity to dim the whole display. This by itself is unable to dim certain windows UI elements such as the start menu, alt+tab and win+tab menus. In order…
How to call the same form(WinForm) in the desktop application using c#
already i'm opened winform from there i have add to new form to get a search window in the search window ,if the user input some number from 1 to 10 again after clicking ok button in the search window.it should navigate to the same window which is opened…
How to transform a ClickOnce winforms project from .NET Framework in VS 2019 to .NET in VS2022?
I have a ClickOnce winform project using .NET Framework in VS 2019 using the code from the following…