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?
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
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…
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); …
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
How to fill a ListView?
Dear all, I'm a beginner in C#. Could anyone tell me how to fill a ListView?
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.
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…
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…
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",…
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…
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 =…
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…
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…
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…
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…
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…
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…
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) …
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…