Category "c++sharp"

How to serialize multi-types Collection with IXmlSerializable

I'm writing an xml that seem decent to me but i have issue reading into last collection. Xml <SWorkspace Title="Default" NosWorkSpaceGuid="69c4d731-a44d-4

DateTime from view to control to Mapper

i'm trying to pass A DateTime data type to a controller that will call a Mapper to pass it into a db. Additionally the DateTime is taken from a db at first. db

"System.ComponentModel.Win32Exception (0x80090308): The token supplied to the function is invalid" when TLS13 is enabled

After adding the below registry key to enable TLS1.3 on Windows Server 2022 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Proto

Adding additional records to existing relationship not working

I am trying to add a new Template to an existing Client, but when I try to add the Template with an existing ClientID, it instead adds a new Template with a new

c# I cannot figure out how to move User Control within panels

I have 6 panels on my screen. I have 1 user control with a button. I am having two issues. When I load up my user control(only loads when called) into panel 1,

How do I force Visual Studio 2019 to generate a .deploy file for an icon for ClickOnce deployment/install

I'm running into a problem publishing/installing a ClickOnce application being built in C# in Visual Studio 2019. The application is being built using .NET Cor

c# How to get the most repeated pixel values from an image

Bitmap image; private void button4_Click(object sender, EventArgs e) { pictureBox1.Image = image; Color co; for

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