11,257 questions with C#-related tags

Sort by: Updated
0 answers

Issues with lists

I am trying to work on HCF I created a list with prime factors and I am trying to load the common factors Parent=16 ,Number=2 , Cnts=4 Parent=48 ,Number=2 , Cnts=4 Parent=48 ,Number=3 , Cnts=1 Should give Parent=16 ,Number=2 , Cnts=4 Parent=48…

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.
11,257 questions
asked 2025-01-31T13:32:05.79+00:00
Kalyan A 355 Reputation points
1 answer

Win32 context menu items issues

Hello everyone, could you please tell me what can go wrong with getting context menu items via win32? First of all, do I understand correctly that the ampersand in the name is normal? But at the same time, some elements have a localized dwTypeData, some…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,019 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.
815 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,717 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.
11,257 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,599 questions
asked 2025-01-28T15:52:31.3966667+00:00
123244 100 Reputation points
commented 2025-01-31T13:15:02.3633333+00:00
Castorix31 86,516 Reputation points
1 answer

VS 2022 wrongly reports error CS0246

Visual Studio 2022 (version 17.12.4) is reporting error CS0246 'type or namespace could not be found...' for a class EposNowReportsDataSnapshot in a declaration: EposNowReportsDataSnapshot dataSnap = new EposNowReportsDataSnapshot(); The error report is…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,395 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.
11,257 questions
asked 2025-01-19T22:11:58.6866667+00:00
Frank Hindle 0 Reputation points
commented 2025-01-31T10:14:17.36+00:00
Tianyu Sun-MSFT 32,531 Reputation points Microsoft Vendor
0 answers

Entity Framework with Dynamic Table Mapping Based on a Parameter (PostgreSQL Partitioning)

I am using Entity Framework with PostgreSQL and need a way to dynamically map a model to different tables based on a parameter. For example, I have a Cars model, and each company should have its own separate table: Cars_A for Company A Cars_B for…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
777 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.
11,257 questions
asked 2025-01-31T08:50:51.2966667+00:00
Florin 0 Reputation points
edited the question 2025-01-31T09:30:28.7166667+00:00
Florin 0 Reputation points
1 answer

How to upload a file from my local computer to a Sharepoint folder

Hi,  I´m using something like this:   string userName = “nelson.soares@********.pt”; string password = “*********”; var securePassword = new SecureString();   foreach (char c in password) {  securePassword.AppendChar(c); }  using (var…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,081 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,152 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.
11,257 questions
asked 2025-01-22T20:48:33.8166667+00:00
Nelson Soares 0 Reputation points
commented 2025-01-31T07:53:21.17+00:00
Xyza Xue_MSFT 27,966 Reputation points Microsoft Vendor
1 answer

Full duplex operation, functions C++ C#

I have a C# application and a C++ application. Between the two, data should now be exchanged. In C# ReceiveDataFromCPP(String data) SendDatatoCPP(string data) In C++ ReceiveDataFromCSharp(String data) SendDatatoCSharp(string…

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
342 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.
11,257 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,837 questions
asked 2025-01-30T18:47:23.8+00:00
Noah Aas 545 Reputation points
edited an answer 2025-01-31T07:51:06.88+00:00
Minxin Yu 12,506 Reputation points Microsoft Vendor
1 answer

How to fix error I want to run C# in VS code but it give me error

'dotnet' is not recognized as an internal or external command, operable program or batch file. . .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. 2025-01-29 08:52:17.031 [info] Did not find .NET…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,395 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.
11,257 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,023 questions
asked 2025-01-29T03:51:22.9633333+00:00
Tanzeela Fatima 0 Reputation points
commented 2025-01-31T05:59:23.6366667+00:00
Dou Xu-MSFT 170 Reputation points Microsoft Vendor
2 answers

Yield in small explanation // Advantages

Dictionary<string, Order> DicOrders; Is there a simple description of what yield should be used for? Advantages? Is it about speed? class Order { string Name; int Id; double OfferPrice; }

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.
11,257 questions
asked 2025-01-30T18:44:46.69+00:00
Noah Aas 545 Reputation points
answered 2025-01-31T03:02:22.35+00:00
Jack J Jun 24,631 Reputation points Microsoft Vendor
1 answer

How to fix the error "InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DAO.DBEngine'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00000021-0000-0010

Hi, I am trying to access DAO.DBEngine for an operation and getting the error " InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'DAO.DBEngine'. This operation failed because the QueryInterface call on…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,767 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.
11,257 questions
asked 2025-01-30T12:22:58.2266667+00:00
Devi E 0 Reputation points
commented 2025-01-31T02:27:44.5333333+00:00
Tiny Wang-MSFT 3,066 Reputation points Microsoft Vendor
0 answers

Issue with "Mandatory" package update status in Microsoft Store

Hi, I am experiencing an issue with the Microsoft Store incorrectly reporting "Mandatory" package update status in some of my UWP applications. Following the official documentation, I implemented an update flow in my application that provides…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,081 questions
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.
11,257 questions
asked 2025-01-24T12:43:15.7233333+00:00
Joel 0 Reputation points
commented 2025-01-31T02:18:11.95+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
1 answer

windows.opener() handling with WebView2

In the webform, I have used window.opener for opening a new window that acted as a dialog which required user input, and needed to pass information back to the main window. I am trying to embed this in winform using WebView2 control.The…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,920 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.
11,257 questions
asked 2025-01-13T06:37:06.7133333+00:00
Neha 20 Reputation points
edited the question 2025-01-31T01:58:47.11+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
0 answers

How to Disable Scrolling in a Navigation View with WindowsAppSDK

I have a WindowsAppSDK app that uses a navigation view control for navigation. For one of the pages, scrolling should be disabled, allowing the page to shrink to fit within the navigation view's content pane. How can scrolling be disabled and the page…

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.
815 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.
11,257 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.
830 questions
asked 2025-01-17T22:59:10.8633333+00:00
jm6271 20 Reputation points
commented 2025-01-31T01:52:30.9866667+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
1 answer

I want to lock the current HDMI port in C# WPF (.NET Framework)?

I want to lock the HDMI port. If a HDMI port is used for a monitor then if other HDMI port is used then i want to lock existing port. How to do so in C# WPF?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,081 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,820 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.
11,257 questions
asked 2025-01-16T08:11:55.82+00:00
Vishal2 Bansal 225 Reputation points
edited the question 2025-01-31T01:48:17.8833333+00:00
Roy Li - MSFT 33,591 Reputation points Microsoft Vendor
0 answers

Microsoft Word issue in windows server 2022 with non interactive session

Hi All , we have an application exe that uses Microsoft Word 2016 to generate Word documents and save the files. We are running this exe as a task scheduler in Gen3 Windows server 2022, when we run the scheduler with non-interactive session (…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,622 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.
11,257 questions
asked 2025-01-30T14:26:07.4233333+00:00
Rakshitha H P 0 Reputation points
commented 2025-01-31T01:16:44.0933333+00:00
Jack J Jun 24,631 Reputation points Microsoft Vendor
2 answers

How to fix "the name txt does not exist in the current context"?

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.
11,257 questions
asked 2025-01-29T23:24:21.8933333+00:00
Kio 0 Reputation points
edited the question 2025-01-30T22:43:56.8066667+00:00
Erland Sommarskog 116.1K Reputation points MVP
0 answers

Hello I have been doing a POC with semantic kernel API manifest, and i cannot find any good microsoft documentation?

Hello I have been doing a POC with semantic kernel API manifest, and i cannot find any good microsoft documentation, there are some devblogs e.g. https://devblogs.microsoft.com/semantic-kernel/introducing-api-manifest-plugins-for-semantic-kernel-2/ but…

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.
11,257 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,594 questions
asked 2025-01-30T20:13:15.1966667+00:00
Ketan Joshi 20 Reputation points Microsoft Employee
0 answers

Linq Cosmos DB ArgumentNullException Exception

I am using LinQ on the client side to query Cosmos DB. All the other properties work fine except two properties. One is the "id" and the other is the "RowKey". I manually checked the database, the type of RowKeys are all string, they…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,742 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.
11,257 questions
asked 2025-01-29T19:13:20.8733333+00:00
Yi Gu 0 Reputation points Microsoft Employee
commented 2025-01-30T18:00:39.86+00:00
NIKHILA NETHIKUNTA 4,425 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Getting the value of IFormCollection from one controller to another controller

I am getting some values in IFormCollection when I click on the submit button on my Razor page. [HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult> Index(IFormCollection collection) { try …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,081 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,767 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.
11,257 questions
asked 2025-01-30T07:23:16.01+00:00
Anjali Agarwal 1,511 Reputation points
accepted 2025-01-30T17:56:21.7266667+00:00
Anjali Agarwal 1,511 Reputation points
2 answers

Is my technology stack suitable for a startup

I have developed a startup. My technology stack: C#, WPF, Postgresql, Dapper. Is this stack optimal for a startup? I listened to the opinions of previous developers and now I doubt it. Perhaps the problem is that the program does not work on other…

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,820 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.
11,257 questions
Startups
Startups
Companies that are in their initial stages of business and typically developing a business model and seeking financing.
3 questions
asked 2025-01-29T19:45:17.5233333+00:00
vitaminchik 486 Reputation points
answered 2025-01-30T16:35:04.69+00:00
Bruce (SqlWork.com) 70,376 Reputation points
0 answers

Real-time Transcription in ACS Group video calls

have been working on implementing the Azure Communication Services (ACS) real-time transcription feature and followed the steps outlined in the:…

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
987 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.
11,257 questions
asked 2025-01-10T05:09:32.3066667+00:00
Madushika Shiromani 0 Reputation points
commented 2025-01-30T09:26:19.69+00:00
Suresh Chikkam 0 Reputation points Microsoft Vendor