10,270 questions with C#-related tags

Sort by: Updated
2 answers

Select Delete commands

Hello, I've been given this samples for insert into and update: Using command As New OleDbCommand("INSERT INTO Table (Column1) VALUES (?)", connection) command.Parameters.AddWithValue("@param1", field1) …

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,270 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,575 questions
asked 2024-05-02T14:23:13.35+00:00
StewartBW 305 Reputation points
answered 2024-05-02T15:39:26.16+00:00
Karen Payne MVP 35,036 Reputation points
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,891 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,270 questions
asked 2024-05-01T21:46:42.2566667+00:00
Tom Meier 80 Reputation points
edited a comment 2024-05-02T15:23:16.7033333+00:00
Tom Meier 80 Reputation points
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,709 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,436 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.
671 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,270 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,547 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,270 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,575 questions
asked 2024-04-30T13:38:47.02+00:00
StewartBW 305 Reputation points
accepted 2024-05-02T14:19:50.1266667+00:00
StewartBW 305 Reputation points
0 answers

How to use openxml and c# to generate 100% stacked bar graph code using powerpoint where bar data can be modified.

using .net 6 and openxml to generate powerpoint , how to generate the bar graph code in powerpoint and modify code according to requirement of 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.
10,270 questions
asked 2024-05-02T12:44:36.0733333+00:00
Bhaskar Jyoti Das 0 Reputation points
commented 2024-05-02T14:04:25.05+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
3 answers

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,263 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,270 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,546 Reputation points
edited a comment 2024-05-02T12:58:23.16+00:00
Gani_tpt 1,546 Reputation points
1 answer

Does Maui-Android have an issue with Shadow property for the Border control?

When I define Shadow for the Border control (see XAML code below), Android fails to display. It works fine on WinUI. If I remove Shadow definition in XAML it works for Android. Does Android have an issue with Shadow? <Border Stroke="Blue"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 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,270 questions
asked 2023-03-27T18:27:32.8933333+00:00
dg2k 1,386 Reputation points
commented 2024-05-02T11:01:02.5566667+00:00
Haider Ali Faizi 80 Reputation points
1 answer

How to open the new Outlook to send en email with attachments?

Hello, I would like to know how to open the new Outlook mail to send an email with attachments in c#. I tried generating an .eml file and open it in the new outlook but the new Outlook does not support the X-Unsent: 1 flag. So the email does open, but…

Outlook
Outlook
A family of Microsoft email and calendar products.
2,999 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,270 questions
asked 2024-04-30T17:15:16.43+00:00
Wambo 0 Reputation points
commented 2024-05-02T10:25:26.1066667+00:00
Castorix31 81,726 Reputation points
2 answers

How to fill a ListView?

Dear all, I'm a beginner in C#. Could anyone tell me how to fill a ListView?

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,270 questions
asked 2024-04-30T05:22:04.94+00:00
BenTam 1,561 Reputation points
commented 2024-05-02T09:38:49.3066667+00:00
Karen Payne MVP 35,036 Reputation points
0 answers

internal error in the .NET Runtime at IP 70DE92C3

Application terminates when loading report viewer, event viewer shows an error: "internal error in the .NET Runtime at IP 70DE92C3"

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,270 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,122 questions
asked 2024-04-15T16:08:52.4566667+00:00
Tom McKeown 0 Reputation points
commented 2024-05-02T09:20:44.7566667+00:00
Jiachen Li-MSFT 26,666 Reputation points Microsoft Vendor
6 answers

How to target .NET Framework 4.0 in VS 2022 on Windows 11?

Working on some old projects targeting .NET Framework 4.0. I used VS 2022 to open the solution and was told to install 4.0 targeting pack. I can't find the download link on the dotnet website, nor the installation option in Visual Studio Installer. …

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,270 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,122 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.
942 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,204 questions
asked 2022-09-05T07:41:23.313+00:00
Lee Feng 136 Reputation points
edited a comment 2024-05-02T07:39:18.2866667+00:00
Fabrizio Cioni 0 Reputation points
0 answers

After updating Clickonce today, it won't run.

We distribute our product using ClickOnce, based on .NET Framework 4.0. I conducted an update for my product today, but many users encountered issues where it wouldn't launch after the update. After trying various methods, I found that following the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,648 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,270 questions
asked 2024-04-29T04:49:56.9466667+00:00
Chanhun.lee 5 Reputation points
commented 2024-05-02T07:26:17.8533333+00:00
Minxin Yu 10,031 Reputation points Microsoft Vendor
0 answers

ORA-00933: SQL command not properly ended,

Hello,I am facing a non usual exception with no scenario having been caught regarding this exception. I have an platform enterprise application consisting of many modules , some of those modules are dealing with the DB via the LINQ to entity technique…

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,270 questions
asked 2024-05-01T20:08:51.9533333+00:00
mohammed refaat 0 Reputation points
commented 2024-05-02T06:53:01.36+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
0 answers

ASP.NET button control not able to make disabling in panel control using c#

i am trying to make disable button controls through panels. In the panel, i am using textbox, label, fileupload,gridview and button controls. i am able to disable only textbox, label and gridview. but, i am unable to make disable fileupload and button…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,270 questions
asked 2024-04-30T18:21:01.5633333+00:00
Gani_tpt 1,546 Reputation points
commented 2024-05-01T21:44:38.82+00:00
Albert Kallal 4,651 Reputation points
1 answer

How to prevent the web page to read or write cookies in WebView2

I'm trying to write to program with webview2, the control document is here: https://learn.microsoft.com/en-us/microsoft-edge/webview2/ The WebView2.CoreWebView2.CookieManager provides lots of methods to read/write cookies, but this is not what I want. I…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,138 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,270 questions
asked 2024-05-01T10:18:02.0666667+00:00
Lan Zuo 1 Reputation point
answered 2024-05-01T16:16:26.1566667+00:00
Bruce (SqlWork.com) 56,531 Reputation points
3 answers

How to setup Excel Interop for Exccel 365

I've been attempting to setup a project that allows me to use Excel Interop in C# on the Office 365 version (I need to create and edit some sheets to automate some tasks from work involving CSV files). However almost every attempt has resulted 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,270 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,504 questions
asked 2022-07-24T23:40:22.707+00:00
Zach Sim 21 Reputation points
answered 2024-05-01T15:04:18.05+00:00
Richie Mathison 0 Reputation points
2 answers

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,617 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,270 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.
942 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.
969 questions
asked 2024-04-21T12:46:33.5133333+00:00
Jay-R Hayashi 206 Reputation points
edited a comment 2024-05-01T14:43:30.4533333+00:00
Jay-R Hayashi 206 Reputation points
2 answers One of the answers was accepted by the question author.

How to add to "GraphicsView" class with “DrawableProperty" in dotnet maui

Hello! I trying drawing of the circle in center which is touched in the "GraphicsView" control. And I thought the one of the important points is how to add "GraphicsView" class with "DrawableProperty" in dotnet Maui. Please…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,891 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,270 questions
asked 2024-04-27T01:29:11.7533333+00:00
康二郎 井上 20 Reputation points
commented 2024-05-01T12:10:47.95+00:00
康二郎 井上 20 Reputation points
2 answers One of the answers was accepted by the question author.

Add Items to List Randomly

I am fetching 50 questions from Api https://supaquizapi.azurewebsites.net/api/Questions Loading into list and deleting 40 questions randomly. Now I just to add 10 questions randomly to Questions List<InQuestion> res = await GetApiData(); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,180 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,270 questions
asked 2024-04-30T08:09:59.47+00:00
Maui Learner 440 Reputation points
accepted 2024-05-01T10:16:55.2566667+00:00
Maui Learner 440 Reputation points
0 answers

How to Covert .stl file to .jpg file.

I want to convert a .stl file to a .jpg file, and the .stl file has a face with numbers and letters. I want to find the face through code and convert it to an image. It would be best to use C++ or C#.

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,270 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,533 questions
asked 2024-05-01T05:03:56.9233333+00:00
Pearl Ding 80 Reputation points
commented 2024-05-01T09:27:04.3466667+00:00
Hui Liu-MSFT 38,866 Reputation points Microsoft Vendor