Contact Us

Contact Us

Category: Coding

How To Round The Edges Of A Control In C#
InCoding
Round The Edges Of A Control In C# The following code snippet will make the edges of windows form round shaped. The other windows controls including buttons, comboboxes, listboxes etc. could also be made round shaped. Just replace “this” with the control name when calling the function “GetRoundedRegion”, [DllImport(“Gdi32.dll”, EntryPoint = “CreateRoundRectRgn”)] private static extern…
How to check if program is install
InCoding
C# Code Snippet – How To Check If Program Is Installed?   This function will search the given program display name in the registry and returns true if it is installed. See the name of the program in Add/Remove Programs list. public static bool IsProgramInstalled(string displayName, bool x86Platform) { string uninstallKey = string.Empty;   if…