Category "c++sharp"

in WPF. How to scroll Objects in ScrollViewer by mouse-dragging, like as iPhone?

it's done well to scroll by mouse-wheel or scrollbar seed-dragging. but scrolling by mouse-dragging contents on scroll view is not done. How can i implement thi

Can I use C# 9 records as IOptions?

I have just started playing around with C# 9 and .NET 5.0, specifically the new record construct. I find I have a lot of excellent use cases for the shorthand s

No result using makeStyles Material UI in react 18

Hi Im exploring ReactJs and Material UI and Im following outdated tutorials. I having a problem with this material UI makestyles how do I use this? This is the

c# parse date time with timezone

How can we parse date time with time zone. <TIMESTAMP_UTC>20180523160000</TIMESTAMP_UTC> <TIMEZONE>UTC+8</TIMEZONE> this should conve

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