Where to put the code?
I following the book "C# Tutorial" (https://video2.skills-academy.com/en-us/dotnet/csharp/tutorials/default-interface-methods-versions). Since the book doesn't mention where the code should be placed, I just paste the code on a new tab…
Count JSON's Result
Hi, I have below json code and I want to know how can I get the count of the json's result, something like: int total_found = data.Count; Here is the code I am currently using: var client = new HttpClient(); client.BaseAddress = new…
NetworkStream.Read() from 2 threads?
so i am making a chatting program and stuff, and the user can create his own group to chat in with people, now, here is the thing, i have a different thread that listens any data from the server. but the thing is, i am worried because if the server…
Migrate to Microsoft JSON
Hi, I want to migrate all my newtonsoft json's to Microsoft's JSON. Can you helo with below sample and how to migrate it please? var client = new HttpClient(); client.BaseAddress = new Uri("https://www.mydomain.com/pin.php"); var content…
How to create a multi-factor authentication (MFA) app?
I want use multi-factor authentication for my apps. However, I don't want to use Microsoft Authenticator app. I want to create an app desktop instead of Microsoft Authenticator to use in the authentication step. So, do have any way for me do it? …
In ASP.NET Application,I can't add a local webmethod to my project preferences
First, I create a default Web Service(ASMX).And It has a default webMethod.just like: public class WebService1 : System.Web.Services.WebService { [WebMethod] public string HelloWorld() { return "Hello…
Error CS1061: 'Target' does not contain a definition for 'transform'
So in the Collector.cs class CS0161 is triggered at the first word "transform", but not the second. Error CS1061 'Target' does not contain a definition for 'transform' and no accessible extension method 'transform' accepting a first argument…
Programmatically get the list of excel files by authenticating from SharePoint URL move that files to Local path in C#?
Authenticate the SharePoint URL with UserName, Password(Without using MFA) using c# code and Get the list of files from that SharePoint URL and move those files to the Local path of the computer?
Create Power Bi Dataset using c# code. Use Azure data explorer connection as data source to power bi dataset.
Our requirement is to create power bi dataset using c# programmatically while using azure data explorer connection as data source to it. Can someone please help with the sample code to make connection to azure data explorer while creating pbi dataset …
WebClient UploadProgressChanged called before sending any data and TotalBytesToSend is always -1
To summarize the problem, UploadProgressChanged is called several times, BytesSent goes up until it reached the file size but the file is not actually SENT during that time. The file is sent AFTER. Tried this with sendDataAsync, sendDataTaskAsync, and…
How to keep original shape size using OpenCvSharp.ApproxPolyDP
I am using OpenCvSharp.ApproxPolyDP to reduce the number of points in a polygon. However, this algorithm changes the original shape of the shape and produces cut corners. Is it possible to optimize the number of points in a polygon and keep the original…
APIs that always throw exceptions on .NET Core and .NET 5+
Hello, The list of APIs that always throw exceptions on .NET 5+ has three functions under System.CodeDom.Compiler: CodeDomProvider.CompileAssemblyFromDom CodeDomProvider.CompileAssemblyFromFile …
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
Sorry, we couldn't find your file. Was it moved, renamed or deleted?
I recently Developed c#net Application and want to open word/ excel files in side it. var process = new Process(); string Path = Application.StartupPath + "\\Processed\\"; Console.WriteLine(Path+filename); …
![](https://techprofile.blob.core.windows.net/images/d12a8e50a41a459e9c535bca97b3e34c.png)
Float size and display question
In the code below, I have 2 questions: 1-How to show the full value stored in variable c? 2-The documentaion states that float can hold 6 to 9 digits only, yet its holding a larger value (if result is true) - How is this possible? float c =…
![](https://techprofile.blob.core.windows.net/images/d12a8e50a41a459e9c535bca97b3e34c.png)
How to populate textboxes using datagrid navigation
Please I want to populate the textboxes and combo boxes in WPF with data from the datagrid as the user navigates from one row to the other in the datagrid. When the user click on a particular row, the record on the row populated the textboxes and combo…
![](https://techprofile.blob.core.windows.net/images/7ca689de67ca4855a0ed985ff5add70e.png)
Using Event trigger Azure function, how to convert csv file to parquet file
I want to get a file in azure blob storage and using event trigger function, I want to convert this csv file into parquet format and upload it to another blob storage. I tried to use choparquet reader, but it takes a lot of time to convert the file to…
![](https://techprofile.blob.core.windows.net/images/Z1PCM1zxm0SLa41PVP7B7g.png?8DA865)
How Get list of files by authenticating the sharepoint urls(Source) and move that files to SFTP destination?
Authenticate the SharePoint URL with UserName, Password(Without using Multifactor authentication) Get the list of files from that SharePoint URL and move that files to the SFTP destination.
How to use picturebox in MVP C#
i have forum with picturebox and some texts so i want to insert photo to database how can i do that . i want to save image to the table by stored procedure in sql using MVP c# so i start with stored procedure : Create procedure…
How to extract points from a geo-tagged (geo referenced) PDF with c#
0 I am trying to extract the point data from a geo referenced PDF in C#. Would something like PDFSharp work? For example a PDF map exported for ESRI ArcMap. I can see some information in the PDF like this: …
Did .Net 5 change from .Net Core 3.1 in regards to files automatically being included in a project?
My open source project DataTier.Net (https://github.com/DataJuggler/DataTier.Net) has a feature where after i code generate files that make up a data tier I would launch a tool called Visual Studio Project Updater I wrote where I include all the code…