Category "c++sharp"

What is the best way to store some data in VSTO addin?

I have developed one outlook add-in, that has to be On or Off. to do that i have declared one static variable as shown below, ThisAddIn.cs public static bool

What SQL Error codes should be allowed to retry?

We have a SQL Server 2014 AlwaysOn Availability Group that we connect to via standard C# SqlConnection objects. We want to catch the exceptions that are happeni

How to Get the Index of ListView Row on Button Click

I am making a wpf Application and encountered a Problem. I have used a listview and added a Button in it via Xaml. <ListView x:Name="list_View" Grid.Colu

Oracle V$SESSION Machine is <ComputerName>\<ComputerName> instead of <Domain>/<ComputerName>

I've a strange behavior with oracle and it's seems it causes problem with Security Policies. When I look the V$Session table, some connection "MACHINE" are only

How to create SQL Server data backup file in Outlook Compatible format by C# code

I want to take backups of all emails from SQL Server database and need to create it's backup file using C# code in outlook compatible format. So that emails can

WSDL Endpoint configuration in .NET Core

I'm trying to work with WSDL using .NET core. Currently, I'm able to import the WSDL and the related files are generated: The structure is done in the right

Getting STA error when try to open OpenFileDialog box in Excel addin project

I have created Excel addin project using Visual Studio to insert a data into database. The problem is I'm unable to open a File upload box in this. I am getting

Asp.Net 5/Core app.UseExceptionHandler() not working

I have in startup (UPDATE: the solution was to move UseRouting under the /api/error routes) app.UseRouting(); if (env.IsDevelopment()) { app

Upload a file via POST using RestSharp

I'm trying to simulate a simple multipart HTML form in C#. I was successful posting text as parameters using the addParameter function. Now I want to upload a

Mapping relationships using PetaPoco paging

I am using PetaPoco v5.1.228.0 and I am trying to fetch a list of people along with the category they belong to, using paging (30 items per page). This is my c

IIS binding prefixes localhost

Is there a way to set up a binding in iis in the format of: website1.localhost:80 website2.localhost:80 website3.lcoalhost:80 etc I set the websites up to

How to use C# and Google.Cloud.Dialogflow.Cx.V3 to generate valid Google DialogFlow CX webhook response JSON

I've created a webhook using C# and ASP.NET Core in order to try to generate the webhook response to DialogFlow, but I'm really struggling with using Google.Clo

How to auto open a ComboBox when focused?

I have a Form which contains several ComboBoxes. I want one ComboBox of them to open the elements list when it gets the focus, both from keyboard and mouse. The

Unable to locate the .NET SDK as specified by global.json, please check that the specified version is installed

trying to start a .NET console application. Would prefer F# but get the same error in C# or VB as well. Unable to locate the .NET SDK as specified by global.jso

Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFramework,Version=v4.6.2" in the "TargetFrameworks"

I can't run my unit tests. I have the next error: Your project does not reference ".NETFramework,Version=v4.6.2" framework. Add a reference to ".NETFrame

Get ID of item selected in ComboBox

I have a ComboBox that gets filled with items from my database. I'm trying to get the ID of the item that is selected in the ComboBox, but nothing I've tried se

Error 1053 the service did not respond to the start or control request in a timely fashion

I have created and installed a service a couple of times. Initially it was working fine, but after some changes in the service Code it start giving the error wh

How do i change the easy tabs page title to webBrowser1.DocumentTitle?

This is what it should look like: This is what it should look like 2nd Picture: Program.cs using EasyTabs; using System; using System.Collections.Generic; usi

Crash of UWP's HID library

I am developing a UWP application to work with HID devices. The application is working correctly almost all the time. But it often crashes when I close or colla

How to check checkbox a pdf editor form using C#

This is my last hope please help me I am stuck with that check box in pdf editor. I'm using iText library to generate pdf file based on template. But when I try