Skip to content

Instantly share code, notes, and snippets.

View ahmedosama007's full-sized avatar
🎯
Focusing

Ahmed Osama ahmedosama007

🎯
Focusing
View GitHub Profile
@ahmedosama007
ahmedosama007 / FlatTextBoxDesigner.vb
Created October 18, 2022 04:48
Flat TextBox control based on the System.Windows.Forms.TextBox that supports themes including custom border colors in normal and focused states
'Copyright (c) Smart PC Utilities, Ltd.
'All rights reserved.
#Region "References"
Imports System.Windows.Forms.Design
#End Region
Friend Class FlatTextBoxDesigner
@ahmedosama007
ahmedosama007 / FlatPanel.vb
Last active May 11, 2023 12:04
Windows Forms Panel control with custom ScrollBars based on the Flat ScrollBar control https://gist.github.com/ahmedosama007/c1b0cd327d395a5698c1e17e96d0f8f9
'Copyright (c) Smart PC Utilities, Ltd.
'All rights reserved.
#Region "References"
Imports System.ComponentModel
#End Region
Namespace Controls
'Copyright (c) Smart PC Utilities, Ltd.
'All rights reserved.
#Region "References"
Imports System.ComponentModel
Imports System.Drawing.Imaging
Imports System.Drawing.Drawing2D
#End Region
@ahmedosama007
ahmedosama007 / FormControlButton.vb
Last active July 21, 2022 04:15
Custom Form control buttons that support the Visual Studio 2019 theme
#Region "References"
Imports System.ComponentModel
Imports System.Drawing.Drawing2D
#End Region
Namespace Controls
<ToolboxItem(True)> <ToolboxBitmap(GetType(Button))> Public Class FormControlButton
@ahmedosama007
ahmedosama007 / PEHeaderReader.vb
Created June 14, 2022 23:46
PE header reader
#Region "References"
Imports System.IO
Imports System.ComponentModel
Imports System.Runtime.InteropServices
#End Region
Namespace OsUtils
@ahmedosama007
ahmedosama007 / CatalogInfo.vb
Created April 28, 2022 01:50
Verifies the file digital signature embedded in the file or located in a Windows security catalog using WinVerifyTrust API
'Copyright (c) Smart PC Utilities, Ltd.
'All rights reserved.
Imports System.Runtime.InteropServices
Namespace OsUtils.WinTrust
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure CatalogInfo
Public cbStruct As Integer