10,962 questions with C#-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Extension to detect when a string get hovered on the document

I'm trying to create a Visual Studio 2022 extension to detect whenever a specific string on a .cpp or .h file get hovered, the project atm have only two files. I have set a breakpoint on InitializeAsync of ImagePackage.cs, when i start debugging the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 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.
10,962 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
221 questions
asked 2024-10-18T00:52:53.9333333+00:00
Masa Yuilki 20 Reputation points
accepted 2024-10-19T16:52:38.5333333+00:00
Masa Yuilki 20 Reputation points
0 answers

Xamarin iOS How to File.ReadAllBytes a file inside /private/var/mobile/Containers/Shared/AppGroup/

string filePath = "/private/var/mobile/Containers/Shared/AppGroup/7E6455EB-2EF9-417E-BC79-71BA25B53853/File Provider Storage/file.pdf" byte[] byteFile = File.ReadAllBytes(filePath); When I run the code above on Xamarin iOS I get an…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,357 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.
10,962 questions
asked 2024-10-19T02:14:17.65+00:00
Jimmy Oku 0 Reputation points
2 answers One of the answers was accepted by the question author.

Cannot call an aspx file in MVC .NET 4.7.2 Web App from MVC .NET 4.7.2

Hi, I have two MVC projects, MVCWebappDLL project and MVCRegularDLL project. Both in two different solutions.    I reference MVCWebappDLL from inside the MVCRegularDLL.   I have an .aspx with its .aspx.cs that resides in MVCWebappDLL.   In my…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 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.
10,962 questions
asked 2024-10-17T18:45:49.48+00:00
iqworks Information Quality Works 276 Reputation points
commented 2024-10-19T01:42:43.9+00:00
SurferOnWww 2,906 Reputation points
3 answers

Get property that is not in class C# (Android)

public class DashboardPage : ContentPage { public DashboardPage() { RunObject(new DemoObject { Name = "Text" }); RunObject(new Demo1Object { Name = "Text 1" }); } private void RunObject(BaseObject…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,541 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.
10,962 questions
asked 2024-10-16T18:46:38.1266667+00:00
валера карманов 361 Reputation points
commented 2024-10-18T19:54:10.6966667+00:00
Bruce (SqlWork.com) 65,576 Reputation points
1 answer

Lifetime validation failed, the token is expired.

Even if the token is new then also it gives me this error.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,183 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 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.
10,962 questions
asked 2024-10-18T14:36:07.8433333+00:00
Mayur 0 Reputation points
commented 2024-10-18T19:00:39.98+00:00
Bruce (SqlWork.com) 65,576 Reputation points
0 answers

why the C# pre-build and post-build events are not called if I import a custom target with my own build target in it.

why the C# pre-build and post-build events are not called if I import a custom target with my own build target in it ? I have a C# project file, which I modified by importing my own custom target file. Inside the target, I have defined a…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 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.
10,962 questions
asked 2024-10-18T18:57:01.24+00:00
67883078 41 Reputation points
0 answers

ImageView not updating in RecyclerView

I have a RecyclerView with the following item layout: <?xml version="1.0" encoding="utf-8"?> <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,357 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 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.
10,962 questions
asked 2024-10-18T18:02:52.0833333+00:00
Nathan Sokalski 4,106 Reputation points
0 answers

In .Net Maui I get the exception Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled.

I get an exception error. The message states Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,541 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.
10,962 questions
asked 2024-10-18T16:12:06.6066667+00:00
Tom Meier 220 Reputation points
0 answers

Lifetime validation error. Token is expired

Hello,https://graph.microsoft.com/v1.0/me when i try to call this api from my .net core application. It says "Lifetime validation error. Token is expired" even if the token is new. Need your help

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 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.
10,962 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,295 questions
asked 2024-10-18T13:45:22.4866667+00:00
Mayur 0 Reputation points
commented 2024-10-18T14:07:51.0833333+00:00
Tiny Wang-MSFT 2,721 Reputation points Microsoft Vendor
1 answer

Inserting TextAnnotation in graph c#

I creating simple graph with line as average (sample only), I have a code in HorizontalLineAnnotation (color red line) and TextAnnotation but the problem is that, the TextAnnotation not working properly. Here my code in HorizontalLineAnnotation and…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 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.
10,962 questions
asked 2024-10-12T10:42:00.2033333+00:00
YUI-012 60 Reputation points
edited a comment 2024-10-18T14:05:51.15+00:00
YUI-012 60 Reputation points
2 answers

Identify Mutual Authentication request at LDAPs

Hello All, We have a WPF application built on .Net Framework 4.8. This application acts as an LDAPs client for authentication purposes. The LDAPs server being used has provision for enabling mTLS. When mTLS is enabled, the client application needs 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,781 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.
10,962 questions
asked 2024-10-17T16:48:20.34+00:00
S Abijith 386 Reputation points
answered 2024-10-18T08:59:21.69+00:00
Love Text Hubs 0 Reputation points
3 answers One of the answers was accepted by the question author.

Get Results from Task.WhenAll for multiple tasks

Hi Folks, I am trying to get the results back from running multiple tasks. Each task point to a function and returns either true or false. Here is my code: var t1 = new Task(() => { CheckNC(); }) ; var t2 = new Task(() => { CheckNL(); }); var t3…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,894 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,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.
10,962 questions
asked 2024-10-03T10:19:58.7366667+00:00
john noble 161 Reputation points
commented 2024-10-18T07:48:56.5366667+00:00
Jiale Xue - MSFT 45,816 Reputation points Microsoft Vendor
1 answer

C# Blazor .NET 8 localstorage deleted on page refresh F5

Hi In Blazor .NET7 I use localstorage to save a JWT for all my users claims etc. Works perfectly. Upgraded to .NET8 the JWT still works, but, if you refresh your browser page (F5) the localstorage is deleted and I get a 401 unauthorized. In .NET7 this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
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,584 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.
10,962 questions
asked 2024-10-17T08:40:02.0933333+00:00
Kinga 0 Reputation points
edited a comment 2024-10-18T06:43:12.11+00:00
Tiny Wang-MSFT 2,721 Reputation points Microsoft Vendor
1 answer

Datagridview with datatable as a datasource - user edits

I have a winform project in visual studio. I have placed a datagridview on the from. I build a DataTable with data from a database. I then add a new column to the datatable and assign the datatable as the datasource for the datagridview. Run the…

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.
10,962 questions
asked 2024-10-11T21:52:02.09+00:00
Darryl Hoar 181 Reputation points
commented 2024-10-18T06:42:19.9233333+00:00
Jiale Xue - MSFT 45,816 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to get or/and execute context menu verbs knowing path of item

Hello, can you please tell me how to get information about commands from the windows context menu, I need to get all the commands for an element by its path, and if it is possible to run the command (verb) as if you clicked on it in the context menu.

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.
5,427 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,634 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.
10,962 questions
asked 2024-10-17T17:25:50.0333333+00:00
123244 60 Reputation points
commented 2024-10-18T06:35:36.2933333+00:00
123244 60 Reputation points
3 answers

Auto-generated Reference number repeats itself more than twice

Hello, I have been trying to create an automated Reference number that can be used to identify each user but in some aspect, there is a repetition in the number. From my code, the Reference number is supposed to be unique but there are multiple of the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,494 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.
10,962 questions
asked 2024-10-15T04:23:38.9766667+00:00
Donald Symmons 2,881 Reputation points
edited a comment 2024-10-18T06:15:42.58+00:00
SurferOnWww 2,906 Reputation points
0 answers

Number range in MySql

First, I would like to say sorry for my title, because I don't know what is the proper term of my assignment. As you can see the image above, I have a simple GUI Form. My assignment is, If I input a number example 01, 02 or 03, The status display in GUI…

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.
10,962 questions
asked 2024-10-17T13:38:12.0833333+00:00
YUI-012 60 Reputation points
commented 2024-10-18T06:09:31.7066667+00:00
Jiale Xue - MSFT 45,816 Reputation points Microsoft Vendor
1 answer

How to create a installer that installs multiple applications c# visual studio 2019

I need to create a single installer that when it runs installs multiple applications/services. These applications/services were created in c#, .NET in visual studio 2019. How do I accomplish this? The Deployment project in visual studio does not appear…

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.
10,962 questions
asked 2024-10-17T21:00:39.97+00:00
Darryl Hoar 181 Reputation points
answered 2024-10-18T02:54:25.47+00:00
Jiale Xue - MSFT 45,816 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

saving changes in a loop in identity franework

I want to save changes to the SQL table in a loop. I have the following code: string[] request={"test1", "test2", "test3"}; TransactionData TTD = new TransactionData(); using ( IdContext = new ProofContext()) …

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.
10,962 questions
asked 2024-10-17T06:02:54.5033333+00:00
Anjali Agarwal 1,466 Reputation points
accepted 2024-10-17T16:23:28.54+00:00
Anjali Agarwal 1,466 Reputation points
1 answer One of the answers was accepted by the question author.

Adding a calculated property in ObservableCollection<T> inherited class

Hi I fill an ObservableCollection<T> from a data source. I need to add a ‘header’ calculated string property that concats several properties in the observable collection. How can I achieve this? Thanks Regards

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.
10,962 questions
asked 2021-09-08T14:58:08.463+00:00
-- -- 932 Reputation points
commented 2024-10-17T15:30:31.2333333+00:00
Audi 0 Reputation points