10,858 questions with C#-related tags

Sort by: Updated
2 answers

Problem with DisableProcessing()

I'm trying to prevent a control from being rendered in Wpf because it takes too long to process the items. Since I haven't been able to achieve this, I'm now trying to prevent the screen Form from being rendered. After doing…

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,858 questions
asked 2024-09-19T01:36:18.99+00:00
zequion 401 Reputation points
answered 2024-09-19T19:45:35.8866667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
2 answers

All Toolbox Options Greyed in Visual Studio 2022

I have recently upgraded my WinForm C# application from .Net 4.7.x to .Net 6 I wish to make a change to one of the Forms, however when I try to add any control to any form, I find that all options are greyed out in the Toolbox, so I can modify any of the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,884 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,858 questions
asked 2024-04-20T11:10:48.4966667+00:00
Tony Hedge 6 Reputation points
answered 2024-09-19T19:27:22.0166667+00:00
JohnKarajim 0 Reputation points
2 answers

How Can I fix lParam pointer Error in Pinvoke/Win32 ?

Hi there, currently I need to dig up some Win32 code which is a part of my project, Actually, it's a part of my WPF application where access Win32 APIs using the traditional Pinvoke method. But Currently I facing some error at lParam pointer…

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,592 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,858 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,693 questions
asked 2024-09-18T11:32:18.04+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-19T19:09:07.7866667+00:00
MERUN KUMAR MAITY 576 Reputation points
0 answers

Number of query values and destination fields are not the same

Hello friends, I received text (.txt) files from our external vendor every morning. My objective is to convert this text files to excel (.xlsx) per our customer's request. I am using SSIS Package, and I am using Script Task to do my conversion from text…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,567 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
528 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,858 questions
asked 2024-09-19T18:56:39.9633333+00:00
Villa 206 Reputation points
1 answer

Explain The C# Code

using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { Console.WriteLine("Hello World"); var nums = new List<NumberHolder> { new NumberHolder{ Val = 1 }, new…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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,858 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
12 questions
asked 2024-09-19T13:04:31.2266667+00:00
Adish Jain 0 Reputation points
edited an answer 2024-09-19T18:35:35.5166667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
2 answers

How to get current User outside of Controller in another layer

In ASP.NET Core 6, I need to get the current user in service layer This is code: public class ServiceModel { private readonly IHttpContextAccessor accessor; public ServiceModel(IHttpContextAccessor accessor) { this.accessor =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
736 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 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,858 questions
asked 2024-09-18T22:15:23.81+00:00
mostafa ahmed 41 Reputation points
answered 2024-09-19T17:41:23.7666667+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer

the sample console app from the emulator to create a database is throwing error

Hello, I'm downloaded and trying to execute the sample console app for database creation for Azure cosmos emulator. However it throwing me the below error. IOException: Unable to read data from the transport connection: The I/O operation has been…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,615 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,858 questions
asked 2024-09-17T00:57:58.1266667+00:00
Divya Ravindran 0 Reputation points
commented 2024-09-19T16:54:48.0266667+00:00
Sai Raghunadh M 150 Reputation points Microsoft Vendor
0 answers

No direction after finishing section 6 of the course. Would is next step?

The screenshot above shows completion of section 6 (even though tracker top right does not) but nothing is stated what to do next? Thanks.

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,858 questions
asked 2024-09-19T14:55:24.1733333+00:00
Rocky Ridenbaugh 0 Reputation points
3 answers

how to return value from popup table to the C# asp.net code

Hi, On clicking a button on UI, we have to show a dialog or Popup Table on the center of the screen asking user to enter integer value of area(Mandatory) when one condition is met, then user clicks Ok(which has captureAreaVal() function in my script as…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,858 questions
asked 2024-08-29T14:32:28.9533333+00:00
VG 0 Reputation points
commented 2024-09-19T12:57:17.04+00:00
VG 0 Reputation points
1 answer

using readAllBytes throws "file not accessible error"

I trying to read an encrypted file using the following: and getting access not allowed error. // would prefer to use the following instead of picker" // AuthFile = @"C:\vbscripts\pid.txt"; // if…

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,858 questions
asked 2024-09-11T21:45:09.99+00:00
tim 160 Reputation points
commented 2024-09-19T08:30:42.84+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

c# UWP resource directory DataTemplate with x:DataType not working

HI, using VS2022 UWP c# I am trying to put a DataTemplate into a ResourceDictionary using a x:DataType I get a compile error Severity Code Description Project File Line Suppression State Error The XAML Binary Format (XBF) generator reported syntax…

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,858 questions
asked 2024-09-12T14:45:36.5366667+00:00
Paul Ryan 321 Reputation points
commented 2024-09-19T08:28:47.2766667+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

Graph API and Announcing mandatory multi-factor authentication for Azure sign-in

How to avoid having problems with: getting the presence of Teams user using graph api. In C# by using access token for webchat. I do not want to get effected by the MFA forcing. In other words: How to bypass MFA for multi-tenant azure app using graph…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 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,858 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,450 questions
asked 2024-09-17T17:11:44.76+00:00
Rihamf 0 Reputation points
edited the question 2024-09-19T07:53:48.3+00:00
Rihamf 0 Reputation points
2 answers

when get data from procedure exist on PostgreSQL it show not exist although it exist?

I create stored procedure on PostgreSQL as below CREATE OR REPLACE PROCEDURE app_sec."app_perm_sp_pkg$get_all_tenants"( IN p_tenant_cur refcursor, OUT p_status integer, OUT p_status_desc text) I try to get data by call sp from PostgreSQL…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,459 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,858 questions
asked 2024-09-16T20:41:42.9366667+00:00
Ahmed Salah 0 Reputation points
answered 2024-09-18T18:37:19.37+00:00
Bruce (SqlWork.com) 64,486 Reputation points
1 answer

Read and save data from C# app onto SharePoint

For security reasons, our business is required to maintain a visitor control log to track when external guests enter and leave the premises. When our infrastructure used to have on-prem file/storage servers, I had written a simple app that enabled the…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,598 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,858 questions
asked 2022-05-09T10:04:28.383+00:00
Thomas Lu 1 Reputation point
commented 2024-09-18T17:19:05.4033333+00:00
Ayinapurapu, Vinaydeep 20 Reputation points
0 answers

How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?

Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…

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,762 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,858 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.
805 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-18T13:37:59.9066667+00:00
MERUN KUMAR MAITY 576 Reputation points
1 answer One of the answers was accepted by the question author.

Call backgroundWorker

I creating simple permutation code using c# app. Now I want to display a simple progressbar. Now if the program execute I want to check if the background is busy else I call the backgroundworker and show how many percent remaining. The code below I call…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 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,858 questions
asked 2024-09-09T12:44:37.9333333+00:00
YUI-012 20 Reputation points
accepted 2024-09-18T13:03:48.3066667+00:00
YUI-012 20 Reputation points
2 answers

I got two error in the MAUI project when I try to run the project

Below I attached the error message and screenshot: Severity Code Description Project File Line Suppression State Error APPX0002 Task 'WinAppSdkGenerateAppxPackageRecipe' failed. The specified module could not be…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 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,858 questions
asked 2024-01-31T11:13:00.39+00:00
Manash Dholey 0 Reputation points
answered 2024-09-18T12:13:17.5233333+00:00
Sal Scozzari 0 Reputation points
1 answer

Using Renegotiation in C#

Hi All, We have a WPF application built on .Net Framework 4.8. This application acts an HTTPs client. We are currently using the code provided in the attached file for HTTPs communication. This code is used to run a sequence of commands one after…

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,762 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,858 questions
asked 2024-09-14T20:10:04.57+00:00
S Abijith 386 Reputation points
commented 2024-09-18T08:49:16.0433333+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
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.
3,424 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,858 questions
asked 2024-05-11T02:31:41.49+00:00
wire_jp 206 Reputation points
commented 2024-09-18T08:47:54.93+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,081 Reputation points Microsoft Vendor
1 answer

How to make the Popup control in WPF ignore mouse events

I want to implement a function: display Popup when the mouse enters the Grid, update the Popup position when the mouse moves, and close Popup when the mouse leaves the Grid. This is my current xaml and cs: MainWindow.xaml <Window…

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,762 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,858 questions
asked 2024-09-18T06:11:26.24+00:00
HoWe Yu 41 Reputation points
answered 2024-09-18T07:06:34.44+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor