24,564 questions with .NET-related tags

Sort by: Updated
1 answer

how create popup info to dispaly related data

Hi All. I have DataGrid that has context menu to call other form for add related data to selected item. Now I would like to create popup DataGrid in mouseover event on selected DataGrid item to display data that related to it. That gives information…

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,696 questions
asked 2020-09-16T18:29:05.507+00:00
zleug 61 Reputation points
commented 2020-09-21T07:47:25.58+00:00
DaisyTian-1203 11,616 Reputation points
2 answers

Capturing selection change / click inside WPF ListView / MVVM

Hi, I am trying to get the selection change inside a WPF ListView using Interaction.Triggers. I have only included just the basic XAML for now. But I am getting error in XAML as well as in code. XAML : The name interaction does not exist in namepace…

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,696 questions
asked 2020-09-20T12:25:43.187+00:00
winprofessional 41 Reputation points
answered 2020-09-21T03:09:12.147+00:00
DaisyTian-1203 11,616 Reputation points
2 answers

C# How to find out if a form is running

Hi, folks. I have a form application in C# (I use Visual Studio) that has two items in a menu. Both of them show the same form, but with different data. They access different tables in the database. If the user clicks in one of the menu items, the form…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
asked 2020-09-17T01:00:21.713+00:00
Ismael Oliveira 1 Reputation point
commented 2020-09-21T02:47:01.587+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer

Putting a space in a WPF application name

I have created a WPF project named "MyApplication" because if you put a space it creates a weird namespace. However, I want my executable to be "My Application". Where can I make this happen and will changing it from…

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,696 questions
asked 2020-09-15T20:08:58.277+00:00
n0kx 1 Reputation point
commented 2020-09-21T01:39:23.723+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

How do I make validation rules work with two controls, Part 2 of 2

(Part 1 is here: https://learn.microsoft.com/en-us/answers/questions/94723/how-do-i-make-validation-rules-work-with-two-contr.html) I'm not sure this will help, but here's the code to the validation rule class I've defined: using System; using…

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,696 questions
asked 2020-09-14T18:00:16.117+00:00
Rod At Work 866 Reputation points
answered 2020-09-21T01:25:44.787+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

Winform Project and remote debugging

I have a winform project which i publish a centralize folder and user install application from that folder. so when i update any functionality and give publish then user gets update when they run their application. Please tell me how could i connect my…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
asked 2020-09-18T17:14:49.18+00:00
Sudip Bhatt 2,271 Reputation points
answered 2020-09-18T18:07:14.69+00:00
David Lowndes 4,711 Reputation points
0 answers

How do I make validation rules work with two controls, Part 1 of 2

I've got a textbox that's within a border. The idea I'm trying to do is validate that the data entered by the user. I've done this with other controls (a DatePicker control and another textbox) but in those cases it wasn't validation, it was other things…

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,696 questions
asked 2020-09-14T17:57:32.193+00:00
Rod At Work 866 Reputation points
commented 2020-09-18T15:11:10.063+00:00
Rod At Work 866 Reputation points
1 answer One of the answers was accepted by the question author.

WPF Checkbox Control change size

Hello, I want to change checkbox size. who can help me? thanks XAML: <CheckBox x:Name="CheckAllBtn" Content="ALL" Canvas.Left="13" Canvas.Top="182" FontSize="36" Width="109"/>

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,696 questions
asked 2020-09-17T06:59:36.503+00:00
929Free 281 Reputation points
commented 2020-09-17T07:57:11.027+00:00
DaisyTian-1203 11,616 Reputation points
3 answers One of the answers was accepted by the question author.

WPF C# Desktop App - Build date from the application

Hello, private void MainWindow_Loaded(object sender, RoutedEventArgs e) { CurrentViewModel = (ViewModel)(this.Resources["vm"]); CurrentViewModel.InitFromMainWindow(); this.Title = "Setting…

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,696 questions
asked 2020-09-15T14:32:16.763+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-09-17T05:46:15.383+00:00
Markus Freitag 3,786 Reputation points
1 answer One of the answers was accepted by the question author.

C# Version - increase the last number

Hello, How can I have the compile number counted up and output at each compile? Like this V1.0.0.000001 Next Like this V1.0.0.000002 Next Like this V1.0.0.000003

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,696 questions
asked 2020-09-16T07:46:04.97+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-09-17T05:45:11.213+00:00
Markus Freitag 3,786 Reputation points
0 answers

Hosting WCF service in a mixed Iaas and Saas scenario

Hello, I currently have a WCF backend in a Windows service exposed via net.pipe for an ASP.NET web application, on premise. I would like to move to Azure. is it possible to install the WCF service on one or more servers (Iaas), expose the WCF services…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,533 questions
asked 2020-09-16T13:24:17.933+00:00
Roberto Garavaglia 21 Reputation points
commented 2020-09-17T02:04:53.157+00:00
Peng Ding-MSFT 91 Reputation points
1 answer One of the answers was accepted by the question author.

How to group procedures and reuse - ViewModel

Hi Peter, How to group procedures on line 4, 5 and 6 into one method and reuse it at its original place (line 4, or 5 or 6 ) and on line 26. Thanks class Pages_ViewModel : ICommand, INotifyPropertyChanged { public Color Tb3BackgroundColor {…

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,696 questions
asked 2020-09-15T17:26:21.81+00:00
jennyliu835 221 Reputation points
commented 2020-09-16T22:32:51.333+00:00
jennyliu835 221 Reputation points
2 answers

Why am getting a CS0103 error on GetValue/SetValue, but in another class it doesn't raise that error?

I'm trying to define a DependencyProperty in a viewmodel class. Here's what I've got: public static readonly DependencyProperty SolutionIDProperty = DependencyProperty.Register("SolutionID", typeof(long), typeof(SolutionViewModel)); 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,696 questions
asked 2020-09-14T16:56:38.75+00:00
Rod At Work 866 Reputation points
answered 2020-09-16T08:08:47.383+00:00
DaisyTian-1203 11,616 Reputation points
1 answer

Can an Event Handler Remove Itself

I want to limit a mouse event to be handled only once. I assign the event handler by responding to a Button Click: Private Sub PreparePoint(sender As Object, e As RoutedEventArgs) Handles btnPoint.Click AddHandler Map.MouseLeftButtonDown, AddressOf…

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,696 questions
asked 2020-09-13T14:54:35.79+00:00
RogerSchlueter-7899 1,236 Reputation points
commented 2020-09-16T05:18:57.417+00:00
DaisyTian-1203 11,616 Reputation points
2 answers One of the answers was accepted by the question author.

How to get selected text in combobox.

WPF form has ComboBox where null value associated text "-- Please select --". I tryed ComboBox1.Text. It gives wrong value. How to extract selected text from selected combobox item? Thanks.

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,696 questions
asked 2020-09-14T20:12:31.407+00:00
zleug 61 Reputation points
commented 2020-09-16T03:45:25.68+00:00
zleug 61 Reputation points
3 answers One of the answers was accepted by the question author.

How can I see a list of all my Questions ?

Hello & Thanks ; Pls , how can I see a list of all my Questions ? Thanks

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
asked 2020-09-15T20:44:34.107+00:00
vmars316 621 Reputation points
commented 2020-09-16T00:30:13.627+00:00
WayneAKing 4,921 Reputation points
6 answers One of the answers was accepted by the question author.

vs 2019 vb.net .vb How to capture a MouseUp event in WebBrowser1.

Hello & Thanks ; I am trying to capture a MouseUp event in WebBrowser1. . But the two codes I have don't work : Pls , what am I doing wrong ? Thanks for your Help... Code1: Private Sub WebBrowser1_MouseUp(ByVal sender As Object, ByVal…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
asked 2020-09-12T21:12:33.42+00:00
vmars316 621 Reputation points
answered 2020-09-15T20:42:09.213+00:00
vmars316 621 Reputation points
2 answers One of the answers was accepted by the question author.

How to find my textBox1 on the DesignForm ?

Hello & Thanks ; I cant find my textBox1 on the DesignForm anymore . Somehow it got shoved off the Form1 . It shows up when I run the programsm but not in Design . There must be a list Controls screen somewhere . Pls , what would…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
asked 2020-09-09T23:22:50.447+00:00
vmars316 621 Reputation points
accepted 2020-09-15T20:37:46.913+00:00
vmars316 621 Reputation points
3 answers One of the answers was accepted by the question author.

Is it possible to share Storyboards - cont.

Hi Peter, TB1 works perfectly, need further help with TB2 and TB3. 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,696 questions
asked 2020-09-12T16:13:31.43+00:00
jennyliu835 221 Reputation points
commented 2020-09-15T19:05:45.393+00:00
jennyliu835 221 Reputation points
1 answer

How to bind a checkedlistbox to a combobox and a textbox at the same time in C#?

I have a database in ms access. I have connected it to C#. The user needs to select a crane type through a combobox. The moment that the user selects the item in the combobox I want to have some items related to that choice in a checkedlistbox, which I…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,864 questions
asked 2020-09-14T16:18:46.927+00:00
Ramtin 1 Reputation point
answered 2020-09-15T09:56:21.56+00:00
Daniel Zhang-MSFT 9,621 Reputation points