Category "c++sharp"

RecurrencePattern: range of recurrence - "End after X" vs "End by date"?

I have a VSTO Outlook Add-in and I need to collect all calendar and tasks items with all their properties. This is ok, but the problem come when I use the Recur

Winform c# combobox border is like a hole in my program

I know this is a minor thing but it's really annoying. I have a winform project where I've added a combobox, but the borders is like a hole in my program. If I

How to mock IConfiguration.GetValue

I tried in vain to mock a top-level (not part of any section) configuration value (.NET Core's IConfiguration). For example, neither of these will work (using

WPF ScrollBar styles

Is it possible to create scrollbars like in this picture? This picture was taken from this link: http://codesdirectory.blogspot.be/2013/01/wpf-scrollviewer-co

Is there a way change the Controller's name in the swagger-ui page?

I'm using Swashbuckle to enable the use of swagger and swagger-ui in my WebApi project. In the following image you can see two of my controllers shown in the s

How can an outlook addin detect when an email is deleted

I have created an Outlook addin that handles attachments. When an attachment is added to a mail item I am processing it and adding a user property containing in

Markdown in user comments (with proper sanitize and Youtube videos)

I stucked on decision how I should proceed with Markdown processing and Html sanitize. I have this user requirements for comments/articles: Users should be able

C# - ASP.NET - Inserting Date from a calendar into a DataBase

I am trying to store the date from a calendar which the user has selected into a database. It seems to not being inserting it into the Access Database. The DB f

The right way to DI NpgsqlConnection postgreSQL with multiple connectionString in ASP.NET Core 3.1

I'm struggling to register DI NpgsqlConnection() with multiple connection strings in ASP.NET Core 3.1, Dapper v2.0.78 & Postgres v11. I will provide the cur

C# Outlook Plugin - Create new item into Sent Box without send that email

I'm writing a plugin for outlook, I want to create new item into Sent Box but i don't want to send it, just save it to Sent Box. Pls, help me!

Merge two table,same column with empty values

Two datatables having same columns, unable to merge the table. Getting error message - **DataExceptionion was caught** <target>.EmployeeID and <so

3d unity c# car reverse direction movement

I need some help in moving my player car in the reverse direction in unity C# scripting. The forward movement is perfect but the reverse movement is totally opp

The type forwarder for type 'System.ComponentModel.INotifyPropertyChanging' in assembly 'System' causes a cycle

I am working on upgrading WPF application which is built using .Net Framework 4.6 to .Net 6. While upgrading a few assemblies, I encountered this strange issue

Example of Dapper query with n number of Navigation Properties

I'm building a Dapper query with joins to 8 tables but apparently the Dapper SqlMapper only supports 7. I read in this article that there is an overload that

VS Code CSC : error CS1617: Invalid option '7.3' for /langversion

I downloaded VS 2017 15.7, .NET Core 2.1.2 and Blazor to try it out. It wasn't working in VS 2017 properly and thought I would try through the dotnet cli and V

Passing XMLDocument to Stored Procedure

My current setup is as follows: Client Javascript JSON stringified object is passed to a server function as so Client: var requestObject = JSON.stringify(cli

unable to find "Microsoft Outlook 15.0 Object Library" inside Visual Studio 2012

I have Visual Studio 2012 professional edition, and i want to add a reference for "Microsoft Outlook 15.0 Object Library" inside my web project, but i can not f

How to programmatically read xml file inside cab file

Is there any way for me to read contents of an xml file in a cab file in C#? I know how to use XDocument to load an xml file and read its contents, but not sure

log4net without app.config

I am trying to log to an sql server with the adoNetappender it works with an app.config but I need it whiteout an app.config this is my test code for the adoNet

MailMessage System.Net.Mail.SmtpException, Error when trying to send email via C# form

hi im stuck and keep getting errors when trying to setup a send email for. here's my using.system: using System.Net; using System.Web; using System.Net.Mail;