Category "c++sharp"

Executing Command line .exe with parameters in C#

I'm trying to execute a command line program with parameters from C#. I would have imagined that standing this up and making this happen would be trivial in C#

Editing an appointment programmatically

I'm using Microsoft.Office.Interop.Outlook to load appointments into the interface and to edit appointments . I can load appointments completely fine, editing d

Unity input is not working, how to fix it?

this is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // Start is called

If async-await doesn't create any additional threads, then how does it make applications responsive?

Time and time again, I see it said that using async-await doesn't create any additional threads. That doesn't make sense because the only ways that a computer c

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