Category "c++sharp"

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

Trouble passing a C# string from userland to kernelmode C and using it to find specific LDR_DATA_TABLE_ENTRY

I am having difficulty comparing a string passed from usermode type LPWSTR to a LDR table entry type UNICODE_STRING Kernel C: struct { int pid; int user

Pick a section of an image in c#

I have an image with multiple portraits inside, how can I pick each one of them without cutting the image in photoshop or something like that. The image would b

c# sending messages to local syslog service on linux

Is there a way to send log messages to the local syslog service on centos 7 within a c# program? In python there is the syslog library but with c# the only way

How can i start the same process two times, but only with one uac?

Following problem: I want to start the cmd as administrator in C# with a process to get the UAC befor the code: var process = new Process(); var ps= new Process