10,310 questions with C#-related tags

Sort by: Updated
0 answers

Exam scheduling issues.

I have completed Microsoft azure AI foundamental challenge which challenge allowed me to schedule exam free of cost by providing voucher. I have received voucher after completing the challenge but while scheduling exam i am unable to redeem this voucher.…

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,310 questions
asked 2024-05-12T04:18:42.84+00:00
Swapnil Salunke 0 Reputation points
2 answers One of the answers was accepted by the question author.

Select Delete commands

Hello, I've been given this samples for insert into and update: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) …

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,310 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,581 questions
asked 2024-05-02T14:23:13.35+00:00
StewartBW 345 Reputation points
commented 2024-05-12T01:05:03.17+00:00
Karen Payne MVP 35,196 Reputation points
1 answer

COM timeout Excel

Microsoft 365 Excel version 2403. C# application (WPF on .Net 8) using excel COM interop ("automation") which adds a menu in the Excel application and setsup a click handler (in WPF). All works normally just fine, but when debugging and say…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,499 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,310 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.
3,532 questions
asked 2024-04-24T07:13:01.6266667+00:00
Magne 126 Reputation points
commented 2024-05-11T21:38:21.4033333+00:00
RLWA32 40,851 Reputation points
0 answers

Android Emulator waiting for debugger to attach in .net maui app

I upgraded my .net maui app from .net 7 to .net 8 and updated my nuget packages. I built the output solution but deployment was not successful as I had received the error message:- Xaml XC002 erro: Binding could be compiled if x:datatype is specified…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,927 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,310 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 201 Reputation points
edited the question 2024-05-11T21:33:15.48+00:00
wire_jp 201 Reputation points
2 answers

double roundoff error in calculations

All of these following code statements should yield the same value, but the second to fourth statement have a second to last digit rounding error in c#. The first statement is correct and fifth to last are correct. Do you know this is…

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,310 questions
asked 2024-05-10T16:47:06.63+00:00
Lawrence254 0 Reputation points
answered 2024-05-11T20:36:12.88+00:00
Lawrence254 0 Reputation points
1 answer

Update Workload Problem/ NuGet Package unable to be installed.

**I have created 3 Projects: FrontEndProject and it is a Blazor Project and this is the csProj:** <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,208 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,404 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,310 questions
asked 2024-05-10T04:54:17.63+00:00
Muhammad Ghozlan 0 Reputation points
answered 2024-05-11T16:53:56.56+00:00
Bruce (SqlWork.com) 56,931 Reputation points
0 answers

how to read ObservableCollection to an array

I may be doing this the long way , I want to read all the Line in my listview. xaml <ListView ItemsSource="{Binding MyItems}" IsGroupingEnabled="True" GroupShortNameBinding="{Binding Key}"…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,647 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,310 questions
asked 2024-05-11T13:45:01.4433333+00:00
tim 120 Reputation points
1 answer

image not loading in modal popup imageurl in asp.net c#

i am trying to load image in image button through modal popup. The problem is modal popup is showing, but image not loading which means it is blank window. i am storing all the images in different server and application hosted in another server. what is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 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,310 questions
asked 2024-05-05T17:01:04.1133333+00:00
Gani_tpt 1,586 Reputation points
edited a comment 2024-05-11T09:28:34.49+00:00
Gani_tpt 1,586 Reputation points
1 answer

Does NumberBox.Value NaN not equal double.NaN?

When I use NumberBox (WinUI2), I have trouble as follows: if (NumberBox.Value == double.NaN) // It keeps false. { // Some action codes. } Is there any bug about this equation? I would appreciate it if anyone could solve this problem.

Universal Windows Platform (UWP)
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,310 questions
asked 2024-05-11T07:35:25.51+00:00
鲤鱼 秀 45 Reputation points
answered 2024-05-11T07:35:25.5233333+00:00
Q&A Assist
2 answers

running asp.net intranet application on localhost asking for authentication

I have an intranet application written int ASP.net core, when I run this application on localhost, I get a pop window asking me to authenticate and once I enter my domain name\my username and password then it authenticates me and lets me run the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,208 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 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,310 questions
asked 2024-05-06T23:53:29.4066667+00:00
Anjali Agarwal 1,386 Reputation points
commented 2024-05-11T00:35:46.4133333+00:00
Anjali Agarwal 1,386 Reputation points
1 answer

Exception problem

Hi, I've got issue due to this line below. reader = cmd.ExecuteReader(); Can it be owing to no record returned?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,814 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,310 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,559 questions
asked 2024-05-10T08:22:21.91+00:00
Peter_1985 2,526 Reputation points
answered 2024-05-10T21:41:52.05+00:00
Erland Sommarskog 101.9K Reputation points MVP
3 answers One of the answers was accepted by the question author.

Define Thread

Hello, In this code: Dim ThreadBlah As New Thread(AddressOf BlahThread) vs Dim ThreadBlah As New Thread(New ParameterizedThreadStart(AddressOf BlahThread)) ThreadBlah.Start Private Sub BlahThread(ByVal InParam As Object) ... End Sub I can define…

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,310 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,581 questions
asked 2024-05-10T15:08:53.2166667+00:00
StewartBW 345 Reputation points
commented 2024-05-10T21:29:00.1533333+00:00
StewartBW 345 Reputation points
1 answer

framework realated question

what is frame in framework for .net applicatons like .net framework 3.5 and what it indicates for frames

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 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.
12,814 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,310 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.
302 questions
asked 2024-05-10T16:37:37.01+00:00
Siddangoud Bharamagoudar 61 Reputation points
answered 2024-05-10T16:47:02.4333333+00:00
Bruce (SqlWork.com) 56,931 Reputation points
1 answer

Unauthorized error when logging in with IdentityModel.OidcClient in MAUI

I am responsible for the development of a cross-platform application that must log in with OpenID. This application is developed in Xamarin.Forms, but I have to migrate it to MAUI. To log into the application I use the IdentityModel.OidcClient library.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,927 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,310 questions
asked 2024-05-09T07:10:13.6466667+00:00
Jalza 736 Reputation points
commented 2024-05-10T15:02:27.53+00:00
Jalza 736 Reputation points
1 answer

Where can I get the syntax, is there a comparison table? How do you do it?

Sample IsValid callback; // define a variable of delegate type IsValid callback = s => s?.Length > 1; // using lambda, define a callback function var result = callback("test"); // invoke the callback code IsValid…

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,310 questions
asked 2024-05-10T14:25:15.3033333+00:00
Noah Aas 140 Reputation points
answered 2024-05-10T14:44:44.0266667+00:00
Jiale Xue - MSFT 34,356 Reputation points Microsoft Vendor
2 answers

Func, Action, Predicate delegates, events in C#

Hello! I am looking for a good short guide on when and how to take what. Do you have any examples or do you know a good site?

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,310 questions
asked 2024-05-09T19:00:01.6066667+00:00
Noah Aas 140 Reputation points
commented 2024-05-10T14:22:03.76+00:00
Noah Aas 140 Reputation points
2 answers

Procedure for a m:n data relationship

Hello! Are there any tools or tips on how to create a data model? Once the data model is there, how best to deal with primary and foreign keys. The based on XML or JSON format. Save and read XML or JSON files. <MappingTable> <Parameters> …

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,310 questions
asked 2024-05-09T07:56:03.26+00:00
Noah Aas 140 Reputation points
edited a comment 2024-05-10T14:18:27.5+00:00
Noah Aas 140 Reputation points
1 answer

Issue with move folder API in Microsoft Graph when Email ID contains "/"

When attempting to move a folder using the following endpoint: Endpoint: https://graph.microsoft.com/v1.0/me/messages/{EmailId}/move I'm encountering an error when the EmailId parameter contains a "/" symbol. Despite trying to encode the Email…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 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,310 questions
asked 2024-05-09T04:23:23.2433333+00:00
Waqar Ahmed 0 Reputation points
commented 2024-05-10T12:51:14.53+00:00
Waqar Ahmed 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to copy more than one project to Visual Studio and set reference across the pojects?

Dear All, How to copy multiple projects (that do not exist locally) to Visual Studio and set references across the projects?

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,310 questions
asked 2024-05-09T04:49:40.9533333+00:00
BenTam 1,581 Reputation points
accepted 2024-05-10T07:44:44.44+00:00
BenTam 1,581 Reputation points
1 answer

How to paste image to canvas from WebView2?

In C# uwp project i want to paste image from a WebView2 to my Canvas. I tried to implement that in 2 ways: with drag n drop and with right click copy. Drag n drop cannot be possible because i cannot drag the image from webview2, so the subscribed drop…

Universal Windows Platform (UWP)
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,310 questions
asked 2024-05-03T12:24:11.99+00:00
Tamás Bitó 20 Reputation points
commented 2024-05-10T07:42:14.87+00:00
Junjie Zhu - MSFT 15,366 Reputation points Microsoft Vendor