Microsoft Q&A

.NET

20,777 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,777 questions with .NET-related tags

Sort by: Updated
0 answers

How to Fix unhandled exception in windows when closing a secondary window using the close button in the title bar

When Multiple windows are opened using Application.Current.OpenWindow() Closing a window (not the primary application window) using the close button in the title bar (specially when the window is not in the foreground) raises an unhandled…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
3,093 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T08:17:08.5566667+00:00
Ramin Khalili 0 Reputation points
commented 2023-10-04T05:53:46.2133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,481 Reputation points Microsoft Vendor
1 answer

How do I get the FreeTextTable.Rank via Entity Framework

Hi all; I'm able to get a list of records using FreeTextTable in Entity Framework as follows: var EventsSqlWhere = $"SELECT top 200 * FROM FreeTextTable(Events, *, {0}, 200) as t INNER JOIN Events u on u.Id = t.[KEY] ORDER BY t.[RANK]…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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.
11,027 questions
asked 2023-10-01T21:17:12.57+00:00
David Thielen 1,426 Reputation points
commented 2023-10-04T05:46:41.1533333+00:00
Hui Liu-MSFT 21,616 Reputation points Microsoft Vendor
0 answers

Sending email function is not sending email

Hi, My send email function is not working on my emulator or on the mobile from the app store. Am I missing something? Like some permissions etc? private async void SendFeedbackEmail() { try { var…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 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.
9,037 questions
asked 2023-10-04T05:44:13.34+00:00
Matthew Zoljan 80 Reputation points
2 answers

Reducing opacity of swipe images

How do I reduce the opacity of images in a swiper container, except for the image that is swiped to display in the middle? For example, as the images are swiping through, any image that appear in the middle will be clear while the other ones beside will…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 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.
624 questions
asked 2023-10-03T12:11:36.16+00:00
Donald Symmons 2,046 Reputation points
answered 2023-10-04T05:39:40.4266667+00:00
Lan Huang-MSFT 18,036 Reputation points Microsoft Vendor
1 answer

HttpListener used on Xamarin.IOS app. "Safari cant open the page because it couldn't connect to the server" error only on iOS 17 devices.

Our project uses the latest Xamarin and our app has a function that creates a HTTP server to store a html and config file, and we use SfSafariViewController to view the contents on the html file. However, after the release of iOS17, this function does…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 questions
asked 2023-09-20T06:21:25.29+00:00
ZNXJH 0 Reputation points
edited a comment 2023-10-04T05:26:45.9733333+00:00
RAgib Noor 1 Reputation point
0 answers

Maui android screen keyboard for entry when keyboard is showing

Hello all. I use entry handler to prevent keyboard pop when the entry has focused and it works ok but if the keyboard is already showing and I tap the entry field the keyboard still showing and I need to manually hide it. How I can fix that…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T10:01:07.2166667+00:00
Haviv Elbsz 1,311 Reputation points
commented 2023-10-04T05:09:14.94+00:00
Haviv Elbsz 1,311 Reputation points
1 answer

how to remove realm database used in swift iOS in .NET MAUI?

Hello, I rebuild iOS app using .NET MAUI. There was data stored in realm database in iOS app. In MAUI, i want to remove it because it's no longer needed. Is there any way to do that? update Hello I mean that i build MAUI with the same configuration of…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-02T03:18:00.0066667+00:00
Nam Pham 71 Reputation points
edited a comment 2023-10-04T04:37:55.1033333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,651 Reputation points Microsoft Vendor
2 answers

Creating a list with two different tables

I have following two tables Employee and file Path Employee - employeeId is primary key with Identity specification EmployeeId FirstName lastName 1 Mario Gonazales 2 Mario2 Gonazales2 3 …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,591 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.
9,037 questions
asked 2023-10-02T06:09:20.51+00:00
Anjali Agarwal 1,101 Reputation points
edited an answer 2023-10-04T04:28:50.4+00:00
Brando Zhang-MSFT 2,241 Reputation points Microsoft Vendor
0 answers

Emulator error in Visual studio 2022

Hi Team, I am trying to run a Xamarin application using Visual Studio 2022 community. From Android device Manager, I have created an emulator with below configuration - Processor - X86_64 OS - Android 13.0 - API 33 While running it getting below error…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,165 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,831 questions
asked 2023-10-03T17:46:27.84+00:00
salilsingh-9961 221 Reputation points
commented 2023-10-04T04:22:26.1033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,481 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Date in different format

Hi , i am creating a textbox which can display the date , in which the month is in short format . like sept , oct . Any suggestions for that

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,642 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.
9,037 questions
asked 2023-09-29T11:52:18.3633333+00:00
ankit goel 606 Reputation points
commented 2023-10-04T03:52:10.9666667+00:00
Jiale Xue - MSFT 11,441 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Three material Design TextBoxes inside one MaterialDesignFloatingHintTexbox in WPF

I have a MaterialDesignFloatingHintTextBox which displays a "Date of Birth" hint to my users when it is empty. Here is what I want to implement: the TextBox to display three TextBoxes to the user when clicked in like this, so that my users…

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,485 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,831 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.
9,037 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.
695 questions
asked 2023-10-02T08:44:28.02+00:00
Mesh Ka 160 Reputation points
edited a comment 2023-10-04T03:47:26.3133333+00:00
Mesh Ka 160 Reputation points
1 answer

How to subscribe/listen to System.Diagnostics.Metrics based instruments out-of-proc programmatically?

I have bunch of custom metrics created using System.Diagnostics.Metrics. I want to know how to subscribe them for viewing out-of-proc programmatically. I know we have dotnet-counters CLI tool but I have requirement to show it some specific way…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
asked 2023-10-03T16:27:40.2266667+00:00
Ashish Trivedi 0 Reputation points
answered 2023-10-04T03:39:28.6566667+00:00
Jiale Xue - MSFT 11,441 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

use "Application.Current.UserAppTheme = AppTheme.Light" force application theme light, the first line of iphone will disappear when system is dart theme

Application.Current.UserAppTheme = AppTheme.Light; I want to set the application theme light, use the upper line code , but when ios system theme is dark , first line of iphone (time signal..) will display with white textcolor, then will disappear on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-02T14:54:57.8166667+00:00
Fei Xu 390 Reputation points
accepted 2023-10-04T03:13:23.4333333+00:00
Fei Xu 390 Reputation points
1 answer

Modify MVC5 project template so that admin can accept\reject account

Hi, I used the default MVC 5 template to create my project. The project allows a user to create their account (self register): I'd like to modify it so that a user cannot self register. Instead they create their account and an admin needs to either…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
991 questions
asked 2023-10-03T19:38:20.83+00:00
Bill Johnson 1 Reputation point
answered 2023-10-04T02:52:25.5533333+00:00
SurferOnWww 1,136 Reputation points
1 answer

ASP.NET Web Core with .NET Core 7.0 Error While Generating Scaffolding

In an ASP.NET core project built on .NET Core 7.0 I am trying to scaffold the login page with the following steps: I right click on the project, and select Add -> New Scaffolded Item I select Identity and Click on Add Then I choose…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,591 questions
asked 2023-10-03T16:04:46.3866667+00:00
Hochgurtel, Brian D 0 Reputation points
answered 2023-10-04T02:47:44.83+00:00
Zhi Lv - MSFT 27,921 Reputation points Microsoft Vendor
0 answers

sélection de choix de réponse dans un Microsoft Forms

Good morning, I created a Microsoft Forms. In this Forms, there are 5 questions with a drop-down list for answers. And the answers appearing in the list, is the same answer choice for all 5 questions. The user should not be allowed to choose the same…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,642 questions
asked 2023-10-04T02:44:15.9+00:00
vicgazelle 0 Reputation points
1 answer

Customtextbox in customdatagridview

Hi , i have a Created a textbox which when gets the focus , changes its backcolor and forecolor . It also clear out its text when the user presses escape key . Moreover, it also have a custom caret in it which looks like Dos . Is it possible to create a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,642 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.
9,037 questions
asked 2023-09-29T12:07:32.6766667+00:00
ankit goel 606 Reputation points
commented 2023-10-04T02:35:02.36+00:00
Jiale Xue - MSFT 11,441 Reputation points Microsoft Vendor
2 answers

How to register Microsoft.ACE.OLEDB.12.0 provider on my machine?

I have a 64-bit version of Microsoft Windows 11. Whenever I try to run my apps, the error registers Microsoft.ACE.OLEDB.12.0 provider is not registered on my machine. I need that provider to run my apps that include a Data Grid View control. Are there…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
asked 2023-09-29T01:25:21.3766667+00:00
John 366 Reputation points
commented 2023-10-04T02:32:26.83+00:00
Jiale Xue - MSFT 11,441 Reputation points Microsoft Vendor
0 answers

Error when try read data from Excel File in ASP.NET MVC

In an ASP.NET MVC app, I am trying to read data from Excel file but I get this error: The error appears in production mode, but in development mode there's no problem. I am making host on Local Host on my computer Microsoft Excel cannot access the file…

Internet Information Services
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
991 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.
9,037 questions
asked 2023-10-03T17:37:39.96+00:00
mostafa ahmed 1 Reputation point
commented 2023-10-04T02:28:02.3233333+00:00
KOZ6.0 1,450 Reputation points
1 answer

No me deja crear proyectos ASP.NET y me sale el error HRESULT E_FAIL de una llamada a un componente COM

Hola, les quería preguntar si existe una solución para este error que me esta saliendo a la hora de crear un nuevo proyecto asp.net Framework pero si me deja usar el resto de proyectos. intente reparando, quitando modificaciones y reinstalando pero no se…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 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,831 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.
9,037 questions
asked 2023-10-03T21:50:09.91+00:00
Varpu 0 Reputation points
answered 2023-10-04T02:27:48.8066667+00:00
Zhengye Xu-MSFT 5 Reputation points Microsoft Vendor