Basic Stuff
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Basic Stuff

  • 632 views
Uploaded on

Very basic stuff on variables (primitive and non-primitive types) + TextBox.

Very basic stuff on variables (primitive and non-primitive types) + TextBox.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
632
On Slideshare
599
From Embeds
33
Number of Embeds
4

Actions

Shares
Downloads
5
Comments
0
Likes
0

Embeds 33

http://tpitvb.blogspot.com 29
http://tpitvb.blogspot.in 2
http://www.tpitvb.blogspot.com 1
http://tpitvb.blogspot.com.au 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Variables - Primitive & Non-Primitive types
  • 2. Primitive and Non-primitive (Object) types
    • Primitive types
    • [Declaration]
    • Dim x As Integer
    • [Usage]
    • x = 1
    Non-Primitive types [Declaration] Dim y As TextBox [Instantiation] y = new TextBox( ) [Usage] y.Text = "my name" y.Visible = False
  • 3. Primitive types
    • [Declaration]
    • Dim x As Integer
  • 4. Primitive types
    • [Usage]
    • x = 1
  • 5. Non-Primitive types
    • [Declaration]
    • Dim y As TextBox
  • 6. Non-Primitive types
    • [Instantiation]
    • y = New TextBox( )
  • 7. Non-Primitive types
    • [Usage]
    • y.Text = "Name"
  • 8. Primitive and Non-primitive (Object) types
    • Primitive types
    • [Declaration]
    • Dim x As Integer
    • [Usage]
    • x = 1
    • Special case:
    • String is not primitive but is used like one
    Non-Primitive types [Declaration] Dim y As TextBox [Instantiation] y = new TextBox( ) [Usage] y.Text = "my name" y.Visible = False
  • 9. What is TextBox1.Text?
  • 10. What is TextBox1.Text?
    • TextBox is a Control provided by Microsoft.
    • It defines a Class with behaviours, properties and events.
    • => later we shall use VS 2005 to view these behaviours, properties and events.
  • 11. What is TextBox1.Text?
    • To use the control, we need to declare and instantiate .
    • In Form1.Designer.vb:
    [Declaration] Friend WithEvents TextBox1 As System.Windows.Forms.TextBox [Instantiation] Me.TextBox1 = New System.Windows.Forms.TextBox
  • 12. What is TextBox1.Text?
    • 1) View partial class Form1.Designer.vb
    • 2) Right click on TextBox in " New System.Windows.Forms. TextBox "
    • 3) Select Go To Definition
  • 13. What is TextBox1.Text? behaviours / methods properties events TextBox1.Text