10,369 questions with C#-related tags

Sort by: Updated
0 answers

How can I find the Text (width/length/ending point) in CanvasDevice via CanvasDrawingSession

fontFamilyName = $"ms-appx:///Assets/HelveticaNeue-Bold.ttf"; CanvasTextFormat FNtextFormat = new CanvasTextFormat { FontSize = CardTheme.FN.FS, …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 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.
10,369 questions
asked 2024-05-07T06:55:28.0533333+00:00
Saranya Karthik 40 Reputation points
commented 2024-05-07T07:35:54.9333333+00:00
Roy Li - MSFT 32,466 Reputation points Microsoft Vendor
1 answer

How to create Scatter chart in pptx using OpenXML C#

I am trying to create Scatter chart in PPT using OpenXML C#. but the chart series not showing on graph. though I can see the attached excel file data after click on edit data of graph.

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,369 questions
asked 2021-02-25T06:57:36.31+00:00
Vineeta Shukla 1 Reputation point
commented 2024-05-07T03:22:00.95+00:00
Stefan Krabbe 0 Reputation points
0 answers

Access data stored in vTPM

Hi All, We have a WPF application running on .Net Framework v4.8. We are currently using 'ESXi' to host 'Windows Server 2022', which inturn hosts the WPF application. We are planning to store all the sensitive data related to the application, such as…

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,686 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,369 questions
asked 2024-05-06T12:16:02.39+00:00
S Abijith 346 Reputation points
commented 2024-05-07T02:03:01.4633333+00:00
Hui Liu-MSFT 41,146 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,369 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,386 Reputation points
accepted 2024-05-06T23:51:20.61+00:00
Anjali Agarwal 1,386 Reputation points
3 answers One of the answers was accepted by the question author.

How to upload file and view those file in modal popup using gridview

I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,369 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,746 Reputation points
accepted 2024-05-06T17:33:43.1366667+00:00
Gani_tpt 1,746 Reputation points
2 answers

MAUI IMAGE LOAD ISSUE USING ASSEMBLY

Hi, I'm encountering a significant problem in my MAUI development. I've developed a MAUI library project, and when I reference it in another MAUI project, everything functions correctly. However, when I attempt to use the assembly or DLL within the same…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,228 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,812 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,970 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,369 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.
771 questions
asked 2023-11-06T05:36:29.2966667+00:00
SANJAY KUMAR JHA 0 Reputation points
answered 2024-05-06T13:57:08.4566667+00:00
anurag pal 0 Reputation points
3 answers One of the answers was accepted by the question author.

How to view/show image from file server path on button click

i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,369 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,746 Reputation points
commented 2024-05-06T10:18:55.25+00:00
Gani_tpt 1,746 Reputation points
1 answer One of the answers was accepted by the question author.

Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project

Ado.Net Entity Data Model does not appear on item page in Visual Studio 2022 Asp MVC Project FrameWork= .:Net 7.0 Please help. Thanks not as below

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,687 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,369 questions
asked 2023-01-17T06:10:50.91+00:00
umutins umut 20 Reputation points
commented 2024-05-04T19:33:45.9733333+00:00
Marcelo Pintado 0 Reputation points
0 answers

Connect to a paired Bluetooth device from C#.

It is a duplicate of my question on StackOverflow. There is a "Connect" and "Disconnect" buttons in Windows Bluetooth settings. I want to create a console application which would make Windows connect and disconnect from…

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,448 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,369 questions
asked 2022-02-01T18:40:41.643+00:00
PolarGoose 11 Reputation points
commented 2024-05-04T17:17:06.5+00:00
Eric 0 Reputation points
1 answer One of the answers was accepted by the question author.

What different between "object source" and "object sender".Somebody show some example.

void OnCreated(object source, FileSystemEventArgs e) { try { FileInfo fileInfo = new FileInfo(e.FullPath); string TargetFile = Path.Combine(TargetPath, fileInfo.Name); File.Copy(e.FullPath, TargetFile, true); …

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,369 questions
asked 2024-05-04T10:19:21.4766667+00:00
MIPAKTEH_1 60 Reputation points
accepted 2024-05-04T13:23:10.9266667+00:00
MIPAKTEH_1 60 Reputation points
1 answer One of the answers was accepted by the question author.

Common directory for Nuget packages

I have a project that includes several dlls projects in C# and I want the Nuget packages to be stored in a common directory instead of being stored in each "Packages" directory of each project.

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,369 questions
asked 2024-05-03T23:11:14.2033333+00:00
zequion 131 Reputation points
accepted 2024-05-04T00:58:30.6566667+00:00
zequion 131 Reputation points
1 answer

ConsoleKeyInfo.Key returns 231 for number keys 0..9

I have a program which uses the ReadKey function. The key property of the returned ConsoleKeyInfo structure is 231 for all the number keys 0..9 on the regular keyboard and the numeric key pad. For the OnScreen keyboard the key returns 48..57. 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,369 questions
asked 2021-12-14T17:42:20.63+00:00
Dani Stutz 1 Reputation point
commented 2024-05-03T20:08:42.0433333+00:00
Woo, Gary 0 Reputation points
1 answer

ADB1000 solutions mono.androidtools.adbexception system.io.endofstreamexception

I've been working with C# for over a year now and been making applications with Winforms, Wpf, UWP (individually) and using Xamarin Mobile to make UWP, Android and IOS in the one applicaiton hence called Cross-Platform. Up till now everything has…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 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,369 questions
asked 2022-03-14T23:27:35.567+00:00
Red stone 1 Reputation point
commented 2024-05-03T18:40:00.9233333+00:00
北行 叶 0 Reputation points
1 answer

how to save/update image location in a database via .cs controllers class (button click)

code behind Create.cshtml file the update button @model IMS_Project.Models.Product @{ ViewBag.Title = "Product"; ViewBag.SubTitle = "Create"; @using (Html.BeginForm("Create", "Product",…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,369 questions
asked 2024-05-02T15:50:37.5866667+00:00
KwebenaAcquah-9104 306 Reputation points
commented 2024-05-03T17:29:31.86+00:00
AgaveJoe 26,166 Reputation points
1 answer One of the answers was accepted by the question author.

How do I build a .NET WinUI 3 App without VisualStudio?

Let's say that the VisualStudio license terms don't fit my use case. Perhaps my employer defines itself as a "Java shop", and I'd like to show them the goodness of native apps. But I can't do so by producing an app they're not free to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 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.
730 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
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,369 questions
asked 2023-05-31T20:50:51.39+00:00
Geronimus 20 Reputation points
commented 2024-05-03T16:55:37.2+00:00
Peter N. Moore 0 Reputation points
3 answers One of the answers was accepted by the question author.

Calendar booking using datagridview

Good day everyone, I make a calendar booking using datagridview. Please take a look the image below. as you can see they have Book start and Book end. Now I want to put a color from date start to date end. Please take a look the image below. I don't…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,687 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,369 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.
949 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.
975 questions
asked 2024-04-21T12:46:33.5133333+00:00
BgnerNprg207 226 Reputation points
accepted 2024-05-03T10:28:21.58+00:00
BgnerNprg207 226 Reputation points
1 answer

how to get bus reported device description for VSP com port

Hello, I am using C# to detect usb vsp com port for my ARM controller via usb port. My program has been working properly, but I can't get the descriptor on ARM controller because windows use universal serial device driver. I found item "bus reported…

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,448 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,369 questions
asked 2024-04-23T18:20:45.4133333+00:00
YANG HONG 0 Reputation points
edited a comment 2024-05-03T07:27:34.4966667+00:00
Jeanine Zhang-MSFT 9,261 Reputation points Microsoft Vendor
0 answers

Data Models

I have two Models, CustomerModel and CustomerInfo neither one relates to the other except that the Model(s) have fields in the same table and I wanted to separate the fields in the Models because they are used in different views of my .Net Maui…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,970 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,369 questions
asked 2024-05-01T21:46:42.2566667+00:00
Tom Meier 140 Reputation points
edited a comment 2024-05-03T01:48:34.54+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,026 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

AuthorizationPermissionMismatch error when accessing blob file with indirect permission in RBAC

Hi, I'm using BlobContainerClient for accessing blobs from code (C#) private async Task<BlobClient> GetBlobClientAsync(string blobName, string container, CancellationToken cancellationToken) { var containerClient = await…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,746 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,485 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
685 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,369 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,816 questions
asked 2024-04-18T23:01:28.29+00:00
Kamil Zak 20 Reputation points
accepted 2024-05-02T14:59:55.4033333+00:00
Kamil Zak 20 Reputation points
2 answers One of the answers was accepted by the question author.

UPDATE fields

Hello, This works when using insert into: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) command.ExecuteNonQuery() …

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,369 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,601 questions
asked 2024-04-30T13:38:47.02+00:00
StewartBW 505 Reputation points
accepted 2024-05-02T14:19:50.1266667+00:00
StewartBW 505 Reputation points