24,061 questions with .NET-related tags

Sort by: Updated
2 answers

Screen display is slow even after executing Form.ShowDialog method

Currently, I am conducting a continuous test to execute a SQL statement in an application created in C #. If the continuous test is performed for about 3 to 4 hours, it will take about 5 seconds to display the screen by executing the Form.ShowDialog…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-11-10T00:47:32.48+00:00
taro 1 Reputation point
answered 2020-11-13T06:22:58.137+00:00
Daniel Zhang-MSFT 9,616 Reputation points
0 answers

SaveFileDialog does not handle longpath format

Targeting core 3.1 on windows 10 Setting a Microsoft.Win32.SaveFileDialog.InitialDirectory = "\?\C:\" results in the error: System.ArgumentException: Value does not fall within the expected range. at at…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-11T15:06:30.77+00:00
Duncan 1 Reputation point
commented 2020-11-13T06:21:58.15+00:00
Tim Roberts 81 Reputation points
1 answer

Is it necessary to have two TCP Socket per client

As I was learning WPF and MVVM, I developed a small Trading Server and 2 type of Clients in WPF. In that application I'd 2 Scoket per client on both Client and Server side, one for Receive and one for Send byte[]. In some places I read that TCP Socket is…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-10T13:27:46.463+00:00
Emon Haque 3,176 Reputation points
commented 2020-11-13T02:01:14.327+00:00
DaisyTian-1203 11,616 Reputation points
3 answers One of the answers was accepted by the question author.

SVG to DataTemplate not working which as PathGeometry

I have 3 Country Flags in SVG , I need to Convert SVG to DataTemplate. Example : France Flag , this is Working <DataTemplate x:Key="France"> <Grid HorizontalAlignment="Stretch"> <Path…

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-10-12T11:42:50.87+00:00
Indudhar Gowda 426 Reputation points
answered 2020-11-12T20:54:36.12+00:00
Agha Khan 161 Reputation points
2 answers One of the answers was accepted by the question author.

How to debug in Visual Studio where there is a timespan feature specified

Hi I am writing a C# wpf app, and there are calls for timers in it and the timer has a timespan feature in it, for example. These timespans's are specified as TimeSpan.FromHours(1). How do I debug these lines to see if the method below it gets…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
944 questions
asked 2020-10-09T07:06:29.727+00:00
Kalpana 286 Reputation points
accepted 2020-11-12T17:38:58.53+00:00
Kalpana 286 Reputation points
3 answers

BluetoothLEDevice PairAsync intermittantly fails

Working on an application that connects to a bluetooth low energy device that requires an initial pairing before the device characteristics and services can be subscribed or read etc. Sometimes the pairing of the device fails, unfortunately, the result…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-06-16T19:40:04.663+00:00
EbbeK 1 Reputation point
commented 2020-11-12T16:35:24.427+00:00
EbbeK 1 Reputation point
0 answers

BLE 4.2 connection failing due to access denied

Hi, We are running into a connection issue on multiple windows 10 computers (regardless of the version) when attempting to connect (pairing/bonding/connecting) to a ble 4.2 device using our wpf application (the issue can also be reproduced with the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-10-30T22:07:11.64+00:00
EbbeK 1 Reputation point
commented 2020-11-12T16:31:05.71+00:00
EbbeK 1 Reputation point
1 answer

ListBox with WrapPanel as ItemPanel does not scroll to top when contents are set

I have a ListBox with a WrapPanel as the ItemPanel. When the ItemsSource is set the ListBox does not go to the top. I have read lots of posts (none of which work) about all sorts of ways to do it. I try to use MVVM and none of the them use that. It…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-09T22:21:24.193+00:00
Lloyd Sheen 1,386 Reputation points
commented 2020-11-12T12:21:44.763+00:00
Lloyd Sheen 1,386 Reputation points
0 answers

WPF DefaultStyleKey vs DefaultStyleKeyProperty.OverrideMetadata

What is the difference between these static XXXXXXX() { DefaultStyleKeyProperty.OverrideMetadata(typeof(XXXXXXX), new System.Windows.FrameworkPropertyMetadata(typeof(XXXXXXX))); } and public XXXXXXX() { …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-11T14:38:52.33+00:00
Alvaro Rivoir 6 Reputation points
commented 2020-11-12T03:05:14.817+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

Click Once application fails to fully launch when certain other applications are running

Our click once application runs fine if everything else on the workstation is closed. When certain other applications, including Amazon Music and Visual Studio Code (when VS Code has updates available), are running the main window for our application…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-11-06T21:44:20.547+00:00
Questys Randy 1 Reputation point
commented 2020-11-12T02:59:45.73+00:00
Tianyu Sun-MSFT 27,431 Reputation points Microsoft Vendor
1 answer

C# Win Form Design - Form design bottom edge not coming properly in Laptop resolution

I am facing one more issue. bottom curve edge not coming properly in my laptop resolution. the same alignment will be working in desktop properly. but, when i am checking the form at my laptop then the bottom edge is not coming properly. when i…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-11-10T15:10:04.59+00:00
Gani_tpt 1,586 Reputation points
answered 2020-11-11T05:54:21.767+00:00
Daniel Zhang-MSFT 9,616 Reputation points
1 answer

[wpf] how can l output a bitmap form System.Windows.Controls.Image

This is my Code: <Grid> <Image x:Name="img" Source="xxx.png" Stretch="Fill"> **<Image.Clip> <PathGeometry> …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-10T09:55:07.73+00:00
Whiskey X 1 Reputation point
answered 2020-11-11T05:33:34.96+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

(WPF) Textbox problem when creating a spell check using hunspell

I am trying to create a spellcheck solution using Hunspell. I want to make it like the spell check function provided by MS. Richtextbox has already succeeded, but textbox fails to display red underlines in misspelled words. In other words, I want to know…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-10T08:53:03.373+00:00
이지케어텍 21 Reputation points
commented 2020-11-11T04:40:58.943+00:00
이지케어텍 21 Reputation points
1 answer One of the answers was accepted by the question author.

Replacing all ToolTips with a custom ToolTip in WPF

For example, let's say I have this element: <Button ToolTip="Click here!" /> Instead of the ToolTip being the default WPF ToolTip, can I define a style/template that will replace all default ToolTips with a custom one? Maybe…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-05T16:32:47.413+00:00
Knox 26 Reputation points
accepted 2020-11-10T21:48:21.023+00:00
Knox 26 Reputation points
1 answer

Refresh Combobox Items list and seleceted item with unchanged bounded source/property

Hello, i have a project where i want to switch the language at runtime (german, english). I decided to use System.Globalization and ConverterCulture={x:Static sysglb:CultureInfo.CurrentUICulture}. In the following code snippets i extracted and abstracted…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-09T16:29:31.053+00:00
Michael 26 Reputation points
commented 2020-11-10T10:32:57.987+00:00
Michael 26 Reputation points
0 answers

Updating or Adding Only The Relevant Record of WPF DataGrid

Hi All, While going through a sample project in learning WPF Core as I attempted to work with setting up a DataGrid with Updating Buttons' Column on the Window, I found that with code pieces like the following, if I carried out any change, upon…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-08T19:54:51.063+00:00
Faraz Qureshi 116 Reputation points
commented 2020-11-10T01:23:32.817+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

Issue with WPF application becoming unresponsive after plugging or unplugging a USB device supporting pen events

I've run across an issue on Windows 10 where WPF apps seem to become unresponsive when unplugging or plugging in a USB device that registers as an input device that can receive touch/stylus events. This can be seen by creating a basic WPF app in Visual…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-09T22:34:44.277+00:00
Shawn 6 Reputation points
0 answers

Using MediaCapture from WPF Framework class assembly

I have an existing WPF application that needs to make use of the MediaCapture class. The idea is to put the image management in a class assembly so that the same code can easily be used across multiple applications. There are a couple of examples on how…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-09T01:35:50.113+00:00
Richard Haggard 6 Reputation points
commented 2020-11-09T08:48:58.767+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

WPF C# DataGrid ComboBox Column not showing value after scrolling when inserting row and it's not visible

Hello, I have a WPF C# phone numbers application, where registries (people's data) are shown in a DataGrid. One of its columns is ComboBox type, and its items are one or more phone numbers, and it shows always the first of them. The issue comes when…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,679 questions
asked 2020-11-09T00:07:48.857+00:00
Pablo The Tiger 26 Reputation points
answered 2020-11-09T03:29:10.643+00:00
DaisyTian-1203 11,616 Reputation points
1 answer One of the answers was accepted by the question author.

C# DataGridView Deleting All Columns

After some time, when using the DataGridView in C#, the Columns are all deleted when trying to re-arrange them. When adding a new column it gives an Error that the column is not a valid identifier.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2020-11-08T20:18:59.333+00:00
Robert Karamagi 96 Reputation points
accepted 2020-11-08T20:20:49.66+00:00
Robert Karamagi 96 Reputation points