10,268 questions with C#-related tags

Sort by: Updated
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,268 questions
asked 2024-04-30T05:22:04.94+00:00
BenTam 1,561 Reputation points
commented 2024-05-02T03:35:10.3+00:00
BenTam 1,561 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,890 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,268 questions
asked 2024-05-01T21:46:42.2566667+00:00
Tom Meier 80 Reputation points
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,268 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
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,268 questions
asked 2024-05-01T20:08:51.9533333+00:00
mohammed refaat 0 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,268 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
2 answers

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,268 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 285 Reputation points
answered 2024-05-01T15:06:25.55+00:00
Karen Payne MVP 35,036 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,268 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,501 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,616 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,268 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

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,996 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,268 questions
asked 2024-04-30T17:15:16.43+00:00
Wambo 0 Reputation points
answered 2024-05-01T12:18:10.5166667+00:00
Wambo 0 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,890 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,268 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,178 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,268 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,268 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,532 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,331 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Scriptmanager alert not displaying properly in same page

I am doing some simple screen add functionality and after end of saving, i am using scriptmanager.RegisterStartupScript() for save message. when i run the program, the alert have not been throwing properly. it showing same page but, without controls like…

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,268 questions
asked 2024-04-29T17:12:15.2666667+00:00
Gani_tpt 1,546 Reputation points
accepted 2024-04-30T17:07:12.91+00:00
Gani_tpt 1,546 Reputation points
0 answers

.NET - Azure Function - Azure service bus repeat call

I know this may be a trivial question, but I'm not sure what to do. I am using Azure Service Bus together with MassTransit. I have two services. Service1 is a WebApi application, and Service2 is a couple of Azure Functions units that respond to service…

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
548 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,285 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,388 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,268 questions
asked 2024-04-30T12:43:43.5633333+00:00
Petr Klekner 40 Reputation points
1 answer

Compile a Dll even if no other dlls it refers to exist.

I have several Asp.net, Winforms and Wpf projects and use several dll projects that are common in C#. Sometimes, for example, when the "Recompile" option is executed, all the dll projects are cleaned, so the compiled ones are no longer in…

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,268 questions
asked 2024-04-30T02:47:09.7766667+00:00
zequion 91 Reputation points
commented 2024-04-30T11:06:58.25+00:00
Jiale Xue - MSFT 32,076 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

LinQ query m:n relation

Hello, My input is string vendor = "xxx3"; string vendorLocation = "bbb3"; The result should be which parameter is the right one. <Label id="3" vendor="xxx3" vendorLocation="bbb3"…

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,268 questions
asked 2024-04-25T17:41:11.5066667+00:00
Noah Aas 140 Reputation points
accepted 2024-04-30T11:01:37.7533333+00:00
Noah Aas 140 Reputation points
1 answer

auto shutdown vm using azuresdk fluent in c sharp

this is my code to create vm in azure using azure sdk fluent my question is i need to set auto shutdown option while creating vm i need to set the time while creating the vm so in that case the vm will get poweroff when the time arrives is that…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,148 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,268 questions
asked 2024-04-26T06:45:05.0766667+00:00
Dharshan M 0 Reputation points
edited a comment 2024-04-30T10:28:53.6333333+00:00
Sina Salam 3,801 Reputation points
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,268 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,546 Reputation points
answered 2024-04-30T09:33:46.47+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

Adding tags to SharePoint file with Graph Service Client

Hiya, I'm currently working on a project where the goal is to automatically update SharePoint. Recently, I stumbled upon a problem with adding tags to an item. I have a multi choice property in SharePoint, but I can't seem update this with the graph api.…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,664 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,268 questions
asked 2024-04-15T12:55:23.17+00:00
ThibaultVerlinde-4578 120 Reputation points
edited the question 2024-04-30T07:58:02.42+00:00
AllenXu-MSFT 16,091 Reputation points Microsoft Vendor
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,641 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,268 questions
asked 2024-04-29T04:49:56.9466667+00:00
Chanhun.lee 5 Reputation points
edited a comment 2024-04-30T06:32:06.2033333+00:00
Chanhun.lee 5 Reputation points