Microsoft Q&A

.NET

13,622 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,622 questions with .NET-related tags

Sort by: Updated
0 answers

Repeating Code While Still Triggering Events

I have a set of code that I want to repeat continuously until I explicitly tell it to stop (basically an infinite loop). However, I also need to be able to detect events (such as clicking a button). How can I do this?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,891 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.
7,336 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
asked 2023-03-05T02:39:41.6233333+00:00
Nathan Sokalski 4,051 Reputation points
commented 2023-03-07T03:06:44.48+00:00
Nathan Sokalski 4,051 Reputation points
0 answers

how to call direct3d in .net?

there is nothing in Windows.Graphics.DirectX I can call in .net I want write 2d game in .net and directx

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.
7,336 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 questions
asked 2023-03-07T03:01:12.5033333+00:00
打玻璃 1,591 Reputation points
0 answers

Unable to see CollectionView after msix creation

Hi there, I'm quite new on maui and i have a problem regarding datas inside a collectionview. (Please find two images attached). My dev pc is a Win11 with VS2022 (.NET7). I have no error/warning shown in the event log, no crash at all. When…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
996 questions
asked 2023-03-06T22:42:00.6566667+00:00
Pierre LAURENT 0 Reputation points
commented 2023-03-07T03:01:02.14+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 12,816 Reputation points Microsoft Vendor
0 answers

How to catch the exception include exact line number and element where the error occurred in XML file C#

Anyone please help me out How to catch the exception include exact line number and element where the error occurred. I tried so many things but didn't worked. Please do the needful When deserialize I got the exception.. here is my code public static…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,739 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.
7,336 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,281 questions
asked 2023-03-06T05:33:34.1766667+00:00
Harsh Raj 0 Reputation points
commented 2023-03-07T02:55:54.3566667+00:00
Zhi Lv - MSFT 20,786 Reputation points Microsoft Vendor
3 answers

No duplicate items in a list

Good day everyone! Hoping to get some help on a problem. I have an application where users can enter events and then are assigned a random card, 1-14, but each user must have a card that isn't a duplicate of another user's card. So when Joe enters an…

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.
7,336 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,739 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
690 questions
asked 2023-03-05T22:03:46.9266667+00:00
Nick R 66 Reputation points
edited an answer 2023-03-07T02:50:50.7066667+00:00
Ruikai Feng - MSFT 321 Reputation points Microsoft Vendor
0 answers

How to integrate Windows authentication in vb.net (Framework2.0) client applications to achieve Azure login

Now I have a running client program (vb.net Framework 2.0). I want to change the login function of the application to use AzureAD and integrate Windows authentication. I found through investigation that to implement these functions,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
226 questions
asked 2023-03-07T02:39:16.3533333+00:00
張テスト 0 Reputation points
2 answers

Why changing a form graphic property will affect the software?

Description: I create a VB.NET Windows Forms application [.net6+] that loads an HTML file using the HtmlAgilityPack library, extracts data from it, and displays it in a list box. Imports System.IO Imports HtmlAgilityPack Public Class Form1 Public…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,930 questions
asked 2023-03-02T04:40:23.26+00:00
Mattia Fanti 336 Reputation points
commented 2023-03-07T02:37:42.7933333+00:00
Jiachen Li-MSFT 11,086 Reputation points Microsoft Vendor
1 answer

Xamarin.Form can't make OutBound Call with SpeakerPhoneOn on Android 12&13

I was chatting with Microsoft Support regarding Xamarin AudioManager. They encouraged me to post the question on this Forum. I reminded them that I have been reprimanded by @Rob Caplan - MSFT and was trying to follow his instructions without success. I…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,891 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
asked 2023-03-05T07:32:09.08+00:00
Universal Camera 266 Reputation points
edited an answer 2023-03-07T02:25:39.5933333+00:00
Rob Caplan - MSFT 4,151 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How To Use .NET Class Library For Outlook Web Add-In

Recently, I have created one add-in for Outlook web. I have to use one class library. How can I use that ?

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.
7,336 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
2,100 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
414 questions
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
253 questions
asked 2023-02-20T11:16:59.9033333+00:00
Smit Rathod 100 Reputation points
edited the question 2023-03-07T02:15:41.2866667+00:00
ChristyZhang-MSFT 10,191 Reputation points Microsoft Vendor
0 answers

File uploader component not triggering onUploadProgress in Blazor WASM hosted on IIS

I'm using a file uploader component in Blazor WebAssembly and I've implemented the upload action in JavaScript. The file upload works fine when I run the sample locally, but when I host the sample in IIS, the onUploadProgress function doesn't trigger and…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
845 questions
asked 2023-03-06T13:10:27.2333333+00:00
Mohan Raj 0 Reputation points
commented 2023-03-07T02:13:41.0866667+00:00
Zhi Lv - MSFT 20,786 Reputation points Microsoft Vendor
1 answer

Required a Jquery | suming checkbox in aspx form

Hi, I have two gridvies, with one Label <asp:Label ID="Gender" runat="server"></asp:Label> If Lable having Gender Value is "Male" then count Limit is 2 if "Female" then count limit 4 Grid-1 …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,281 questions
asked 2023-03-05T02:53:34.9066667+00:00
Aypn CNN 386 Reputation points
commented 2023-03-07T02:08:57.9966667+00:00
QiYou-MSFT 1,166 Reputation points Microsoft Vendor
1 answer

Asp.Net Machine Account

Hello everyone. ASP.NET Machine Account. take over my computer. Every time I open an application, it asks for a password and I don't know what the password is. I have only local account. I need help...

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,281 questions
asked 2023-03-06T14:57:52.3466667+00:00
Erol Ç 0 Reputation points
edited an answer 2023-03-07T02:00:26.26+00:00
Lan Huang-MSFT 10,156 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

failed to read PNG signature: file does not start with PNG signature.

hello dear : I have a problem on build android project in xamarin form error : failed to read PNG signature: file does not start with PNG signature.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,891 questions
asked 2020-12-13T12:28:42.317+00:00
mehrdad ghasemi 21 Reputation points
commented 2023-03-07T01:44:05.5766667+00:00
Michael Alfred 0 Reputation points
1 answer

Caret displays inside of asp:Label control instead of beside it

I am trying to have a caret display beside my asp:Label control so that when the caret is clicked, there will be a dropdown that will have logout, but the caret is displaying inside the label. How can I have caret display beside the Label instead of…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,281 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.
442 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
776 questions
asked 2023-03-02T12:43:11.27+00:00
Donald Symmons 1,026 Reputation points
commented 2023-03-07T01:43:05.0933333+00:00
Lan Huang-MSFT 10,156 Reputation points Microsoft Vendor
0 answers

How to get Andoid SDK Tools up-to-date?

I'm trying to update my Android SDK Tools, but I don't see a version later than 7.0. How do I update it? I'm using VS 2022 (not the preview version). Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
996 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,634 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.
587 questions
asked 2023-03-07T00:40:39.7533333+00:00
Technoman 0 Reputation points
edited the question 2023-03-07T01:24:06.43+00:00
Technoman 0 Reputation points
0 answers

How to show buttons previous and next buttons when display pagination gridview ?

I work on asp.net web forms . I face issue I can't display previous and next button with Numeric page number . current status display page number numeric mode only as 1,2,3,4 etc. but I can't display previous and next with page numbers so How to make…

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.
7,336 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,281 questions
asked 2023-03-06T17:45:12.91+00:00
Ahmed Salah Abed Elaziz 0 Reputation points
edited the question 2023-03-07T01:19:46.3166667+00:00
Chen Li - MSFT 246 Reputation points Microsoft Vendor
0 answers

Java.Lang.NoClassDefFoundError com.google.android.exoplayer2.source.ConcatenatingMediaSource

I use Xamarin MediaManager version 1.2.2 to play songs in my Android and iOS applications: https://github.com/Baseflow/XamarinMediaManager But the problem is that it is not working in every Android project. For example, it works in a new empty Android…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,891 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.
7,336 questions
asked 2023-03-06T09:51:29.5066667+00:00
Kim Strasser 521 Reputation points
edited the question 2023-03-07T01:14:08.3666667+00:00
Jack J Jun 20,781 Reputation points Microsoft Vendor
0 answers

How can I create an app icon on iOS?

I don't know how to create an app icon for my iOS application. I have tried to use Assets.xcassets but it's not working in Visual Studio for Mac 17.6 Preview (17.6 build 402) after adding Maui to my .csproj…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
996 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.
7,336 questions
asked 2023-03-06T12:03:49.5566667+00:00
Kim Strasser 521 Reputation points
edited the question 2023-03-07T01:13:12.6133333+00:00
Jack J Jun 20,781 Reputation points Microsoft Vendor
0 answers

How do you invoke a simple dialog from a razor page

I am new to ASP, trying to learn how to develop a Razor Server application that contains a simple modal dialog within a razor page. I have taken the following steps from Visual Studio 2022 with ASP.NET Core installed: Create new Project Select Blazer…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,739 questions
asked 2023-03-07T00:31:19.04+00:00
Mark Smith 0 Reputation points
2 answers

Invoking azure functions server SignalR group functions from ASP.NET Core Client

I am trying to invoke azure functions server SignalR group functions from an ASP.NET Core client. The server side code that I am trying to invoke via an ASP.NET Core client can be found in this article. I have not found a single reference of a C#…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,739 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
78 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,708 questions
asked 2023-02-22T11:00:39.4466667+00:00
Bubba Jones 151 Reputation points
answered 2023-03-07T00:06:14.73+00:00
Ryan Hill 16,361 Reputation points Microsoft Employee