Click here to Skip to main content
15,891,905 members
Articles / Desktop Programming / Windows Forms

Shape Control for .NET

Rate me:
Please Sign up or sign in to vote.
4.84/5 (170 votes)
23 Mar 2017CPOL10 min read 380.7K   21.7K   301  
Implementing shape control that supports transparency, custom design-time editors and simple animation
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms

Public Partial Class FormSwitch
	Inherits Form
	Public Sub New()
		InitializeComponent()
	End Sub

	Private Sub button1_Click(sender As Object, e As EventArgs)
		Dim f1 As New Form1()
		f1.ShowDialog()
	End Sub

	Private Sub button2_Click(sender As Object, e As EventArgs)
		Dim f2 As New Form2()
		f2.ShowDialog()
	End Sub

	Private Sub button3_Click(sender As Object, e As EventArgs)
		Dim f3 As New Form3()
		f3.ShowDialog()
	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 (Senior)
Singapore Singapore
Coder. Hacker. Fixer.

Comments and Discussions