24,964 questions with .NET-related tags

Sort by: Updated
1 answer

Displaying a WPF Window from ViewModel in C#

I have a C#/WPF app based on MVVM pattern. The app has a window with a tool bar. On clicking a button on this toolbar, I need to show a Window like a settings window. The toolbar button is bound to a command that should load the settings window. I have…

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,710 questions
asked 2020-08-14T07:52:57.84+00:00
winprofessional 41 Reputation points
answered 2020-08-16T07:30:13.053+00:00
Peter Fleischer (former MVP) 19,316 Reputation points
1 answer One of the answers was accepted by the question author.

How do I have to adjust the settings to create both variants (x86/x64) or just x64?

Hello, How do I have to adjust the settings to create both variants or just x64? At moment AnyCPU and is only x86

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,710 questions
asked 2020-08-14T09:10:57.027+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-16T06:50:34.277+00:00
Markus Freitag 3,786 Reputation points
1 answer One of the answers was accepted by the question author.

Does System.Text.Json Deserialize into DataTable?

Hello .Net Gurus - I have checked MS Documentation and I couldn't find any example of serialize json data using System.Text.JSON into DataTable. I have .Net Framwork 4.7.2 and did install the System.Text.Json NuGet package. The desrialization is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,870 questions
asked 2020-08-13T21:11:57.34+00:00
Khushi Shaikh 86 Reputation points
commented 2020-08-14T15:31:43.253+00:00
Khushi Shaikh 86 Reputation points
0 answers

FilgraphManagerClass Freeze in windows Form Application

My Windows form Application got freeze while creating an instance of FilgraphmanagerClass The problem occurs when I click menubar on the picture box panel and when the video trying to start it tries to create an instance of FilgraphManagerClass and got…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,870 questions
asked 2020-08-08T18:00:47.763+00:00
Muhammad Asad Ashraf 1 Reputation point
commented 2020-08-14T09:55:49.72+00:00
Daniel Zhang-MSFT 9,621 Reputation points
7 answers One of the answers was accepted by the question author.

WPF, ComboBox, Tooltip or text, return value should be int or enum

Hello, <ComboBox Name="cbStatus" HorizontalAlignment="Left" Margin="660,13,0,0" VerticalAlignment="Top" Width="48" SelectionChanged="CbStatus_SelectionChanged"> …

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,710 questions
asked 2020-08-11T08:20:07.04+00:00
Markus Freitag 3,786 Reputation points
answered 2020-08-14T06:15:44.92+00:00
Markus Freitag 3,786 Reputation points
2 answers One of the answers was accepted by the question author.

Which .Net Framework needed to use System.Text.Json

Hello .Net Gurus - I am working in Windows forms where I am receiving data in JSON format from a web service. I need to de-serialize into DataSet. I have come accross with System.Text.JSON. Currently I have 4.5.2 .NET Framework. Which .Net Framework…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,870 questions
asked 2020-08-12T16:46:07.737+00:00
Khushi Shaikh 86 Reputation points
answered 2020-08-13T19:26:23.683+00:00
Khushi Shaikh 86 Reputation points
1 answer One of the answers was accepted by the question author.

Uploading Files on MS Forms takes too much time

My teacher took a test on MS Forms where we had to upload a file (2 in fact). But when we attached the file it just kept showing "loading". It never got uploaded, and we couldn't submit the form. How do I fix this? Is it a problem from my…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,870 questions
asked 2020-08-13T05:58:42.743+00:00
Samyukta Sreekanth -Student 21 Reputation points
commented 2020-08-13T07:06:58.747+00:00
Samyukta Sreekanth -Student 21 Reputation points
1 answer One of the answers was accepted by the question author.

SOS What&#39;d I Do!

hi, What can I do to diagnose any and all issues I'm having with my pc? Info. that I could clearly explain to someone trying to help me fix it. Half my prob is not being able to explain the issue. Thank you in advance.

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,710 questions
asked 2020-08-11T17:24:18.257+00:00
RyRy 21 Reputation points
commented 2020-08-12T18:09:55.563+00:00
MotoX80 32,736 Reputation points
1 answer

Windows App Certification Test Kit Failing

When I am running the test kit on my Windows App Certification Kit my application is failing in just one area. The error message I get from the Windows App Certification Test Kit is that my exe file "is marked as either…

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,710 questions
asked 2020-08-05T12:32:15.82+00:00
T1000 6 Reputation points
commented 2020-08-12T12:23:52.7+00:00
T1000 6 Reputation points
3 answers One of the answers was accepted by the question author.

How to set value of a textbox field in UserControlA from UserControlB

Hi I have a got a window that has UserControl A. This User Control A contains a TextBoxUCA field. I have got another UserControl, which is named as UserControlB. I would need to set the value TextBoxUCA from UserControlB. How can I achieve that, so…

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,710 questions
asked 2020-08-06T08:23:32.253+00:00
Kalpana 286 Reputation points
commented 2020-08-12T03:55:37.243+00:00
Kalpana 286 Reputation points
1 answer One of the answers was accepted by the question author.

C# - WPF App static - class or only function

Hello, a) public static class Logger { public static void Write(string message) => Log.Write(message); public static void Close() => Log.Close(); private static LogIntern Log = new LogIntern(); public…

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,710 questions
asked 2020-08-04T14:00:49.227+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-10T13:29:27.867+00:00
Markus Freitag 3,786 Reputation points
0 answers

How do I show "Finished installing" notification after silently installing apps with InPlaceHostingManager

I have used InPlaceHostingManager to install one or several apps silently on the client-side. And now I want them to know when it finishes installing so they can start using it. I don't plan on using any progress bar or anything, just needed to install…

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,710 questions
asked 2020-08-04T06:42:11.56+00:00
Enkhbold Munkhbold 136 Reputation points
commented 2020-08-10T06:21:28.547+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

Screen DPI vs Printer DPI

Generally printers may have better dpi rating than screen dpi. Consider a situation where my screen has 300 dpi and the printer has 600 dpi, I'm wondering if I can take advantage of this when printing from C# WPF app. If I had a box image on the screen,…

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,710 questions
asked 2020-08-01T22:24:32.78+00:00
Matthew Armshaw 21 Reputation points
commented 2020-08-09T22:33:30.583+00:00
Matthew Armshaw 21 Reputation points
1 answer One of the answers was accepted by the question author.

Trigger for one control, set the focus.

Hello, One more questions. A) I have a control, a button and only this button should set the focus on another control of a TextBox after the mouse click. Can't I assign the trigger directly to the control, see code? B) I have…

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,710 questions
asked 2020-08-06T15:02:52.897+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-07T10:44:24.943+00:00
Markus Freitag 3,786 Reputation points
1 answer

C# How to monitor WiFi connection in WPF?

I have a C# WPF desktop application that connects to a camera via WiFi, and downloads pictures to a 'HotFolder'. If the camera is moved too far from the PC, the WiFi disconnects. How can I monitor the WiFi connection?

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,710 questions
asked 2020-08-06T19:16:49.547+00:00
Jeff Nygren 121 Reputation points
answered 2020-08-07T02:56:55.197+00:00
DaisyTian-1203 11,621 Reputation points
0 answers

WPF loading page into frame but missing button?

Hi everyone, I'm creating a very basic application that lets you flick between pages using buttons. It starts off by loading each page onto a frame, however it only seems to be loading the image and not the buttons? Here is my MainWindow.xaml.cs that…

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,710 questions
asked 2020-08-06T17:47:07.35+00:00
Waller, Reece (Student) 1 Reputation point
commented 2020-08-07T01:48:43.633+00:00
DaisyTian-1203 11,621 Reputation points
2 answers One of the answers was accepted by the question author.

Can Windows.Devices.WiFi.WiFiAdapter API be used in a WPF desktop app

From my WPF desktop application, I need to list available WiFi access points, and monitor a WiFi connection. Can this API provide the services I need?

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,710 questions
asked 2020-07-28T13:13:03.72+00:00
Jeff Nygren 121 Reputation points
commented 2020-08-06T19:00:31.3+00:00
Jeff Nygren 121 Reputation points
2 answers One of the answers was accepted by the question author.

Trigger, Datatrigger - what's the difference?

Hi , my goal is select the first row inside the Datagrid. Works well with MoveCurrentToFirst. Only if the control get the focus is it blue. Is there a way to control it from the code? And if the focus is the DataGrid, the default…

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,710 questions
asked 2020-08-06T05:55:32.053+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-06T13:45:16.57+00:00
Markus Freitag 3,786 Reputation points
1 answer

how make a program to manage the PC

Hello. I want to make a program to manage the PC. Like screensavers, active directories. Q1. Only authorized users can use the PC. The lock screen is displayed and the lock is unlocked online with the specified ID and PW. When the usage time…

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,710 questions
asked 2020-07-31T01:25:55.047+00:00
Victor Jo 1 Reputation point
commented 2020-08-06T07:11:13.747+00:00
Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

C#, WPF Desktop, set focus to a textbox after mouse button click

Hello, Is there a way to set the focus on a TextBox control after a mouse click on a button? Right now, I'm taking the long way around. Button click. Delete Textbox Set the focus because length is 0, but works well.

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,710 questions
asked 2020-08-05T06:28:42.077+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-08-06T06:45:47.167+00:00
Markus Freitag 3,786 Reputation points