Block of Code

Practical Examples for Programmers

  • Home
  • C++
  • Java
  • Visual Basic
  • Discrete Math
  • Ask a Question

Enter Name

In Visual Basic, create the form shown in the figure below. Note that nothing should happen when you press the button.
This exercise is just to practice placing controls on the form in Visual Basic.

Enter Name

 

 

 

 

 

 

 

 

Suggested Control Names and Attributes:

Name Property Text Property Control Type Notes
frmEnterName Enter Name Form Holds Controls
txtName Text Box Captures name of the user
btnEnter Enter Button Button to submit name

Write the Code:

Since this assignment is just for practicing setting up the controls, we don’t need to write any code.

Secondary Sidebar

This is the secondary sidebar

Copyright © 2025 · Metro Pro Theme on Genesis Framework · WordPress · Log in