Get Column Index with Name Using StreamReader
How do you get the column index with the column name with a StreamReader? int column_index = . . . string column_name; using( StreamReader sr = new StreamReader( "MyFile.csv")) { string line = sr.ReadLine( ); …
C#
How to Retrieving Information from Taskbar Running Software in WPF
I am attempting to create a custom taskbar in WPF and have encountered several issues: The following code retrieves a list of running processes, but it includes more processes than those displayed on the taskbar: Process[] processes =…
C#
How to fix WdPartOfSpeech that cannot be applied to operands of string[] data type.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException HResult=0x80131500 Message=Operator '==' cannot be applied to operands of type 'string[]' and 'Microsoft.Office.Interop.Word.WdPartOfSpeech' Source=<Cannot evaluate the exception source> …
C#
Returning Deserialized Data from Method
Hello everyone and thanks for the help in advance. I'm trying to create a reusable method that makes a call to a WebApi and returns the deserialized data in a class, but can't get the syntax working correctly. Here is my code: public class…
C#
Implement the Visual Studio Code debugging tools for C# - Unit 6 typo
The type attribute specifies the type of debugger to use for the launch configuration. A value of codeclr specifies the debugger type for .NET 5+ and .NET Core applications (including C# applications). This question is related to the following Learning…
C#
Need to discern which HID device inputs are coming from (C# Windows Form)
I'm programming a system which will have several HID devices. Each HID device is intended to input to a different part of the process (program). Specifically I'll have three bar code readers, one at different parts of a test system, to monitor where a…
C#
Object becomes null after calling HTTPClient.PostAsJsonAsync to access Web Api in web form
Object null after calling HTTPClient.PostAsJsonAsync in .NET 4.8 c#
C#
stripe not working.NullReferenceExceptionObject reference not set to an instance of an object
Hi, Thanks for the help. However, My stripe is not loading. Any help. There is an error: Object not set to an instance of an object. Github Link:https://github.com/Thibaut501/Mango Awaiting your reply, Best Regards, Fabrice
C#
How to clear most recently used list in C# UWP application. StorageApplicationPermissions.MostRecentlyUsedList clear/remove doesn't work
How to clear most recently used list in C# UWP application StorageApplicationPermissions.MostRecentlyUsedList.Clear() or StorageApplicationPermissions.MostRecentlyUsedList.Remove(token) I can able to add new entries using below code and I can see the…
C#
How to prevent row selection in DataGridView when clicking on the first row
I have the method below that defines a DataGridView where a user will select an item which will display the details on the form. This is a C# Windows Form app using .Net Framework 4.8.1. I am using the DataGridView.CellClick event to bind the controls…
C#
ASP.NET Web Form: Index out of range on redirects.
I can get either redirect by themselves to work. If I use both of them, I get an error 'Index was out of range. Must be non-negative and less than the size of the collection.' I even separated the code between page preload and page load functions, and I…
C#
How to enhance OpenFileDialog() to choose folder instead of files
Can we enhance OpenFileDialog() to choose folder instead of files? Currently I am using FolderBrowserDialog dialog to select folder from the system using c#. But I am looking, UI which is provided by OpenFileDialog as shown in attached file. Or is there…
C#
Flex Consumption Option Set binding not working
In this instance its causing issues where our Service Bus Triggers are no longer being hit. Removing the __ reference and referencing an app setting that does not have a prefix works fine. [Function(nameof(ProcessInputtedMessage))] public async…
C#
FolderBrowserDialog dialog does not scroll to selected folder and last folder does not get selected if path does not exist
I am using FolderBrowserDialog to browse folder in the system. I am observing following issues 1)FolderBrowserDialog dialog does not scroll to selected folder. I need to manually scroll down to selected folder. one forum suggested to append directory…
C#

RED box around UWP app
everytime I add a new page to my UWP app, it shows a red box around my screen. Not my xmal, how do I fix this?
C#
Problem while connecting to a Azure storage from a Azure function
I have created a function app using VS 2022 . Its the defualt blob trigger app created by VS. I have also created a blob container using the Azure storage emulator . When I try to run my app I get " An unhandled exception has occurred. Host is…
C#
How can I refer the netstandard2.0 in the .net472 target framework?
I want to build a project with target framework net472, and this project has a reference to "Microsoft.Extensions.DependencyInjection.Abstractions" when I build the project, the output result contains the package reference with net462 dll,…
C#
Issue with visual studio professional 2022 | version :
Hi Team, I am encountering a recurring issue with Visual Studio Professional 2022 while working on my project. Initially, everything works as expected, but at some point, I start receiving the following error: MissingMethodException: Method not found:…
C#
Pipelining Legacy .NET Framework builds: Where to start?
I'm working with a dev team at my company to migrate their code from SVN to the company Gitlab and then create an automated pipeline. Their application is using .NET Framework 4.8, and Cruise Control for their current build pipeline along with an old…
C#
Signing Certificate for Winforms application
HI there, I have a WInforms application that I developed using C#. I use ClickOnce to publish the software to a private on-site server. When the client tries to install the software, they get a warning saying that the publisher is unknown and there is…