Click here to Skip to main content
15,897,226 members
Articles / Multimedia / GDI+

gGlowBox - Create a Glow or Shadow Effect Around a Focused Control (VB.NET)

Rate me:
Please Sign up or sign in to vote.
4.89/5 (50 votes)
28 Feb 2019CPOL6 min read 114.5K   7.6K   68  
A custom Panel that creates a glow effect around a child control or a drop shadow when it receives focus
Public Class Form1


	Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged
		TextBox10.ReadOnly = CheckBox2.Checked
	End Sub

	Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
		TextBox1.ReadOnly = CheckBox1.Checked

	End Sub


	Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.CheckedChanged
		If RadioButton1.Checked Then
			GGlowGroupBox1.EffectType = gGlowBox.gGlowGroupBox.eEffectType.Glow
		Else
			GGlowGroupBox1.EffectType = gGlowBox.gGlowGroupBox.eEffectType.Shadow

		End If
	End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I first got hooked on programing with the TI994A. After it finally lost all support I reluctantly moved to the Apple IIe. Thank You BeagleBros for getting me through. I wrote programs for my Scuba buisness during this time. Currently I am a Database manager and software developer. I started with VBA and VB6 and now having fun with VB.NET/WPF/C#...

Comments and Discussions