Microsoft Q&A

.NET

20,763 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,763 questions with .NET-related tags

Sort by: Updated
1 answer

Win32 EnumFontFamiliesEx doesn't call the callback I provide

I wrote a class to test if a WPF font is fixed width. But the only way I could find to do that was to get the LOGFONT and test it. So I went through a lot of P/Invoke hoops to get there. I created a DC for the display and asked it to enumerate the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,074 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,484 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,232 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,032 questions
asked 2023-09-28T03:32:36.0033333+00:00
Will Pittenger 281 Reputation points
commented 2023-10-03T12:38:25.8866667+00:00
Castorix31 77,506 Reputation points
0 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,074 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.
625 questions
asked 2023-10-03T12:11:36.16+00:00
Donald Symmons 2,046 Reputation points
1 answer One of the answers was accepted by the question author.

How to automatically swipe images in gallery

Hi, Please I have 3 images in gallery. Is a way to automatically swipe these images using javascript or CSS? As the image in front swipes to the right, the image on the left should swipe to the right and vice versa. .gallery{width:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,074 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
694 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.
625 questions
asked 2023-10-02T11:42:22.9033333+00:00
Donald Symmons 2,046 Reputation points
accepted 2023-10-03T11:56:19.6233333+00:00
Donald Symmons 2,046 Reputation points
0 answers

How to grant or deny users access by admin in MVC 5 ?

Hi, I have an MVC 5 project where users can add themselves: I'd like not to allow users self register. Instead they need to request access & admin can grant\deny that account. Does anyone have an example ? Thanks.

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
990 questions
asked 2023-10-03T11:23:51.61+00:00
Bill Johnson 1 Reputation point
edited the question 2023-10-03T11:36:19.66+00:00
Bill Johnson 1 Reputation point
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,484 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,823 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,032 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 140 Reputation points
commented 2023-10-03T10:05:39.6766667+00:00
gekka 1,111 Reputation points MVP
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,884 questions
asked 2023-10-03T10:01:07.2166667+00:00
Haviv Elbsz 1,311 Reputation points
edited the question 2023-10-03T10:02:16.2766667+00:00
Haviv Elbsz 1,311 Reputation points
1 answer

How to fix ASP.NET Core with angular API 500 Internal Server Error when uploading file in Development Environment in azure app Service

I am trying to upload a file to the wwwroot folder, but it shows an API status code 500 internal server error in the development environment. It works on my local machine but not in my development environment.

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
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
244 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,676 questions
asked 2023-09-27T15:11:44.74+00:00
Jithu Sebastian 0 Reputation points
commented 2023-10-03T09:55:46.39+00:00
SnehaAgrawal-MSFT 15,046 Reputation points Microsoft Employee
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,884 questions
asked 2023-10-02T03:18:00.0066667+00:00
Nam Pham 71 Reputation points
commented 2023-10-03T09:49:52.5766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,651 Reputation points Microsoft Vendor
0 answers

Jwt Token implementation not working on azure app service when using secured private key

I have created a .net core application in which there is implementation of Jwt token generation and then use it for authentication. The token generation is using a private key to generate the key and public key to validate the key for protected routes.…

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
566 questions
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,032 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
244 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,676 questions
asked 2023-10-03T09:45:22.9066667+00:00
Dheeraj Sharma 0 Reputation points
0 answers

Binding library with xcfranework

How to use xcframework in xamarin ios binding library

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,164 questions
asked 2023-10-02T22:28:48.4033333+00:00
Rishabh Pandey 0 Reputation points
commented 2023-10-03T09:26:23.2566667+00:00
Rishabh Pandey 0 Reputation points
1 answer

Can we export Microsoft Teams Chats?

We would like to understand why we cannot export the Team Chat data of meetings? Would there any possibility to introduce this request? Many thanks, Ingrid

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
64 questions
asked 2023-10-03T09:18:02.2133333+00:00
Ingrid Stas 0 Reputation points
answered 2023-10-03T09:18:02.2166667+00:00
Q&A Assist
1 answer

Push notification on MAUI application using FCM

I am trying to implement push notification on my MAUI application using FCM. I follow this blog and I did everything as per the blog. They suggest to install only 2 NuGet packages, Plugin.Firebase and Plugin.Firebase.Crashlytics. (I installed it by…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,884 questions
asked 2023-09-29T10:06:12.68+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-10-03T09:17:18.39+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,651 Reputation points Microsoft Vendor
4 answers

Working on a tutorial and cannot find the Web Site Administration Tool.

Hello, I am working on a login tutorial and cannot find the Web Site Administration Tool to use to configure asp.net. Here is a link to the tutorial: https://learn.microsoft.com/en-us/previous-versions/aspnet/yh26yfzy(v=vs.100) I vaguely…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,646 questions
asked 2022-06-29T01:41:15.137+00:00
AlphaCr8tive 1 Reputation point
edited a comment 2023-10-03T09:12:29.1633333+00:00
xprogrammerx 0 Reputation points
0 answers

How can I effect the Swipe touch gesture equivalent with a mouse on desktop Maui WinUI?

With touch gesture (on Touchscreen) everything works both on Android and WinUI wrt Swipe, say, when SwipeView control is implemented for CollectionView item to give it a context menu. What about for desktop WinUI where a mouse is used? I thought…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,884 questions
asked 2023-10-03T08:34:48.61+00:00
dg2k 1,246 Reputation points
0 answers

Text area issue

The text area is not shown well, using the codes below. What to adjust? <asp:Label ID="Label4" Text="..." Width="150px" Font-Names="標楷體" …

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.
625 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
300 questions
asked 2023-10-03T06:13:43.0333333+00:00
Peter_1985 2,156 Reputation points
commented 2023-10-03T08:26:45.64+00:00
Peter_1985 2,156 Reputation points
1 answer

Text area issue

The text area is not shown well, using the codes below. What to adjust? <asp:Label ID="Label4" Text="..." Width="150px" Font-Names="標楷體" …

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.
625 questions
asked 2023-10-03T06:28:13.05+00:00
Peter_1985 2,156 Reputation points
commented 2023-10-03T08:17:25.33+00:00
Lan Huang-MSFT 18,036 Reputation points Microsoft Vendor
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,090 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,884 questions
asked 2023-10-03T08:17:08.5566667+00:00
Ramin Khalili 0 Reputation points
0 answers

staticwebapp.config.json is being ignored

I'm hosting a blazor wasm app in azure static web apps but my staticwebapp.config.json is being ignored. I've tried placing it in the root folder and /wwwroot. I'm deploying through visual studio This is the contents of the json file: { …

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,115 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
552 questions
asked 2023-09-27T11:27:57.19+00:00
Anton 0 Reputation points
commented 2023-10-03T08:16:53.2866667+00:00
JasonPan - MSFT 2,771 Reputation points Microsoft Vendor
1 answer

Failed integrity metadata check for Blazor application (NET7)

0 I have a project in NET7 and Blazor hosted in an ASP.NET Core web application. The website is hosted by a service provider. When I deploy the application on the server in a hosting provider, I check the application with different browsers. The…

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,115 questions
asked 2023-10-02T07:40:28.0466667+00:00
Enrico Rossini 96 Reputation points
commented 2023-10-03T08:14:51.24+00:00
Farid Uddin Kiron MSFT 451 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to create a Splash screen on Andriod

Hi, What is the easiest way to create a Splash screen for my Xamarin project. I can't get it to work. Now my app won't work at all. Some help would be appreciated.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,164 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,032 questions
asked 2023-10-02T12:34:56.0733333+00:00
Matthew Zoljan 80 Reputation points
commented 2023-10-03T08:00:00.3966667+00:00
Graham McKechnie 241 Reputation points