24,167 questions with .NET-related tags

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

WPF - C# Desktop App - set focus, how?

Hello, How can I get the focus to move to the text field xy after an event? How can I achieve that after an event the focus is automatically set on button A or button B? In case of success, move on or in case of error MessageBox and stay in 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,685 questions
asked 2020-07-28T10:55:57.01+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-29T08:42:57.697+00:00
Markus Freitag 3,786 Reputation points
2 answers

Printing in C# WPF

I am writing a program in C# WPF so I am hoping this is the correct forum. I am having difficulty with xps creation. Please refer to the following link: …

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,685 questions
asked 2020-07-28T18:08:28.26+00:00
Matthew Armshaw 21 Reputation points
answered 2020-07-29T06:56:45.433+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

WPF - C# Desktop App bigger message box for touch screen

Hello, Is there a way, maybe a class, library where the message box can be displayed larger. Background is a touch screen operation?

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,685 questions
asked 2020-07-28T11:26:46.127+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-29T05:44:35.807+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

I use hwndhost to embed a WPF - window. When the allowstransparency of the embedded window is "true", it will not be displayed under windows7

I use hwndhost to embed a window. When the allowstransparency of the window is "true", it will not be displayed under windows7. If the theme of windows7 is set to windows basic, the embedded window can be realized, but the display position will…

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,685 questions
asked 2020-07-24T02:04:22.887+00:00
陶陶 张 1 Reputation point
commented 2020-07-29T02:06:08.217+00:00
陶陶 张 1 Reputation point
2 answers

DataGrid bindings to a list of complex dataTypes WPF(xaml)

Hello, I have class contains List as Property that contains another class object as its property. Please find the class structure below which i have to bind to a datagrid/any control in wpf. public class EmployeeDetails { /// <summary> ///…

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,685 questions
asked 2020-07-26T06:05:12.157+00:00
One07k-4914 101 Reputation points
answered 2020-07-28T03:41:14.46+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

Adding encrypted file into a database and retrieving them

Hi, I'm trying to write an encrypted XML file into a database table and also read from it. I use Microsoft SQL server management studio 18 and have a very basic database with a table containing XML digital signature file in one of its columns as…

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,685 questions
asked 2020-07-22T01:29:27.87+00:00
Enkhbold Munkhbold 136 Reputation points
accepted 2020-07-28T03:01:54.197+00:00
Enkhbold Munkhbold 136 Reputation points
0 answers

WPF - C# Desktop App - DateGrid - IValueConverter

Hello, The converter is pretty powerful and I can do a lot with it. Perhaps this mechanism is an advantage over WinForms. When and why do I need this line? That would be the question of this thread. [ValueConversion(typeof(string),…

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,685 questions
asked 2020-07-26T15:36:32.44+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-27T07:38:33.88+00:00
DaisyTian-1203 11,616 Reputation points
3 answers One of the answers was accepted by the question author.

WPF - C# Desktop App - DateGrid - TextAlignment Center for the cells

Hello, <DataGrid Grid.Column="1" ItemsSource="{Binding View2}" IsReadOnly="True" AutoGenerateColumns="False" Margin="54,669,429,22"…

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,685 questions
asked 2020-07-25T19:32:32.653+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-27T06:21:55.41+00:00
Markus Freitag 3,786 Reputation points
2 answers One of the answers was accepted by the question author.

How to set DataGrid styles when using DataTable as data resources

Hi, guys. When I use ObservableCollection<T> as the data resource for DataGrid, I need to bind each column with a field and can set styles for the column as well. However, when use DataTable as the data resource for DataGrid, I just need to bind…

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,685 questions
asked 2020-07-24T03:31:07.807+00:00
Fanhua Kong 241 Reputation points
commented 2020-07-27T04:20:18.427+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer One of the answers was accepted by the question author.

wpf RadioButton control

hello, I have a ****.png picture. I want to turn the content into pictures. Who can help me.... thanks c# code : <RadioButton GroupName="Group_1" Name="Option_1" Content="Test" Visibility="Visible"…

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,685 questions
asked 2020-07-20T06:58:10.807+00:00
929Free 281 Reputation points
accepted 2020-07-27T02:55:17.66+00:00
929Free 281 Reputation points
6 answers One of the answers was accepted by the question author.

WPF - C# Desktop App - Ellipse - background depend from state

Hello, <Ellipse Grid.Column="1" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="100" Margin="926,664,0,0" Stroke="Black" VerticalAlignment="Top" Width="100"/> I…

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,685 questions
asked 2020-07-25T19:37:22.457+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-26T18:30:12.13+00:00
Markus Freitag 3,786 Reputation points
7 answers One of the answers was accepted by the question author.

Log Assembly for C#

Hello, I need a tool that creates log files for me without blocking the application should be done in parallel. Furthermore I need to be able to store the log file in this format. <NameOfApplication><YYYY-MM-dd>.log If the size…

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,685 questions
asked 2020-07-09T09:41:58.343+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-25T14:31:34.013+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers

WPF binding with List of object but index as row and columns

Hallo Ok we are new to WPF and realised the old DataTable with link as datasource to a datagridView is not possible. So populated our data in a List of Objects but the objects can be variable based on data we recieve from SQL, the dataGrid needs…

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,685 questions
asked 2020-07-23T07:08:26.813+00:00
jacques labuschagne 1 Reputation point
answered 2020-07-24T09:29:37.973+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers One of the answers was accepted by the question author.

AxMSComctlib and MSComctlLib Evolution

Hello, thanks for reading! I am upgrading a old app from Vb6 to VB.net (WPF application), and I would like to know what became the AxMSComctllib and MScomctlLib, did they had an upgrade and changed name? did they got integrated in another wider…

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,685 questions
asked 2020-07-22T13:57:27.407+00:00
Théo Bainée 21 Reputation points
accepted 2020-07-23T06:51:17.73+00:00
Théo Bainée 21 Reputation points
1 answer

How to make WPF TabControl‘s first TabItem on the left and others on the right?

How to make WPF TabControl‘s first TabItem on the left and others on the right?

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,685 questions
asked 2020-07-23T02:35:44.617+00:00
ZCShou 1 Reputation point
answered 2020-07-23T06:51:00.237+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

Ensuring Windows Server 2016/2019 Is Properly Configured to Accept Requests from an FTP Client

I have a C# program that makes it easy to transfer files using the ftp protocol. It works fine on Server A. But on Server B it throws an exception after the data channel is "connected," at the point where it tries to "connect" 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,685 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,234 questions
asked 2020-07-20T12:14:54.41+00:00
Mark Rockman 131 Reputation points
commented 2020-07-21T13:57:04.093+00:00
TimCerling(ret) 1,156 Reputation points
3 answers One of the answers was accepted by the question author.

Binding MVVM backcolor textbox

Hello, I need this feature. Is the textbox empty the backcolor should be 'light red' Is the textbox string length > 0 empty the backcolor should be 'light green' Please help me, how I can solve it. Thanks a lot.

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,685 questions
asked 2020-07-17T06:07:00.027+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-18T14:57:06.31+00:00
Markus Freitag 3,786 Reputation points
3 answers One of the answers was accepted by the question author.

C# WPF Access from ViewModel to MainWindow

Hello, I have this. public class ViewModel : INotifyPropertyChanged { The goal is to get access from ViewModel to MainWindow. So I can change the color and so one. public partial class MainWindow : Window { public MainWindow() …

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,685 questions
asked 2020-07-16T12:48:30.113+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-18T14:04:10.063+00:00
Markus Freitag 3,786 Reputation points
1 answer One of the answers was accepted by the question author.

How I can call a Init() function from my ViewModel?

Hello, How I can call a Init() function from my ViewModel? <Grid DataContext="{StaticResource vm}"> What is different with StaticResource and without? I need without static, then the list works not. public partial…

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,685 questions
asked 2020-07-14T10:13:10.147+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-07-18T13:59:57.497+00:00
Markus Freitag 3,786 Reputation points
0 answers

How I can insert the Window Close Event in my ViewModel?

Hello, How I can insert the Close Event in my ViewModel? How I can access for all classes for my own Logger? public partial class MainWindow : Window { //public Logger Log; public MainWindow() { …

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,685 questions
asked 2020-07-15T12:41:55.56+00:00
Markus Freitag 3,786 Reputation points
commented 2020-07-17T07:57:37.653+00:00
Peter Fleischer (former MVP) 19,231 Reputation points