Download presentation
Presentation is loading. Please wait.
1
User Controls CSC 230 (Blum)
2
Go to Project/Add User Control …
CSC 230 (Blum)
3
Make sure User Control is highlighted as the template and them give the user control a name. Click Add. CSC 230 (Blum)
4
For this example, add a PictureBox (picDie) and a CheckBox (chkDie) to the user control design area
CSC 230 (Blum)
5
This User Control has no code needed, but we need to build.
CSC 230 (Blum)
6
When we return to the form’s design, the user control is now available in the toolbox.
CSC 230 (Blum)
7
Add a panel (panDice), which will serve as a container for the user controls.
CSC 230 (Blum)
8
Add five of the user controls (picchkDie1 through picchkDie5) to the panel and a button (btnRoll) below. CSC 230 (Blum)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.