10,278 questions with C#-related tags

Sort by: Updated
0 answers

Switching phone numbers

i wanted to switch my microsoft accounts, so i removed my phone number on my PAST account and put it on my NEW account but it always says something with alias?

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,278 questions
asked 2024-05-05T07:04:59.0733333+00:00
beatrise eee 0 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,396 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 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,627 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,278 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,426 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,278 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,278 questions
asked 2024-05-04T10:19:21.4766667+00:00
MIPAKTEH_1 40 Reputation points
accepted 2024-05-04T13:23:10.9266667+00:00
MIPAKTEH_1 40 Reputation points
1 answer

Visual Studio problem

I am using Visual Studio 2019. And in the toolbox, there is this thing called "NavigationMenu". But I don't see it in the toolbox, and I need it for my project. Please help me

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,663 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,627 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,278 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.
945 questions
asked 2024-05-04T04:29:26.4733333+00:00
Hamoude Assaf 0 Reputation points
answered 2024-05-04T09:21:03.2033333+00:00
Karen Payne MVP 35,191 Reputation points
3 answers One of the answers was accepted by the question author.

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,278 questions
asked 2024-04-30T05:22:04.94+00:00
BenTam 1,581 Reputation points
accepted 2024-05-04T03:22:48.71+00:00
BenTam 1,581 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,278 questions
asked 2024-05-03T23:11:14.2033333+00:00
zequion 111 Reputation points
accepted 2024-05-04T00:58:30.6566667+00:00
zequion 111 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,278 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,296 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,278 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,272 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,278 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,136 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,396 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.
727 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
323 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,278 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
0 answers

How to perform a pivot grid in maui?

Hi, i want to display data from observablecollection in a pivotgrid using .Net Maui 8 like in the picture below. the columns are generated programatically. i write this code in the viewmodel: Stockstcviews =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,900 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,278 questions
asked 2024-05-03T16:24:46.6+00:00
Kaouthar GR AOUICHAOUI 40 Reputation points
0 answers

How to paste image to canvas from WebView2?

In C# uwp project i want to paste image from a WebView2 to my Canvas. I tried to implement that in 2 ways: with drag n drop and with right click copy. Drag n drop cannot be possible because i cannot drag the image from webview2, so the subscribed drop…

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,278 questions
asked 2024-05-03T12:24:11.99+00:00
Tamás Bitó 20 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,627 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,278 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.
945 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.
971 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
0 answers

Unable to upload an image to my blob storage account

So i am trying to upload an image to my blob storage and I keep getting this error <Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed…

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,278 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
94 questions
asked 2024-05-03T08:58:12.4+00:00
ProDevs 0 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,272 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,278 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,546 Reputation points
commented 2024-05-03T08:22:31.3566667+00:00
Lan Huang-MSFT 25,711 Reputation points Microsoft Vendor
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,426 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,278 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,181 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,900 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,278 questions
asked 2024-05-01T21:46:42.2566667+00:00
Tom Meier 80 Reputation points
edited a comment 2024-05-03T01:48:34.54+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,451 Reputation points Microsoft Vendor
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,278 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,579 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,191 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,714 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.
672 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,278 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,563 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