Category "c++sharp"

Separate connection file in C# and ModbusClient

Could you help me with this: I need to create a connection file to a PLC through ModbusClient, a separate file from the Main, but within the same solution. I ha

Which process runs python script running through python.net in C#

I have the following script. try { PythonEngine.Initialize(); using (Py.GIL()) {

Sort dynamic model with orderby

I am combining 2 tables that I transferred to the dynamic model into 1 table in the cshtml part. And I want to sort that table by a column(OrderBy). How can I d

How to set color for checkbox present in datagridview?

I have a datagridview in windows form. It looks like this. In this, have one Checkbox column, two textbox column. My requirement is need to set readonly true a

C# - Save XML file as PDF as Raw Image (not converting)

I am trying to save xml file as PDF as it is. In other words, I am trying to create PDF file that shows content of XML like a screenshot (like raw screenshot).

how do i make a picture box hide and show on click within an array?

im having trouble with a project which requires me to make a picture box inside of an array disappear when i click it, but for some reason, im having trouble ge

C# - DataGridView ComboBoxCol Displaying Ghost Text of other Cells - Windows Form Application

As you can see in the image below the combobox col of the datagridview is displaying ghost images of text from higher rows. If you move the cursor over the text

ASP Core 3.1 Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals

I'm using Visual Studio 2019 and I have 5 or more areas in my ASP.NET Core MVC application. When I was about to create a new controller and new razor (.cshtml

Insert null value into SQL Server database

I have this code public void insertAssignment(long mediaEvent_ID, long mediaBranch_ID, int? isPremiere, int? isNew, int? isLastChance, int? isPrevShown, int

WaveSpawner in Unity

i have a wave spawner script from a video i saw, since I'm fairly new to this still and its just more so a learning experience than anything really, but when sp

unity-photon- how can get other player's companent

I'm making a multiplayer game. I want to make a system. When a "x" player play a game and there is a "y" player. "x" player should see "y" player's score on "y"

Retaining HTML Markup when using XML .InnerText

I have HTML markup being read from an XmlDocument using InnerText as below. However, once read into the string "content"; string content = Convert.ToString(XmlD

How to support snap layout in WinForms in C# for windows 11

How to support snap layout in WinForms for windows 11. I'm using c# 10. My application's custom maximize button shows only tooltip. MainForm's WndProc code: pr

Why does the IsPressedChanged event not work with an interaction trigger but other events do?

Edit: To make it short: as AFigmentOfMyImagination pointed out in his answer, there exists no IsPressedChanged event. However, here is the original question: I

Can't exit function properly

I have a C# unity function and I'm trying to request some json from a webserver but for some reason its not exiting the function where I want it to: using Syste

I keep getting the error `Central Directory corrupt` when trying to use ZipArchive

My code looks like below. public async Task<MetaDataItem> GetMetadata(Stream sm){ using (ZipArchive archive = new ZipArchive(sm, ZipArchiveMode.Read,

Encoding issue when saving files with javascript?

i've been trying all day to setup a function that creates a file from plaintext or a stream in a razor page. i create csv plaintext in a backend and send it to

How to remove events from stream between two other events in Nesper?

I try to remove Events between two distinct events. I've found a way to declare a dynamic context, which meets the situation in which I want to remove the event

How to enable the "Compress Shared Files" options in c# while zip the files?

I am trying to zip all the files in one directory in C#. However, one file is used by another process and causing an exception like, "(that) file is in use by a

DirectX 11 render BGRA32 Frame

First time trying to render something and I have big troubles... I am using DirectN library and SwapChainSurface class from KlearTouch.MediaPlayer. I am trying