What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-22 13:03:22
c# make form draggable
[DllImport("user32")] private static extern bool ReleaseCapture(); [DllImport("user32")] private static extern int SendMessage(IntPtr hWnd, int Msg, int wp, int lp); protected override void OnMouseDown(MouseEventArgs e) { base.OnM... Add solution -
C# 2021-11-22 13:02:46
c# make form draggable
[DllImport("user32")] private static extern bool ReleaseCapture(); [DllImport("user32")] private static extern int SendMessage(IntPtr hWnd, int Msg, int wp, int lp); protected override void OnMouseDown(MouseEventArgs e) { base.OnM... Add solution -
C# 2021-11-22 13:02:41
c# make form draggable
[DllImport("user32")] private static extern bool ReleaseCapture(); [DllImport("user32")] private static extern int SendMessage(IntPtr hWnd, int Msg, int wp, int lp); protected override void OnMouseDown(MouseEventArgs e) { base.OnM... Add solution -
C# 2021-11-17 09:10:14
c# Console Font
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Drawing; namespace ConsoleExtender { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct ConsoleFon... Add solution -
C# 2021-11-15 11:43:17
unity transparent game
using System; using System.Runtime.InteropServices; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Transparency : MonoBehaviour { [DllImport("user32.dll")] public static extern int Messa... Add solution -
Other 2021-11-14 05:23:23
prevent system shutdown c#
public partial class Form1 : Form { [DllImport("user32.dll")] public extern static bool ShutdownBlockReasonCreate(IntPtr hWnd, [MarshalAs(UnmanagedType.LPWStr)] string pwszReason); private bool blocked = false; protected overri... Add solution -
C# 2021-11-09 00:32:10
c# postmessage mouse click
[DllImport("user32.dll")] static extern bool PostMessage(IntPtr hWnd, uint Msg, int wParam, int lParam); const int WM_LBUTTONDOWN = 0x0201; const int WM_LBUTTONUP = 0x0202; PostMessage(hWnd, WM_LBUTTONDOWN, 1, 0); PostMessage(hWnd, WM_LBUTTONU... Add solution -
C# 2021-10-27 20:13:08
hide console window c#
[DllImport("kernel32.dll")] static extern IntPtr GetConsoleWindow(); [DllImport("user32.dll")] static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); const int SW_HIDE = 0; const int SW_SHOW = 5; // Usage: var handle = GetConsole... Add solution
Best helpers
Rocky DeHart
+5
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Tammy Lin
+5
Flyeogh
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5