10,555 questions with C#-related tags

Sort by: Updated
1 answer

How to inherit form in .net design time (there is no inheritance picker)?

How can I correctly inherit from some template form at design time in VS, on .net? In .net framework there was Inheritance Picker but I do not find it in .net 8.0. When I create simple inheritance from another form, like this: public partial class…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,867 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 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,555 questions
asked 2024-06-23T12:50:32.3366667+00:00
Slobodan Krejaković 36 Reputation points
commented 2024-06-25T08:33:31.68+00:00
KOZ6.0 6,300 Reputation points
1 answer

How do you read an SMS and MMS message using .NET MAUI (on Android only)?

I'd like to read an SMS and/or MMS message on an Android device only, but from within my .NET MAUI app. Specifically, I want to save any received (MMS) picture that has been texted to me plus any associated (SMS) text. Is this possible with .NET MAUI…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,115 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,555 questions
asked 2024-06-19T23:12:35.5966667+00:00
Gene Magpayo 0 Reputation points
edited a comment 2024-06-25T05:53:24.54+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
1 answer

How to export viewstate data to pdf in ASP.NET C#

I am developing asp.net application and i already done from viewstate to excel (not from gridview to excel). But, i am struggling to export pdf from viewstate. my viewstate columns is nearly having 20 to 25 columns. below is my code and correct me where…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,388 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,555 questions
asked 2024-06-18T18:03:07.49+00:00
Gani_tpt 2,126 Reputation points
commented 2024-06-25T02:58:10.5066667+00:00
Lan Huang-MSFT 28,201 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

How to create Excel file with Visual Studio 2022 and C#

I'm working with Visual Studio 2022, Project WPF C# with .Net 6.0 and Entity Framework Core. DataBase MS SQL Express.I have also a valid and active licence Microsoft Office 365. I try to Create an Excel File but I have different error msg (see…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,638 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,555 questions
asked 2023-08-06T15:37:30.7133333+00:00
Dmtr_Grms 331 Reputation points
edited an answer 2024-06-25T02:56:53.9966667+00:00
winironteam 36 Reputation points
2 answers

SQL Mail Account Name not displaying properly while sending mail from ASP.NET Application

I am developing ASP.NET web application. In that, i am sending mail to end user from my SQL Mail profile. i have the below mail profile and account name and mail id. SQL Mail Account Name : IND GROUP MAIL E-mail ID : indteamsupport@jeevesteam.com We are…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,388 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,555 questions
asked 2024-06-23T15:57:21.8333333+00:00
Gani_tpt 2,126 Reputation points
commented 2024-06-25T02:01:55.1433333+00:00
Lan Huang-MSFT 28,201 Reputation points Microsoft Vendor
3 answers

How to fix Add-Migration problem?

Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
717 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 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,470 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,555 questions
asked 2024-06-24T17:33:35.47+00:00
Cenk 986 Reputation points
answered 2024-06-24T23:45:29.2733333+00:00
SurferOnWww 2,326 Reputation points
1 answer

Access members@delta from group delta query

Hi There, I'm trying to get the group member changes from group.delta query But i cant access "members@delta" any ideas ? This is what i'm trying to do string deltaLink = deltaPage.OdataDeltaLink.ToString(); var groupResult = await…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,188 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,555 questions
Microsoft Entra
asked 2024-06-24T22:00:00.81+00:00
Isuru 0 Reputation points
edited an answer 2024-06-24T23:29:26.18+00:00
Isuru 0 Reputation points
1 answer One of the answers was accepted by the question author.

After updating to Azure.Identity from 1.10 to 1.11, I can no longer authenticate console application.

I have a small LOB console application that needs to authenticate against Entra ID. The console app uses an IPublicClientApplication for acquiring the token interactively (since I need an MFA claim). Doing it this way, would trigger a pop-up window to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 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,555 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,274 questions
asked 2024-06-24T17:08:01.3666667+00:00
Doug Mendenhall 25 Reputation points
accepted 2024-06-24T18:50:37.0933333+00:00
Doug Mendenhall 25 Reputation points
3 answers

How to close Bootstrap modal in Blazor WASM?

Hi, In my Blazor WASM (.net 6) application, I am displaying a modal popup as follows. <!-- Modal --> <div class="modal fade bg-transparent" id="templatemo_search" tabindex="-1" role="dialog"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 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,470 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,555 questions
asked 2024-06-21T19:34:00.18+00:00
Cenk 986 Reputation points
edited a comment 2024-06-24T18:38:48.23+00:00
Bruce (SqlWork.com) 59,721 Reputation points
1 answer One of the answers was accepted by the question author.

Adding Items in Sharepoint list with PersonOrGroup Column

I have a sharepoint site with 1k+ members. This is a public group/site within our tenant. Within that site I have a list where I am collecting feedback. The list has several columns, 2 of which are of type PersonOrGroup (one allows for multi-selection,…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,188 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,105 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,555 questions
asked 2024-06-18T23:53:13.51+00:00
Moustafa El-Sawy 45 Reputation points
accepted 2024-06-24T18:07:37.21+00:00
Moustafa El-Sawy 45 Reputation points
2 answers One of the answers was accepted by the question author.

System.IO.SerialPort throws System.PlatformNotSupportedException when calling from c++, but not from c#.

I have a perplexing issue with the System.io.Ports package in a Class Library I built using c#/.NET6. I suspect it is a misconfiguration, but I'm not seeing much helpful documentation thus far on StackOverflow. As some background, I must support an old…

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,555 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,607 questions
asked 2023-04-21T16:22:45.1233333+00:00
Michael Bower [emkaTech] 20 Reputation points
commented 2024-06-24T16:22:51.4+00:00
Edi Ben 0 Reputation points
1 answer

Problem passing a structure by reference

I have a class and in one of the functions Fcn_Task_Async() I have a parameter that is a structure called "ref StTask_Async". Inside the function, I need to create a Task passing "ref StTask_Async" to assign values ​​in 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,555 questions
asked 2024-06-24T04:37:43.77+00:00
zequion 191 Reputation points
commented 2024-06-24T09:22:32.1233333+00:00
Viorel 114K Reputation points
2 answers

How do I resolve this exception thrown while trying to do CRUD operations on CSOM?

How do I resolve this exception thrown while trying to do CRUD operations on CSOM? Let me break this down for you. CRUD, of course, means "Create Read Update and Delete". CSOM is the tech for connection C# to a Sharepoint List (or, I assume,…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,105 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,555 questions
asked 2024-06-17T22:08:59.36+00:00
William Thompson 80 Reputation points
commented 2024-06-24T07:50:33.95+00:00
RaytheonXie_MSFT 33,176 Reputation points Microsoft Vendor
1 answer

How do I resolve this exception thrown while trying to do CRUD operations on CSOM?

How do I resolve this exception thrown while trying to do CRUD operations on CSOM? Let me break this down for you. CRUD, of course, means "Create Read Update and Delete". CSOM is the tech for connection C# to a Sharepoint List (or, I assume,…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,105 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,555 questions
asked 2024-06-14T15:03:35.8266667+00:00
William Thompson 80 Reputation points
commented 2024-06-24T07:48:49.1866667+00:00
RaytheonXie_MSFT 33,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Taskbar (Shell_TrayWnd) Transparency like in TranslucentTB using Win32 API

I'm trying to implement transparency for the taskbar (Shell_TrayWnd) in Windows, similar to the functionality that TranslucentTB has. However, in my implementation, the problem is that elements such as the Start button, search box, and attached programs…

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.
4,983 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,491 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,555 questions
asked 2024-06-20T07:11:29.3033333+00:00
Jacob Mordon 40 Reputation points
accepted 2024-06-24T07:06:58.9533333+00:00
Jacob Mordon 40 Reputation points
2 answers

How to create bootstrap Tab Menu in top of the heading on ASP.NET Home page

I have designed login page for my asp.net application. when user logging the application, in the home page, user want to see the settings of their menu's like below. On the top of the heading in right corner, user want to see the settings image. when…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,388 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,555 questions
asked 2024-06-22T12:51:39.3366667+00:00
Gani_tpt 2,126 Reputation points
answered 2024-06-24T05:34:55.3633333+00:00
Lan Huang-MSFT 28,201 Reputation points Microsoft Vendor
0 answers

Maui .Net 8 iOS MediaPicker.CapturePhotoAsync issue returns null after user presses USE PHOTO on apple device

Hi, Maui .Net 8 iOS MediaPicker.CapturePhotoAsync returns null after user presses USE PHOTO on apple device. Works perfectly on Windows and Android. Please help. Thank you, Grant

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,115 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,555 questions
asked 2024-06-22T16:31:55.83+00:00
Grant Schaffer 25 Reputation points
commented 2024-06-24T03:25:09.3333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

System.NullReferenceException: 'Object reference not set to an instance of an object.' model was null

model { public int VehicleID { get; set; } public int VehicleTypeID { get; set; } public string Brand { get; set; } public string Model { get; set; } public int Capacity { get; set; } = 0; public bool IsActive { get; set; } } controller //…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,559 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,324 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,813 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
918 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,555 questions
asked 2024-06-21T09:37:52.91+00:00
Naveinthiran 20 Reputation points
commented 2024-06-24T02:11:54.4033333+00:00
Naveinthiran 20 Reputation points
2 answers One of the answers was accepted by the question author.

Datagridview row selecting font colors using C#

Good day! I have a DataGridView, Inside the DataGridView they have 2 types font text color that is color black and color red. Please see the image below. Now I want is! If I double click the row where the font text color black means read only. But! if I…

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,555 questions
asked 2024-06-22T12:43:23.6633333+00:00
BgnerNprg207 286 Reputation points
accepted 2024-06-23T11:50:44.4033333+00:00
BgnerNprg207 286 Reputation points
1 answer

MS Graph Throttling

I have a GraphServiceClient call. I am having throttling issues and am trying to access the header information that contains the information about the remaining Rate-limit. It seems as though this header does not exist in a…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,188 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,555 questions
asked 2023-09-12T17:24:04.94+00:00
Gerard Lanphear 0 Reputation points
answered 2024-06-23T11:39:55.19+00:00
Sourabh Gupta 795 Reputation points Microsoft Vendor