Category "c++sharp"

Can we set themes in GTK 3 for Windows?

In Ubuntu, installing themes are as easy as copy-pasting GTK theme into the themes folder, then with the tweaks tool we can select the theme. I couldn't find a

c# outlook addin - add custom flags or icons for emails [closed]

currently we can add some red flags to email. And after that, we can those flag icons to appear while listing of emails. I want the similar

c# find outlook contact by email address

I was able to find outlook conctacts by firstname and lastname this way: Outlook.ContactItem contact = (Outlook.ContactItem)contactItems.Find(String.Format("[F

How to determine if a type is a type of collection?

I am trying to determine if a runtime type is some sort of collection type. What I have below works, but it seems strange that I have to name the types that I b

c# outlook addin - add custom flags or icons for emails [closed]

currently we can add some red flags to email. And after that, we can those flag icons to appear while listing of emails. I want the similar

Can't open web project because IIS Express is not installed (even though it is)

I have recently changed machines at work, and a long-standing web project now refuses to open in Visual Studio. The error log reads: "The Web project 'xxx' is

Get Parameters of sqlcommand to string

I'm creating an error log for a webpage. I need a way to get the parameters from a SQL Command to output to string so that the parameters passed through keep th

How to use alert(),confirm() and prompt() function using Blazor?

I am learning the Blazor technology. I started a default increment project in VS 2019 and I have modified the code for Decrement with confirm() and alert but it

Getting Downloads Folder in C#? [duplicate]

I have made some code that will search directories and display files in a listbox. DirectoryInfo dinfo2 = new DirectoryInfo(@"C:\Users\Hunte

How to find a point where a line intersects an ellipse in 2D (C#)

I need to find a point where a line (its origin is ellipse' center) intersects an ellipse in 2D... I can easily find a point on a circle, because I know an angl

Auto expand hierarchical data rows in Xamdatarrid

I have a Xamdatagrid having hierarchical data.I want to display all such records expended automatically.So that user doesn't have to click on + icon for each re

Fill a ListView from Postgres Database in WPF C#

I'm using WPF C# Visual Studio 2012. I have a Listview in my xaml like: <ListView Name="listview" Grid.Column="0" Grid.ColumnSp

Regex expression for parsing SQL Server schema and tablename

I am trying to parse schema and table name using a regular expression. I am using C# (.NET Core) and System.Text.RegularExpressions. Here are examples how the

The Console application has exited with code 0 (0x0) although unhandled exception occured

I'm writing very simple code of .Net Framework (4.7) Console Application and intentionally throw unhanded exception. But still the program exit with code 0 (0x0

Get Dictionary value in IQueryable LINQ to Entities query

I have to support multiple languages in production application. There are lot of Entity Framework queries that gets data from database as deferred IQueryable l

HttpContext.User.Identity.IsAuthenticated throws System.NullReferenceException: Object reference not set to an instance of an object

My code is simple like : [HttpGet] public ActionResult Login () { if (User.Identity.IsAuthenticated) { return RedirectToAction("Index", "Home");

how to overload postfix and prefix operator in c# [duplicate]

How do we implement the overload for postfix and prefix operators in c# void Main() { MyClass myclass=new MyClass(); myclass.x=5;

CSS, Images, JS not loading in IIS

My all applications were working fine but suddenly all sites under IIS are not loading css, images, scripts. It redirect to login page. If i login it works fi

Parallelizing multiple long-running tasks with async/await

I have a helper method returns IEnumerable<string>. As the collection grows, it's slowing down dramatically. My current approach is to do essentially the

Override TextChanged event for a custom control not working

I tried this code in my custom user control in a C# Windows application: public partial class HtextBox : DevExpress.XtraEditors.TextEdit { protected overri