Category "c++sharp"

Save rich text boxes as pdf files and send an email with attachments

I want to save rich text boxes as pdf files. Each time I save a file Adobe Reader can't open it. private void button3_Click(object sender, EventArgs e) { Sa

How to Make a Custom Extension for Reactive Extensions

It is not hard to find an example of how to make a custom LINQ extension method. But I can't find an example of how to make a custom Rx extension method. Can

C# event debounce

I'm listening to a hardware event message, but I need to debounce it to avoid too many queries. This is an hardware event that sends the machine status and I h

Fix string encoding issues

Does anyone know of a .Net library (NuGet package preferrably) that I can use to fix strings that are 'messed up' because of encoding issues? I have Excel* fil

How to find dynamically created XAML component by Name in C#?

How to find dynamically created XAML component by Name in C#? I created next button and put it into the Stack Panel. var nextButton = new Button(); nextButton

WebException how to get whole response with a body?

In WebException I cannot see body of GetResponse. This is my code in C#: try { return GetResponse(url + "." + ext.ToString(), method, headers

How to override other windows application's elements? [closed]

Can you please point me into the right direction? I want to edit other application textbox or click, programmatically. For example, in a web

get message id of sent item from exchange in cache mode in outlook

I am getting message id (using propertyaccessor) in outlook for microsoft exchange emails for sent items if not using cached mode. But, in cached mode, it is e

Process.Start and Process.StartInfo not passing arguments properly

The short story is I'm writing a front-end for the emulator MAME as a study in WPF and C#. The GUI is set, it's reading cfg's properly, everything is fine ex

How to read all the rows of the excel sheet and run in Selenium test script using C#?

I need help reading all the rows from excel sheet as a test data in my selenium test case. I can read only one row of an excel sheet with the following code.

How do I run a Python script from C#?

This sort of question has been asked before in varying degrees, but I feel it has not been answered in a concise way and so I ask it again. I want to run a scr

Is it possible to access redemption method of outlook add in using windows services

I have created outlook addin in C# to storing mail subjects in SQLite database using redemption(background). Can we access redemption method/Class of outlook ad

How to start tasks after cancelling

I have a Windows form with three buttons. One button adds entries to a BlockingCollection. One starts processing the list and one stops processing the list. I

How can I enable Server GC in .NET Core?

I have a .NET Core app (MyApp.exe) developed in VS2017 running on the 1.0.4 version of the SDK. I have tried adding an App.config with the following entries: &

How to programmatically (C#) create and add a default (HTML) signature in Outlook 2013?

Sorry for bothering you - but maybe somebody can help me here!? We are creating an Outlook 2013 VSTO Add-In to manage Corporate Signatures centrally and publis

Change default Identity routes in an Angular & ASP.NET Core project

I configured Angular to use "login" route to show a LoginComponent page. That's ok. But when I try to access some authorized page without login made, I got th

Shader error in 'TextMeshPro/Distance Field': failed to open source file: 'TMPro_Properties.cginc' at line 126 (on d3d11)

The textmesh pro file is not loading in unity. I am making a project using arcore and due to some issue with textmesh pro I was not able to build it properly.

Adding two DateTime objects together

Is there any better way to add one DateTime object to another one, than this: DateTime first = new DateTime(2000, 1, 1); DateTime second = new DateTime(11, 2,

How to configure the web.config to allow requests of any length

I am building a site in which i would like to create a file client side from the value of a textarea element. I have the code in place to do this, but i am get

Change value of a textbox, compared to another text box value with a ratio

I am working on ASP.NET C#. With Javascript, I need to change the value of a textbox, when another text box value changes with the ratio of 3:2. For example