Category "c++sharp"

During FlowLayoutPanel scrolling, background distorts + flickers

I have a windows form application that has a background. Within it, I have a flowlayoutpanel with a transparent background. When I scroll, the following happens

How can I return an empty IEnumerable?

Given the following code and the suggestions given in this question, I've decided to modify this original method and ask if there are any values in the IEnumara

Unable to create an object of type 'DbContext'

When I try to run dotnet ef migration add Init I get error Unable to create an object of type 'IdentityContext'. I know what caused the problem. I wan

Convert this Nodejs Function to C# Function

I have this function in NodeJS and I need some help to convert to C#, my problem is get the 'buf' from randomBytes NodeJS Function: function generateKeys() {

Creating .ICS files, adding to outlook

I am creating a simple application that will allow users to download .ICS files, and import them into their chosen calendar application/site. I am happy with t

Equivalent C# Function For Excels Norm.S.Inv Function

I plan on finding the benchmark Z's of some data in C#. For this I need the Norm.S.Inv function from Excel. I am not able to find any sort of implementation for

Using a BindingSource, how do I tell if I have changes pending?

I am using a BindingSource in a WinForms project that edits a simple table on a SQL server. I want the "Save" icon to light up when the user tabs off a field if

View a Class from the Unity API

I am rendering my camera to a cubemap using gameObject.GetComponent<Camera> ().RenderToCubemap (cm); I want view the code for RenderToCubemap(), so I c

Properties vs. Fields: Need help grasping the uses of Properties over Fields

First off, I have read through a list of postings on this topic and I don't feel I have grasped properties because of what I had come to understand about encaps

Using remote validation with ASP.NET Core

I am trying to create a remote validation as follows: [Remote("CheckValue", "Validate", ErrorMessage="Value is not valid")] public string Value { get; set; }

Receive RS485 Commands via C#

I have been googling and haven't found any code to help me with this, maybe I missed something? I want to receive RS485 commands. At the moment I am just recei

Test if a property is available on a dynamic variable

My situation is very simple. Somewhere in my code I have this: dynamic myVariable = GetDataThatLooksVerySimilarButNotTheSame(); //How to do this? if (myVariab

How to set up Firebase Push Notification with Deep Link with Unity3D

I am implementing Firebase Cloud Messaging to send Push Notifications to my Unity Project for Android and iOS Devices. I am now Debugging with Android. I receiv

Does java have something similar to C# properties? [duplicate]

C# properties (I mean get and set methods) are a very useful feature. Does java have something similar to C# properties too? I mean how we can

Reading Excel file with Selenium WebDriver C# and web form with values

I have a Selenium WebDriver script written in C# that reads some values from an Excel spreadsheet and then uses the values from the row to fill a web form. The

How do you convert epoch time in C#?

How do you convert Unix epoch time into real time in C#? (Epoch beginning 1/1/1970)

How can I refer to a binding converter in another namespace in Silverlight XAML?

Since you apparently can't create a Silverlight DataTemplate in C#, I'm trying to create one in XAML. I have a converter that I need to refer to, that I have de

Export and Import documents with UUID from MongoDB Compass Windows Application

Summary How to preserve UUIDs when exporting and importing documents? Export collection as JSON file Drop collection and re-create collection Import JSON file U

Class not inheriting from object?

I am working on a method that is using reflection to inspect parameter types of methods. This methods iterates through the ParameterInfo's and is doing somethin

How to detect if a property exists on an ExpandoObject?

In javascript you can detect if a property is defined by using the undefined keyword: if( typeof data.myProperty == "undefined" ) ... How would you do this