|
-
October 3rd, 2002, 12:35 PM
#2
Junior Member
Exercise 4 : Improving the simple maths project
Practise some new techniques, by modyfying the maths project as follows:
1)
Add some comments at the start of your coding. For example
'Bob Marley
'
'October 2002
'
'Copyright By Me
'==============
'
2)
Change the font size and font colour of the text in txtResult.
Do this by setting the properties of txtResult in the design view of the form
3)
Make the clear button also return the cursor to the txtNo1 text box.
This is called 'setting the focus'. Add in the line of code
txtNo1.SetFocus
4)
Make the clear button disabled when the program first starts
Do this by setting the enabled property in the design view of the form
5)
Make the clear button so that it is only enabled after a result has been calculated, and so that it becomes disabled again once the three text boxes have been cleared.
Use, eg. cmdClear.Enabled = True
6)
Make the add / subtract / multiply buttons disabled after one of them has been clicked and enabled again after clear has been clicked
7)
Make the exit button so that it displays a MsgBox to say "Goodbye" befor the program ends.
8)
Change the background colour of the Exit button
Hints
- Do this in the design view of the form
- First set the style property to graphical
9)
Experiment with other properties and effects.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|