Need help with Graphics.DrawString font size for printer output
I have a Windows desktop application that creates labels to print to a laser printer. I am using Visual Studio v17.8.6 and the template is .NET Framework. I am new to using graphics and unsure what is the best solution to use to print to the laser…
Currently using Visual Studio 2022 for my vb.net windows form app and the designer fails to load at "Loading Designer...You can continue working while the designer is loading in the background"
I'm currently using Visual Studio Community 2022 17.7.1 and .NET 6.0
How to assign dialog control types to database fields in Data Sources Window
I have a Winforms app connected to a SQL database. In a tutorial I am working through from 3 years ago they have the Data Sources window open with the Customer table at the top followed by Address, City, etc data fields. It shows right clicking any of…
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…
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 : Инициализатор типа…
How to easily separate people from the background with the Noizz Without Watermark application on PC?
Hello everyone, I am very passionate about video editing and I have a dream to become a professional video editor, currently I do not know how to separate people from the background with Noizz Without Watermark application. Please help me, I am using…
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:…
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 ...…
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…