23,892 questions with .NET-related tags

Sort by: Updated
3 answers

WPF Core Clipboard question

Hi, for weeks I try to transform a ms Access data table with a so called rich text field (witch is actually HTML ) to a rtf format that can be used in a SQLdatabase table and edited in a WPF richtextbox. I can do it manually by loading my rich text…

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,672 questions
asked 2020-10-04T10:30:12.697+00:00
Rob Warning 1 Reputation point
answered 2020-10-09T09:10:27.263+00:00
Rob Warning 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to get the Actual Height of content ListBox in FixedDocument

Looks like FixedDocument is the way to go to have multi-paged formatted document with rolling page subtotal. Since I'm still in the process of figuring out how to add page subtotal all my code is in one function print. Here're the steps: get 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,672 questions
asked 2020-10-08T16:11:50.46+00:00
Emon Haque 3,176 Reputation points
accepted 2020-10-09T08:31:51.537+00:00
Emon Haque 3,176 Reputation points
1 answer One of the answers was accepted by the question author.

C# WPF RegEx - only numbers, digits from 0 to 4 or numbers and letters.

Hello, txtInput.Text = "[)>RS06" + (char)29 + "11V62970814" + (char)29 + "P1234567890" + (char)29 + "16SZZ" + (char)29 + "1P0793" + (char)29 + "6P001" + (char)29 + "Q375RSEOT";…

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,672 questions
asked 2020-10-05T08:57:46.487+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-10-09T05:54:36.193+00:00
Markus Freitag 3,786 Reputation points
4 answers One of the answers was accepted by the question author.

Alignment Troubles with Panel1.Controls.Add(browser)

Hello & Thanks ; Having Alignment Troubles with Panel1.Controls.Add(browser) . And 3 controls in all . When a webpage is displayed (skewed) about 50px below the top and 20px to the right of where it should be . How can I fix this ? …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-10-04T23:34:40.9+00:00
vmars316 621 Reputation points
commented 2020-10-09T03:14:10.293+00:00
Timon Yang-MSFT 9,571 Reputation points
1 answer One of the answers was accepted by the question author.

May printing this FlowDocument be simplified?

I've an ICommand, PrintReport. Its execute function does this: void printReport(object o) { var dialog = new PrintDialog() { CurrentPageEnabled = true, UserPageRangeEnabled = true }; if (dialog.ShowDialog() == true) …

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,672 questions
asked 2020-10-06T12:28:17.717+00:00
Emon Haque 3,176 Reputation points
accepted 2020-10-08T16:35:34.137+00:00
Emon Haque 3,176 Reputation points
1 answer One of the answers was accepted by the question author.

what are the differnces between these two approaches

hi when i'm trying to do something after a window closing what is the differences between these two approaches: approach_1: protected override void OnClosed(EventArgs e) { // TODO base.OnClosed(e); …

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,672 questions
asked 2020-10-07T20:52:25.233+00:00
essamce 621 Reputation points
commented 2020-10-08T12:29:11.353+00:00
Emon Haque 3,176 Reputation points
1 answer One of the answers was accepted by the question author.

app without a window

hi MultiPage the above project just have two pages and no windows. Q1: how this works without window , where the Page control needs a host (frame) ? Q2: when we use user control without code behind file (usercontrol.xaml only) ? (or…

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,672 questions
asked 2020-10-07T10:14:03.397+00:00
essamce 621 Reputation points
commented 2020-10-08T08:39:21.987+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
2 answers One of the answers was accepted by the question author.

OnClosing() or OnClosed() to save settings

hi should i put Properties.Settings.Default.Save(); in OnClosing() or OnClosed() event of the mainwidow and why? and is there a better way to do so, it's my first time to use settings in my app. i'm using c#, VS2019, wpf .netCore3.1 app

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,672 questions
asked 2020-10-06T21:38:25.593+00:00
essamce 621 Reputation points
commented 2020-10-08T08:27:54.663+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer One of the answers was accepted by the question author.

Well Known Text Not Preserving Input Data

I have a set of points that I use to create an instance of WKT: wkt = New StringBuilder("POLYGON((", 512) wkt.Append(MapLocations.Item(0).Longitude).Append(" ").Append(MapLocations.Item(0).Latitude).Append("…

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,672 questions
asked 2020-09-29T21:23:34.09+00:00
RogerSchlueter-7899 1,196 Reputation points
accepted 2020-10-07T20:24:10.4+00:00
RogerSchlueter-7899 1,196 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix Error code 0x800b0100 on windows 10?

Just this last week I received the error code 0x800b0100 and in update history see that Cumulative Update for Windows 10 Version 1511 (KB3140743) failed to install on 07/10/2020 and each day after that I have the same message. Any ideas out there…

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,672 questions
asked 2020-10-07T08:23:45.83+00:00
Eoin Morgan 21 Reputation points
accepted 2020-10-07T12:18:51.147+00:00
Eoin Morgan 21 Reputation points
2 answers

Wpf Checkbox content UnderscoreConverter in ResourceDictionary?

Hi, How to use an UnderscoreConverter for CheckBox CONTENTS in ResourceDictionary? Below doesn't work. <Style TargetType="CheckBox"> <Setter Property="Content"> <Setter.Value> …

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,672 questions
asked 2020-09-10T12:02:05.337+00:00
harry777 61 Reputation points
commented 2020-10-07T05:50:36.65+00:00
DaisyTian-1203 11,616 Reputation points
2 answers

Changing Content of ToggleButton with Style.Triggers only shows "System.Windows.Style" on button

I have a very simple ToggleButton that uses a Trigger to change the content: <ToggleButton> <Style TargetType="{x:Type ToggleButton}"> <Setter Property="Content" Value="Unchecked" /> …

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,672 questions
asked 2020-10-06T18:00:04.673+00:00
Knox 26 Reputation points
answered 2020-10-07T02:41:07.787+00:00
DaisyTian-1203 11,616 Reputation points
0 answers

Is it possible to send data from WPF app to Azure analytics?

Is it possible to send data from WPF app to Azure analytics? If yes, which is the minimum Visualstudio version & .net framework version required ? which are the best analytic services offered by Azure which can used with WPF app?

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
437 questions
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,672 questions
Azure HDInsight
Azure HDInsight
An Azure managed cluster service for open-source analytics.
199 questions
asked 2020-10-01T09:42:53.153+00:00
Hi 1 Reputation point
commented 2020-10-07T00:46:17.98+00:00
MartinJaffer-MSFT 26,026 Reputation points
2 answers One of the answers was accepted by the question author.

Robo Copy to a FTP server

I am trying to send one big file from a windows server to the FPT location through robo copy. I am using the following command:- ROBOCOPY "G:\Backup\full" "\ftp.xyz.com\backup" ABC.bak /Z /R:5 /W:60…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,715 questions
asked 2020-10-05T20:34:43.867+00:00
chuck DM 81 Reputation points
accepted 2020-10-06T21:54:08.56+00:00
chuck DM 81 Reputation points
4 answers

Using 4.5, how to keep Treeview selected item highlighted when it loses focus

When the treeview loses focus the highlight of the selected item disappears . How to keep the highlight?

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,672 questions
asked 2020-10-03T16:17:42.933+00:00
Lloyd Sheen 1,376 Reputation points
answered 2020-10-06T18:45:33.04+00:00
Peter Fleischer (former MVP) 19,231 Reputation points
1 answer One of the answers was accepted by the question author.

File and Print Sharing on Windows 10

When I select "Add a printer" the list of printers added in Active Directory does not populate. I can however, select "The printer I want isn't listed" and then select "Find a printer in the directory" and all printers are…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,128 questions
asked 2020-10-06T07:07:35.197+00:00
Richard puahala 21 Reputation points
accepted 2020-10-06T11:11:21.887+00:00
Richard puahala 21 Reputation points
1 answer

Change the thumb colour of a trackbar in winforms vb.net

Hi, I have a requirement to change the thumb colour of trackbar from blue to orange. Is it possible to change the thumb colour and please give a solution for that.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2020-10-06T05:08:43.303+00:00
cool77bin 1 Reputation point
answered 2020-10-06T07:05:59.453+00:00
Castorix31 81,726 Reputation points
0 answers

How to complie IronPython WPF application to exe?

I create a IronPython WPF project, but how can i complie 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,672 questions
asked 2020-10-03T05:30:27.817+00:00
陈勇潮 1 Reputation point
commented 2020-10-06T07:01:29.96+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

Not able to WCF service reference to MVC project using net.tcp

My project is using MVC with WCF for 5 years and the code hasn't changed much. Recently my laptop got replaced since then I am facing trouble adding a service reference to MY WCF services in my MVC project. Please find the error, IIS configuration and…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
asked 2020-10-03T05:10:54.41+00:00
Sushant Sinha 1 Reputation point
answered 2020-10-06T02:28:13.567+00:00
Peng Ding-MSFT 91 Reputation points
0 answers

receiving emails WPF Application (not forms)

hi all i'm trying to receive emails in my app and am struggling to work out the Xaml window code. i think my back end code works which is as follows private void Button_Click_1(object sender, RoutedEventArgs e) { using (var…

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,672 questions
asked 2020-10-03T21:45:51.377+00:00
darren guest 1 Reputation point
commented 2020-10-05T23:12:15.297+00:00
Emon Haque 3,176 Reputation points