How to move the cursor in a DataGridView? No. .Selected = true; as this puts the cell in blue by default! I want the cursor to move When I click on "Add" button
I am trying to launch ASP.NET project on a local computer. IIS responds with 401.0 status code, stating that "authenticated user does not have access to a resou
The myriad of different web.config settings have always been a bit of a mystery to me. I'm glad Microsoft has cleaned up some of the content put there by defaul
I'm using windows forms in C# and I need to make a textbox's background color transparent. I have a trackbar that goes from 0 to 255 that is supposed to control
I'm writing a service that cleans files by removing all malicious content. I'm using Interop Excel & Word api's like this: Excel var excelApp = new Mi
I am creating Word Document Using Word Template Following is code Word.Document wordDoc = new Word.Document(); wordDoc = wordApp.Documents.Add(ref oTempl
below is an example of production code that I am trying to unit test. I am struggling to resolve a dependency to a concrete class that is being used. public My
I'm writing a service that cleans files by removing all malicious content. I'm using Interop Excel & Word api's like this: Excel var excelApp = new Mi
I'm constructing a set of filter-classes which will all have the same method 'Applyfilter'. How should I define the interface which contains apply filter? The o
I need to encode a URL in a class library assembly where I don't want to reference System.Web. The URL contains several spaces https://query.yahooapis.com/v1/p
I have been searching intensively, but the returning results are not quite what I am trying to achieve. I want to access a remote folder on a server. The pain p
Thanks in advance. Can anyone please help me get this button working so I can display a row from the Northwind database 'only' when the button is clicked. I h
I wrote a code but for some reason it doesn't work...can you tell me what's wrong? I want the app not to stop when I get an exception, only to send that excepti
I've configured my db context to retry on failure this way: optionsBuilder.UseSqlServer(connectionString, sqlServerOptionsAction: sqlOptions => {
It almost works after the following steps: Install the hosted version of blazorwasm template app. dotnet new blazorwasm --hosted -o HostedWasm Copy _Hosted.cs
I have literally seen thousands of these "WCF" questions on the internet so far, but I am beginning to think that it is impossible. Please someone tell me I am
I am working with winForms in c#. I want to access video file from resources without using any dialog box for load or select. That means I want directly store v
The website I have written requires a convert web page to PDF functionality. After looking at the options HiQPdf looked like the best option and did all that wa
When I try to insert an array as one of the Values in local.settings.json file: { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "", "Azu
I'm trying to parameterize a raw SQL query for an Oracle synonym (non-entity) in EF 4 and I am having some problems. Currently I am doing something like the co