Microsoft Q&A

.NET

20,645 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,645 questions with .NET-related tags

Sort by: Updated
0 answers

Can AnchorTagHelper specify different controllers with the same name?

I have multiple controllers with the same name in different namespaces. To explain clearly what I want to do, I first briefly show part of my code. I created a ViewLocationExpander class. Its main function is to automatically find the view corresponding…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,560 questions
asked 2023-09-21T00:59:44.6833333+00:00
刘琦 0 Reputation points
edited a comment 2023-09-26T08:05:34.1133333+00:00
Ping Ni-MSFT 75 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

MAUI: Dependency injection is not working

I have a dependency injection in my project for getting the device unique id. It is working fine in my xamarin forms project, but when I add it on my MAUI project the result is blank. My code IDevice public interface IDevice { string…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,859 questions
asked 2023-09-25T15:21:44.31+00:00
Sreejith Sreenivasan 371 Reputation points
accepted 2023-09-26T08:01:54.0133333+00:00
Sreejith Sreenivasan 371 Reputation points
1 answer One of the answers was accepted by the question author.

VS2022 C# rdlc(report view) can't display data in some cells

I using VS2022 C# RDLC(report viewer), the running result can't display data in some cells , but I can view the data record in the sql query analyzer; Please refer to the following figure for details, I can't found the reason,help me please, thank you…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,973 questions
asked 2023-08-16T08:30:40.8033333+00:00
pxesoft198007 20 Reputation points
accepted 2023-09-26T07:49:09.01+00:00
pxesoft198007 20 Reputation points
2 answers

Return values from a form

Hi , Which is the best technique to return values from a form and use that in another form . like using a variable or some other way . for example , i have a form with a textbox which returns a value . i want to use that value in the textbox of other…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,973 questions
asked 2023-09-22T09:26:05.5166667+00:00
Shaifali jain 200 Reputation points
commented 2023-09-26T07:47:40.0233333+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
2 answers

Failing to save and display Save and display Images from sql Table in ASP .Net

I am creating a web application in ASP .Net, and I want to save and display pictures from an SQL table. I need help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,635 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.
10,946 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T11:44:47.3533333+00:00
Lumbo Chenge bin 20 Reputation points
answered 2023-09-26T07:38:38.4+00:00
Lan Huang-MSFT 17,806 Reputation points Microsoft Vendor
1 answer

can't perform middle click on a NotifyIcon

Hello. The problem is when the middle mouse has been clicked on the tray the program always sees it like the left one has been. Creating a new notifyIcon control gives the same result. There is the same problem in other projects. Middle click is normally…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
asked 2023-09-15T14:55:33.7366667+00:00
ms account 0 Reputation points
commented 2023-09-26T07:26:42.48+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
3 answers

How to get the data from start date to end date

How can I find data from database between two dates. Problem-1. How can I find the data from the database between the two dates if I consider the parameters. Problem-1. If I use date as parameter then my datatable doesn't show data. Problem-2. I want to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,560 questions
asked 2023-09-24T17:33:46.7466667+00:00
jewel 461 Reputation points
answered 2023-09-26T07:26:26.95+00:00
JasonPan - MSFT 2,611 Reputation points Microsoft Vendor
0 answers

How to setup a TabbedPage inside a Flyout after success authentication logic in MAUI?

Is it possible to setup a Tabbed Page inside a Flyout option in MAUI? My code was working fine in XamarinForms, but it is showing some extra white space after the tabbar in MAUI. Tried Code <?xml version="1.0" encoding="utf-8"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,153 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,859 questions
asked 2023-09-25T12:52:09.0066667+00:00
Ajaykumar P 0 Reputation points
edited a comment 2023-09-26T07:15:58.04+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,336 Reputation points Microsoft Vendor
1 answer

issue in opacity of the parent form and panel

Hi , my other problem is there is a scenario in which i have a form named child which is opened inside a panel of a form named father . what i am trying is when i press F2 on my keyboard a new form opens asking for current date . at this moment i want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,973 questions
asked 2023-09-23T11:43:45.1433333+00:00
Shaifali jain 200 Reputation points
commented 2023-09-26T07:15:38.7533333+00:00
Shaifali jain 200 Reputation points
2 answers

Marshal does not contain a definition for GetLastPInvokeError

In Visual Studio 2019 I'm getting complier error CS0117: 'Marshal' does not contain a definition for 'GetLastPInvokeError' My console application project targets .net framework 4.7.2, which should define GetLastPInvokeError according to the docs (.net…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,781 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,043 questions
asked 2023-09-21T17:11:30.6266667+00:00
pWire 0 Reputation points
commented 2023-09-26T07:05:18.97+00:00
Jiale Xue - MSFT 10,381 Reputation points Microsoft Vendor
0 answers

Seeking Assistance for Windows Server 2022 Issue

Dear Community Members, I am currently encountering an issue on my Windows Server 2022 system that requires your expert guidance and assistance. Issue Description: My server has .NET 4.8 features already installed. However, I am facing difficulties while…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
10,577 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,043 questions
asked 2023-09-26T04:37:42.4033333+00:00
Shinaz Fiyaz 0 Reputation points
commented 2023-09-26T07:00:56.5833333+00:00
Jiachen Li-MSFT 19,671 Reputation points Microsoft Vendor
0 answers

Adding currency symbol to gridview bounfield data

Hello, Please is it possible to add a label control to represent currency symbol beside the amount figure in boundfield? *The currency symbol will be fetched from database field and displayed in a label control Just as seen in this image…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,050 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,635 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
619 questions
asked 2023-09-26T06:57:40.0433333+00:00
Donald Symmons 2,006 Reputation points
edited the question 2023-09-26T06:59:59.0766667+00:00
Donald Symmons 2,006 Reputation points
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,859 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 20 Reputation points
commented 2023-09-26T06:48:16.6033333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor
1 answer

How to bind Command in ContextMenuItem

Thanks to @Hui Liu-MSFT and @Peter Fleischer (former MVP) ,now I am able to operate my TreeView and do Drag&Drop on it. Also I can ONLY display ContextMenu by right click on the first level of TreeViewItem, which is required. You can see 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,477 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,973 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
688 questions
asked 2023-09-25T10:08:05.2533333+00:00
BabyHai 41 Reputation points
commented 2023-09-26T06:46:24.0266667+00:00
BabyHai 41 Reputation points
0 answers

Xamarin.forms: How to programatically modify the value of a displayed Display prompt?

Greetings, I am using android devices connected with Bluetooth scanners. I am trying to adapt some code without rewriting the entire page to accommodate for it. Basically, whenever something is scanned, the messaging center detect it and start a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,153 questions
asked 2023-09-25T12:23:06.8+00:00
Jean-Baptiste Delvaux 1 Reputation point
commented 2023-09-26T06:30:34.15+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 53,921 Reputation points Microsoft Vendor
0 answers

Getting error Android Target SDK version 33 in Vs2022 Xamarin Forms

Attribute receiver#com.google.firebase.iid.FirebaseInstanceIdInternalReceiver@exported value=(true) from AndroidManifest.xml:20:89-112 is also present at AndroidManifest.xml:39:93-117 value=(false). Suggestion: add…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,153 questions
asked 2023-09-26T06:22:26.2966667+00:00
Raja Chinnadurai 0 Reputation points
1 answer One of the answers was accepted by the question author.

Property not being set

Hi In my MAUI app I am calling OnItemTapped method from a command. I have implemented IsBusy logic in OnItemTapped to avoid it being executed again until it is done. At the end of OnItemTapped method I am setting IsBusy to false. However IsBusy…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,859 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,973 questions
asked 2023-09-25T02:26:21.6533333+00:00
-- -- 841 Reputation points
accepted 2023-09-26T06:07:26.5466667+00:00
-- -- 841 Reputation points
2 answers

WPF Tabcontrol Resizing Issue

Hi All, I have a Tabcontrol inside grid which is inside WPF page. I want Tabcontrol to resize to complete width and height of page. I have set grid height and width to "*" and horizontalalignment and verticalalignment of tabcontrol to…

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,477 questions
asked 2023-09-25T16:12:14.4066667+00:00
Pratham Jain 161 Reputation points
edited an answer 2023-09-26T05:57:14.5966667+00:00
Hui Liu-MSFT 21,376 Reputation points Microsoft Vendor
0 answers

How to use 'manual entry' as the Input type as default from the TimePicker for Android

Hello After clicking on the TimeEdit opens a popup where the default style looks like this But I want to use 'manual entry' as the Input type the default Please help me ti have an option for this!!!!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,859 questions
asked 2023-09-26T05:45:31.6133333+00:00
Hakob Hovhannisyan 21 Reputation points
0 answers

.NET MAUI Blazor POS App Freezing Issue when Using Physical Barcode Scanner on Android

I'm working on a Point of Sale (POS) application using .NET MAUI and Blazor, specifically targeting Android devices. Everything has been going well so far, but I've encountered a frustrating issue that's got me stumped. Whenever I connect or disconnect a…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,105 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,859 questions
asked 2023-09-25T10:06:55.7933333+00:00
Lasitha Lankajeewa 0 Reputation points
commented 2023-09-26T05:40:48.62+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor