Category "c++sharp"

change color of all controls inside the form in c#

in one button click event i want to change form color and all control color inside the form(textbox,label,gridview,combobox) ,,so i given code like this: fo

Marten: Define schema stuff (like indexes etc) not in the constructor/factory call to create the DocumentStore

I just started testing Marten (2.9), and so far I am loving it. However, I am not sure I am following the DocumentStore.For method. For example, in my "dbhandle

Unhook Window into its original State

I hook a window into a Panel using this code: SetParent(win, pnlApp.Handle); SetWindowLong(win, GWL_STYLE, WS_VISIBLE); MoveWindow(win, 0, 0, pnlApp.Width, pnlA

How to send and Receive messages using Facebook Messenger API

i am using C# library for FB Messenger API here - https://www.nuget.org/packages/facebook-messenger-net-lib/ But i think there is lack of some documentation .

When I click on an Object with an Audio Source all sounds of the game play at the same time

I'm making a sound game for kids where they have to place notes in the proper line that sounds like the note. So I need the notes and the lines to play a sound

Programmatically Attach PDF from MemoryStream to Outlook E-Mail Items

Would it be possible to attach PDF from MemoryStream or other functions to Outlook E-Mail Items MailItem.Attachment.add(), rather than from the file on the hard

Entity Framework rollback and remove bad migration

I'm using EF 6.0 for my project in C# with manual migrations and updates. I have about 5 migrations on the database, but I realised that the last migration was

Get current user id in ASP.NET Identity 2.0

I just switched over to using the new 2.0 version of the Identity Framework. In 1.0 I could get a user object by using manager.FindByIdAsync(User.Identity.GetU

How to Uploading Base64 / byte[] Image to Azure Blob with ASP.NET Core 6 MVC using C#?

Here is my code IFormFile. public static async Task<string> UploadFileToBlobStorage(IFormFile file) { string container = "abccontainer

How to convert .xls file to .xlsx using C# and without Microsoft Office installed?

I need help in converting a .xls file to .xlsx using C# and without using Microsoft Office.

A very complicated workaround for using a C# dll with an Android app? (xamarin)

I have an proprietary Android app (created with Android Studio) and I need to add some functionality which requires to use a C# DLL. The app is connecting wir

How to compare 1,000 images using the available memory efficiently

This is a tough problem. I have around 1,000 images stored in my disk, and I want to find images that are similar to each other by comparing them in pairs. So I

How do I remove an existing claim from a ClaimsPrincipal?

I am making a developer tool for impersonating Roles for an intranet site to allow developers to quickly act as any Role as needed. Roles defined are Developer

SignalR hub with Bearer authentication

I have a problem. I have in my API JWT Bearer authentication. I try to use SignalR hub with authentication but it doesn't work for me. I think I tried everythin

Unity: Generic Method to get or add a component

Every time I make a new Script in Unity, I always end up doing a bunch of checks for any components my script depends on, like: SpriteRenderer sr = gameObject.

Copying specific range of excel cells from below a specific keyword

I am wanting to write a C# program to copy a specific range of cells below a specific keyword. The code will identify a keyword in Excel and then copy the value

Cannot Create custom command in WPF Application

Overview I have a WPF application written in C# .NET 4.0. There are a number of buttons in this project. Currently, every EventHandler for the button click e

What's the best class to store the network identity of a computer in .net?

On Windows, a computer can be located using its Netbios name, DNS name, IPv4 or IPv6 name. Is there a built in class in the .net Framework that can aggregate a

Dotnet - How to change Target Framework using CLI?

How to change Dotnet target framework in .csproj using CLI? I know how to do this using Visual Studio, but I want to do it using CLI. Are there any commands lik

How to turn off or handle camelCasing in JSON response ASP.NET Core?

I'm running through a WintellectNOW course on ASP.NET Core/Web API/Angular 2. I have the API portion implemented, but for whatever reason, the JSON that is bein