1,934 questions with Developer technologies | Windows Forms tags
double isn't working
Hi, the solution may be very simple but I need help... int x = 101; int y = 200; double result = (100 / x) * y; Show(result); // Show(result) = RichTextBox.AppendText(result + "\n"); // Output = 0 Why is the output always 0 as soon as x…
Developer technologies | Windows Forms
Continue countdown from last count, when app is stopped and restarted
I am trying to create a countdown that if the app is shutdown while it is still counting, it should continue from last count when the app is restarted. For instance: I have a countdown which counts down from 360 to 0. If the countdown is currently in…
Developer technologies | Windows Forms
Developer technologies | VB
Datagridview foreach nested loop
Dear Experts, from a datagridview having columns ac_code, filepath, email id i want to zip files of each same ac_code and email them. how within foreach loop i can loop for same ac_code get the zip created and emailed once only i tried with…
Developer technologies | Windows Forms
Developer technologies | C#


Security warning regarding WinForms component in VS 2019 (dll may have been downloaded from a network location)
Our customers have a legal copy of a WinForms component compiled for .NET Framework 4. Recently they surprised us - they can no longer add it to the Toolbox in Visual Studio 2019 and use it in VB.NET WinForms projects. The installation package of the…
Developer technologies | Windows Forms
Developer technologies | VB
Cross Platform WinForm MacOS & WIndows
I'm needing to make a WinForm application (or similar) that'll interact with an online database. I was going to do this in VB.NET but one user is on a MacOS. Is there another free platform which will achieve the same thing?
Developer technologies | Windows Forms
Developer technologies | VB
Not able to Catch unhandled exception
I am using basic windows application. In my application I want to log/display the details of any unhandled exception occurred . So I used following code to handle the exceptions. But following code is executing when run through the Visual studio, But…
Developer technologies | Windows Forms
How to save image in the picturebox for .NET 5.0 WinForms?
Hello: I need to write a C# program to create an image from some text, and I have to center the text in the image. Since I am using Visual Studio 2019 on Windows 10, and I have to use .NET 5.0, so I created one C# WinForms App, and add the…
Developer technologies | Windows Forms
Developer technologies | C#
BindingSource filter ignored
I have a DataGridView. I set the DataSource to a BindingSource and the DataSource of the BindingSource is set to a DataTable. I set the Sort property and then the Filter property of the BindingSource. The DataGridView updates the display of the data…
Developer technologies | Windows Forms
Developer technologies | VB
RegistryKey.OpenSubKey does not ALWAYS return an existing value
I have a VB WinForms program that interacts with the Registry. Recently, I have come upon an error, that should not be occurring. Here is the setup to reading the next SubKey: Dim rkLocalMachine, rkCurrentUser, rkSoftware, rkForceware, As…
Developer technologies | Windows Forms
Developer technologies | VB
How to search winform and use paging
Can someone show example or give direction on how to search a WinForms and have a paging button . I will search by date and could have several records for the same date so I need to page through them. I don't have a datagridview it retrieving from a…
Developer technologies | Windows Forms
SQL Server | Other
Developer technologies | C#
EF Core 3.1 get data that updated out of the DbContext
I have this code in my "Department Form" private readonly SIMContext _SIMContext; private Department model; public Frm_Department(SIMContext SIMContext) { InitializeComponent(); …
Developer technologies | Windows Forms
Developer technologies | .NET | Entity Framework Core
SQL Server | Other
Developer technologies | C#

Treeview ChildNode problem
Hi folks, I am having difficulty trying to access child nodes when my form loads. My treeview I have 17 root nodes. Each has root node has several children. Each node has a unique name which is set as design time. o1, o2, o3 ..... o250. In my…
Developer technologies | Windows Forms
C# Winform and developing custom control with design time support
Here i have developed a user control for pagination. it is working fine. now i have decided to put the whole code in custom control template with design time support. i want when user drag that control onto form then some button should be shown with…
Developer technologies | Windows Forms
Developer technologies | C#
WebBrowser Control & Windows 11
The Windows Forms WebBrowser control works on Windows 11 ? Thank you very much !
Developer technologies | Windows Forms
Forms - Access - PowerBi —Best practices?
I am obviously inexperienced in this, so any advice would be greatly appreciated. Basically I want a form that a user can use on their phone/tablet/computer that takes an input. That input gets stored in Access, and then eventually I want to use Access…
Developer technologies | Windows Forms
Community Center | Not monitored
Syntax error (missing operator) in query expression
I am trying to modify a form to use a date range instead of a single date. Here is the original code: Private Sub cmdprt_Click() On Error GoTo Err_cmdprt_Click Dim stDocName As String, stCrit As String stCrit = "[id] <> 0" If Not…
Developer technologies | Windows Forms
C# WinForms App: UDPClient Receive not displaying packets sent from outside network.
Hi, I'm currently making a GUI in Visual Studio 2019 C# WinForms App to receive and parse UDP messages at a defined IPAddress and port. I am able to receive UDP datagrams while receiving on the loopback address 127.0.0.1 just fine, but am unable to…
Developer technologies | Windows Forms
Problems connecting to workspace using Azure Machine Learning SDK for Python
I am trying to connect to my Azure ML workspace using SDK for python, using Virtual Studio Code to do so. After pip installing the needed SDK packages: pip install azureml-sdk pip install azureml-sdk[notebooks,automl,explain] I downloaded…
Developer technologies | Windows Forms
Azure Machine Learning
Wildcard behavior in renaming multiple files
I have been trying to rename files that are listed below E01-pHi10PAAC--62144D67--1-.txt E02-pHi10PAAC--62144D67--1-.txt E03-pHi10PAAC--62144D67--1-.txt ...etc using command line D:\PATH> dir | Rename-Item -NewName {$_ -replace…
Developer technologies | Windows Forms
How to close Microsoft Edge browser's new tab in c# code
Hi, How to run same page in browser, when I stopping and re running a page its displaying in new tab and i don't want to display in new tab and I want to display in same page and I'm working on windows form application in c# .net. Can u please suggest…