1,934 questions with Developer technologies | Windows Forms tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

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
asked 2021-08-13T15:11:43.43+00:00
Luké 21 Reputation points
commented 2021-08-13T22:12:13.187+00:00
David Lowndes 4,726 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2021-08-10T17:42:19.643+00:00
Wilfred Eghenedji 326 Reputation points
commented 2021-08-13T16:30:09.41+00:00
Wilfred Eghenedji 326 Reputation points
2 answers One of the answers was accepted by the question author.

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#
asked 2021-08-06T03:39:31.82+00:00
Sushil Agarwal 406 Reputation points
accepted 2021-08-12T12:17:43.73+00:00
Sushil Agarwal 406 Reputation points
1 answer

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
asked 2021-07-22T09:23:19.807+00:00
wisekat 1 Reputation point
commented 2021-08-12T07:15:29.463+00:00
Daniel Zhang-MSFT 9,656 Reputation points
1 answer

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
asked 2021-08-11T04:05:04.067+00:00
BR 1 Reputation point
commented 2021-08-12T04:20:01.29+00:00
BR 1 Reputation point
1 answer

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
asked 2021-08-06T06:20:04.883+00:00
Santosh P 1 Reputation point
commented 2021-08-11T07:17:57.8+00:00
Daniel Zhang-MSFT 9,656 Reputation points
1 answer One of the answers was accepted by the question author.

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#
asked 2021-08-10T09:22:48.93+00:00
john zyd 421 Reputation points
accepted 2021-08-10T14:51:08.727+00:00
john zyd 421 Reputation points
0 answers

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
asked 2021-07-24T20:52:36.647+00:00
James Buss 136 Reputation points
commented 2021-08-10T06:53:00.927+00:00
Anonymous
0 answers

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
asked 2021-08-06T18:07:24.077+00:00
Paul Goldstein 116 Reputation points
commented 2021-08-09T08:14:05.987+00:00
Xingyu Zhao-MSFT 5,381 Reputation points
2 answers

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#
asked 2021-04-23T15:59:33.177+00:00
Booney 166 Reputation points
commented 2021-08-09T07:39:12.43+00:00
Dion fitzgerald 1 Reputation point
2 answers

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#
asked 2021-08-05T08:53:07.047+00:00
Mahfoud Bouabdallah 26 Reputation points
commented 2021-08-09T06:58:09.117+00:00
Daniel Zhang-MSFT 9,656 Reputation points
2 answers

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
asked 2021-07-29T10:20:37.467+00:00
John Noble 1 Reputation point
answered 2021-08-08T20:19:39.387+00:00
Adnan Dedic 406 Reputation points
1 answer One of the answers was accepted by the question author.

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#
asked 2021-08-02T16:46:48.257+00:00
T.Zacks 3,996 Reputation points
commented 2021-08-08T06:15:47.463+00:00
T.Zacks 3,996 Reputation points
2 answers

WebBrowser Control & Windows 11

The Windows Forms WebBrowser control works on Windows 11 ? Thank you very much !

Developer technologies | Windows Forms
asked 2021-06-28T19:29:21.833+00:00
Manuel Marini 6 Reputation points
answered 2021-08-06T12:27:20.017+00:00
Ralph Welz 6 Reputation points
1 answer

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
asked 2021-07-31T02:03:38.867+00:00
smallshirtjr 1 Reputation point
answered 2021-08-04T23:08:18.537+00:00
Ehren (MSFT) 1,781 Reputation points Microsoft Employee
2 answers

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
asked 2021-08-03T19:56:50.737+00:00
Jessica Dellario 1 Reputation point
answered 2021-08-04T19:57:27.64+00:00
Jessica Dellario 1 Reputation point
4 answers

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
asked 2021-01-04T13:44:27.327+00:00
Linden Vo 1 Reputation point
answered 2021-08-03T15:49:32.717+00:00
QA Automation Training 1 Reputation point
5 answers One of the answers was accepted by the question author.

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
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,340 questions
asked 2020-11-22T22:10:56.563+00:00
Rachael Fletcher 26 Reputation points
commented 2021-08-03T11:43:26.093+00:00
Lauri Lehman 146 Reputation points
1 answer

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
asked 2021-08-01T03:01:56.167+00:00
Anonymous
commented 2021-08-02T21:37:30.61+00:00
Anonymous
1 answer

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…

Developer technologies | Windows Forms
Developer technologies | C#
asked 2021-08-02T13:27:25.953+00:00
Rakesh kumar 106 Reputation points
answered 2021-08-02T14:13:30.513+00:00
Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator