Microsoft Q&A

C#

7,603 questions

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.

Browse all C# tags

7,603 questions with C#-related tags

Sort by: Updated
1 answer

Bluetooth Low Energy Multiply times ValueChanged notification

The GattCharacteristic.ValueChanged event handler is triggered multiple times. The same problem with "Windows-universal-samples" in "BluetoothLE" example. BluetoothLE" example... For example when I "connect to…

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,603 questions
Universal Windows Platform (UWP)
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,403 questions
asked 2023-03-19T13:20:12.9666667+00:00
Vladi 0 Reputation points
commented 2023-03-29T20:49:03.3066667+00:00
Peter Smith 566 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Active Directory: Directory Searcher returns byte array instead of long (extrememly rare occurances)

Hi, I'm dealing with importing records from Active Directory and I've had an issue come up a couple of times but as such it's not reproducable. With using the DirectorySearcher class, in some occurances attribute values are being returned as a byte…

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,603 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
3,990 questions
asked 2023-03-29T00:52:16.92+00:00
MatthewCameron-5322 51 Reputation points
commented 2023-03-29T20:46:06.91+00:00
MatthewCameron-5322 51 Reputation points
2 answers

How to build WinUI 3 application using .NET 7

If I create a blank WinUI 3 desktop application with VS2022 Preview in Windows 10 x64, it targets .NET 5 and I immediately get warnings: Package 'Microsoft.ProjectReunion.InteractiveExperiences 0.8.12' was restored using 'net5.0-windows10.0.19041,…

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,603 questions
asked 2023-03-29T18:25:14.8133333+00:00
Andrew Fraser 41 Reputation points
commented 2023-03-29T20:27:05.59+00:00
Andrew Fraser 41 Reputation points
1 answer

How to filter two columns in c# using a textbox

I want filter two columns (1,3) using a text box. Another thing that you might need to know is that I’m using the excel file path and not a database. private void button1_Click(object sender, EventArgs e) { using (XLWorkbook…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,803 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,603 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,367 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 a test as a means of analysis or diagnosis.
270 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
744 questions
asked 2023-03-29T20:11:27.0333333+00:00
ASOoOMA kayal 0 Reputation points
answered 2023-03-29T20:25:02.6266667+00:00
apkasal 0 Reputation points
0 answers

cs1501 error

I get cs1501 error - No overload for method 'download' takes 7 arguments. Running this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using…

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,603 questions
asked 2023-03-28T01:26:59.9733333+00:00
Bob Alston 121 Reputation points
commented 2023-03-29T20:17:35.4766667+00:00
Bob Alston 121 Reputation points
1 answer

How to display and hide drop down lists based on condition drop down list ?

I work on blazor server side I have drop down list condition have 3 option server and database and owner . every option from these three options have one drop down list only so server have drop down list database have drop down list owner have drop down…

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,603 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 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.
886 questions
asked 2023-03-29T18:05:28.51+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
edited a comment 2023-03-29T19:36:21.1566667+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
1 answer

Custom Control CommandParameter

I am working on a Custom Control that Consists of a ComboBox and a Button to the right as the image below. My code for allowing Commands to be Bound to the Button is: private Button _SearchButton; // events exposed to container public…

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,603 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,289 questions
asked 2023-03-29T13:18:09.57+00:00
BigH61 321 Reputation points
answered 2023-03-29T19:34:45.6433333+00:00
BigH61 321 Reputation points
1 answer

C# Multiple Subscribers on Reactive Linq Subject

Hi All, I have a requirement to process messages fast only once. Is it possible to have multiple subscribers doing the task Currently, i am using Reactive Linq NuGet package. Please see code snippet below TIA static Subject<int> subject = new…

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,603 questions
asked 2023-03-28T15:44:32.91+00:00
SKG 66 Reputation points
commented 2023-03-29T19:31:14.01+00:00
SKG 66 Reputation points
2 answers

How to change display name of sender to be different of email name in sending mail using c#

Message message = new Message() { Body = new ItemBody { Content = "test 123", ContentType = BodyType.Text }, …

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,603 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
579 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
739 questions
asked 2023-01-31T09:45:41.48+00:00
M C 0 Reputation points
answered 2023-03-29T19:22:33.79+00:00
Domingos Ricardi 0 Reputation points
0 answers

How do I send contents of a panel to an image column in datagridview?

I am working in Win Forms here. I have a panel that I've coded to allow for freehand drawing. This is going to act as a box for users to sign their names. Also, I have a combobox that is pulling names from a datagridview. This is how I'd like it to…

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,603 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,403 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,803 questions
asked 2023-03-24T14:05:17.3966667+00:00
CLUELESS.EXE 0 Reputation points
edited a comment 2023-03-29T19:12:01.9866667+00:00
CLUELESS.EXE 0 Reputation points
1 answer

Reuse the List<>

Hi, I am using the below code in my sign in page: List<SigninData> data = JsonSerializer.Deserialize<List<SigninData>>(result); also I am using this: List<ActivationData> data =…

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,603 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T16:54:33.1433333+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-29T18:11:02.02+00:00
Alessandro Caliaro 3,591 Reputation points
0 answers

Check if the ContentPage is a MainPage

Hi, In .NET MAUI, how can I check the current page is a Mainpage? Thanks, Jassim

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,603 questions
asked 2023-03-29T17:47:07.24+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

Why i am getting TypeInitializationException

Hi, Why I astarted getting the below error when running my iOS app? can anyone help please.. System.TypeInitializationException: The type initializer for 'Microsoft.Maui.Controls.Shapes.Shape' threw an exception. ---> System.MissingFieldException:…

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,603 questions
asked 2023-03-29T17:39:30.2266667+00:00
Jassim Al Rahma 1,166 Reputation points
2 answers

Can we customize the RequestedTheme Dark color in WinUI3

While loading the splash screen, we are seeing some black color flickering. We are assigned RequestedTheme property as Dark and in the splash we have mp4 video and some text. Could you please help here to customize the color of Dark RequestedTheme…

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,603 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
470 questions
asked 2023-03-06T06:04:39.53+00:00
Smrithi Surendran 61 Reputation points
commented 2023-03-29T17:23:51.43+00:00
Castorix31 69,016 Reputation points
0 answers

Tengo un problema para iniciar sesión de Microsoft 365 office, en power point y word , me sale código de error.

Esta ventana me aparece cuando intento iniciar sesión en microsoft, word y inclusive power point.

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,603 questions
Windows 365 Business
asked 2023-03-29T16:48:04.8433333+00:00
0 answers

How can word file displayed in a div container be printed in a pdf format?

I am trying to have a single page that will can be used to display either a word (.doc/.docx) or a PDF file. Instead of having two pages, each for word and pdf files. It’s a success but printing either of these formats in PDF is where I have…

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,603 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 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.
464 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
897 questions
asked 2023-03-28T10:44:36.1866667+00:00
Donald Symmons 1,266 Reputation points
edited a comment 2023-03-29T16:12:43.2966667+00:00
Donald Symmons 1,266 Reputation points
2 answers One of the answers was accepted by the question author.

Give read-write permissions on blob storage recursively using C#

I have a container in one of the data lake. There are multiple folders into that container. Now I want to give specific access/permission using C#. Basically I have to create a function (webhook) which will give permissions to folders into container. 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.
7,603 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,636 questions
Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
938 questions
asked 2023-03-28T09:00:16.3566667+00:00
Khandu Shinde 0 Reputation points
accepted 2023-03-29T16:09:08.48+00:00
Khandu Shinde 0 Reputation points
1 answer

Libraries required for C# code to export files to Azure Blob Storage from websites hosted on Azure App Service

We were using IIS for deploying .NET web application. One export to excel button had been given on UI to export details from database to Excel file and then it will be downloaded to local disc storage. We used Microsoft Office Interop Excel to export…

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,603 questions
Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,587 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,539 questions
asked 2023-03-28T14:47:12.6366667+00:00
Amit Khobragade 20 Reputation points
answered 2023-03-29T15:54:51.6066667+00:00
Bruce (SqlWork.com) 31,651 Reputation points
1 answer

html css mobile

<section class="kaydirma"> <div class="swiper mySwiper container"> <div class="swiper-wrapper content"> <div class="swiper-slide card"> …

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,603 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,327 questions
asked 2023-03-29T12:55:00.27+00:00
kadir koçaslan 40 Reputation points
edited a comment 2023-03-29T15:31:14.9+00:00
Karen Payne MVP 30,366 Reputation points
0 answers

Conditional selects on expanded navigation not supported

Good day, I'm attempting to retrieve data from an OData service, using the Microsoft.OData.Client nuget package. The end result that I'm looking for is to execute the following…

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,603 questions
asked 2023-03-29T15:14:44.07+00:00
Ricky Schuleman 0 Reputation points