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