How to Load a file which is saved using BinaryFormatter.
In our Control, we have used BinaryFormatter serialization to Save and Load. But in Net 9 BinaryFormatter is completely removed. Due to that, we are planned to write our Serialization logic using DataContractSerialization. But we need to deserialize…
Can we create the attached model like datagridview in C#.net Windows Form Application.
We are planning a desktop application using c#.net. One of our challenges is to create an attached type of DataGridView.Unfortunately, we are not getting any solution for designing customized types of DataGridView.If possible above type of DataGridView…
Deletion from a datagridview on the second attempt returns null exception if the column is hidden, but works fine if vissible.
my program loads a table from sqlite3 and displays the content in a datagridview form with c#. I am sorting the table entries according to name and some values which gives out of order ID's to display in the datagridview. The program works fine if the ID…
async Task method with await Task.Run make application crash shutdown without any errors/exceptions. how to solve?
when running the application, it starts doing the code in the method but then after few seconds the application crash shutdown without showing any errors or exceptions and it's never reaching any of the catch places. maybe there is a deadlock? not…
Controls projecting shadow out of form bounds
Problem2.pngProblem.pngHello, I woriking in windows 8.1 os for alot of years with visual studio. I have the latest version of visual studio 2019. Im working with c# winforms.The problem that i found is that whenever i drag and drop a control onto form…
Enabling Winforms Application Windows authentication service
Hi, I want to add windows authentication to my Winforms Application. I have gone to properties and enabled this as shown in the screenshot. Want to test if its working or not. How do i proceed?
CA1416 Warning after upgrading from .NET Framework 4.8 to .NET 8 with Windows Forms
Hello, I recently upgraded my project from .NET Framework 4.8 to .NET 8 and I’m using Windows Forms. Although I’m not getting any errors, I’m seeing some warnings that I would like to resolve. One of the warnings is CA1416, which indicates that…
Toolbox has no items
Visual Studio 22 Windows Forms App has the following message in the Toolbox, "There are no usable controls in this group. Drag an item onto this text to add it to the toolbox." I have tried the reset toolbox and choosing items but neither…
Visual Studio C# Windows Forms Application touch screen exception error
I have Windows Forms Visual Studio Project; I have added the code to be able to use a finger instead of the mouse on touch screen monitor. When I use a mouse, everything is working, but when I use a finger to top and double top on the screen also working…
How to get the text from the label by the handle with specific coordinates on any part of the desktop screen
I want to extract the text inside the label by giving certain coordinates from the screen, if the type of the coordinates is from the label, then extract the part of the obtained part.
How to get the index of duplicate elements along with the range of empty elements after it. LINQ
hi Dim ComplexArray As String() = Split("A C A B C A B A B C") Dim Arr3D = {({"A", ({"0-2", "5-9", "16-16", "19-20"})}), ({"B", ({"10-12",…
How to replace OperationContext in new V12 SDK Azure.Storage.Blobs
I'm switching from Microsoft.WindowsAzure.Storage to Azure.Storage.Blobs. In the former versions I could log retries, this seems to be missing in the new SDK. I used OperationContext for this: var context = new OperationContext(); …
Issue Connecting With An Azure SQL Database from .NET WinForms Application
I'm having an issue connecting to an Azure SQL database from a WinForms application after it has been packaged using InstallShield. The database exists on a virtual network and I'm using a virtual network gateway point-to-site connection. The database is…
How to identify usage of Azure SQL Database 2014-04-01 APIs
I have a very old windows forms project using azure database and I'm very unsure if this project is affected by the API retirement. The project uses DataSets, TableAdapters and the old library Microsoft.Practices.TransientFaultHandling. Is this going to…
root is missing error, while making frontend using window form application in VS 2022 using C#
Root is missing error, while making frontend using window form application in VS 2022 using C#. How to troubleshoot this issue.
My <app>.dll.config.deploy file is missing in my Application files after publishing with ClickOnce
My windows form app is not running on other computers. I keep receiving the error that the <myappname>.dll.config.deploy is missing (a sentence like that). What should I do to fix that ? I'm stuck for days now.
Visual Studio theming not applied correctly to custom Control property's UITypeEditor
Visual Studio: 2022 Community (17.10.0) Visual Experience Color Theme: Dark I'm working on a custom UITypeEditor (drop-down control) for a custom type that's a part of my custom control. When I trigger the UITypeEditor to drop down, I can see it in the…
RichTextBox Details
I need more information about the RichTextBox in winforms/dotnet 8/C# 12/VS2022. Specifically, when I create custom RTF content based on the v1.5 spec and try to insert it (as selection or entire document), the RichTextBox strips out all of my custom…
Rename a form in Visual Studio 2022
Hello, trying to rename a form. The guidance here appears to still be good but even though I renamed the form in solution explorer, told VS2022 to rename it everywhere, and set the startup object in project properties, I still get the error,…