The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hello ! i want to replace win form Title Bar with my own image . i hav succesfully applied Skin on my Forms with help of www.codeproject.com
but unable to replace Title Bar any one can help
thx in advance
JKJoy K George Syncfusion Team March 28, 2006 01:55 PM UTC
Hi Muhamma,
Please go through the below code snippet and let me know if you have any doubts.
[System.Runtime.InteropServices.DllImport("user32.dll")]
static extern IntPtr GetWindowDC(IntPtr hWnd);
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
IntPtr hDC = GetWindowDC(this.Handle);
Graphics g = Graphics.FromHdc(hDC);
Brush b = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(5, 5, this.Width, 30), Color.Red, Color.Green, 45);
g.FillRectangle(b, new Rectangle(5, 5, this.Width, 30));
}
Regards
Joy