0% found this document useful (0 votes)
9 views3 pages

Worksheet 03

The document provides instructions for modifying textbox properties in a form, including enabling multiline input, adding scrollbars, and setting default values. It also includes exercises for creating forms that change titles based on textbox input, show/hide elements, and concatenate names, as well as a simple calculator. The exercises require coding for various functionalities related to user input and form behavior.

Uploaded by

Ahmed Al-nasheri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views3 pages

Worksheet 03

The document provides instructions for modifying textbox properties in a form, including enabling multiline input, adding scrollbars, and setting default values. It also includes exercises for creating forms that change titles based on textbox input, show/hide elements, and concatenate names, as well as a simple calculator. The exercises require coding for various functionalities related to user input and form behavior.

Uploaded by

Ahmed Al-nasheri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Work Sheet 3

Textboxes Properties and Exercises

Changing properties through properties window:

1. Drag a Textbox to the current form, and change the following Form
properties:
a) Enable your textbox to contain several lines (Multiline)
b) Show scrollbars in the textbox (ScrollBars).
c) Enable your textbox to create a new line whenever you reach the border.
(WordWrap).
d) Add a default value to your textbox (Text).
e) Change the font color in the textbox (forecolor)
f) Forbid user to write in the textbox (Readonly)
g) Forbid user access to the textbox (Enabled)
h) Use your textbox for entering a password (PasswordChar)
i) Use your textbox for entering a password, using the system symbol
(UseSystemPasswordChar).
j) Add other 3 textboxes.
k) Change the TabIndex property for each textbox, so that the navigation
between them will change.
Exercise 1:

Create the following form:

Add code that does the following:

a) Change Title: Changes the title of the form according to the text entered in
the textbox (title).
b) Show/Hide: Shows and hides the label, the textbox and the button of the
Title.
c) Join: Joins the first name and last name inserted in the textboxes, and stores
the results in Full Name.
a. Use + operator
b. Use AppendText Method.
d) Go to Title: transfers the focus to Title Textbox
e) Repeat the code written in Join button, so that it occurs in "Textchanged"
event.
Exercise 2:

Create the following form:

Write code in the displayed buttons so that you create a simple calculator

You might also like