SlideShare a Scribd company logo
Variables -  Primitive & Non-Primitive types
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
Primitive types [Declaration] Dim x As Integer
Primitive types [Usage] x = 1
Non-Primitive types [Declaration] Dim y As TextBox
Non-Primitive types [Instantiation] y = New TextBox( )
Non-Primitive types [Usage] y.Text = "Name"
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
What is TextBox1.Text?
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.
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
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
What is TextBox1.Text? behaviours /  methods properties events TextBox1.Text

More Related Content

PPTX
Probability sampling
PPTX
Discourse analysis and language teaching
PPTX
Experimental research design
PPTX
Survey research
PPTX
My research proposal.ppt
PPTX
Research design and Proposal Writing
PDF
ASP.net Image Slideshow
PDF
Visual basic asp.net programming introduction
Probability sampling
Discourse analysis and language teaching
Experimental research design
Survey research
My research proposal.ppt
Research design and Proposal Writing
ASP.net Image Slideshow
Visual basic asp.net programming introduction

More from Hock Leng PUAH (20)

PDF
Using iMac Built-in Screen Sharing
PDF
Hosting SWF Flash file
PDF
PHP built-in functions date( ) and mktime( ) to calculate age from date of birth
PDF
PHP built-in function mktime example
PDF
A simple php exercise on date( ) function
PDF
Integrate jQuery PHP MySQL project to JOOMLA web site
PPTX
Responsive design
PDF
Step by step guide to use mac lion to make hidden folders visible
PPTX
Beautiful web pages
PPT
CSS Basic and Common Errors
PPTX
Connectivity Test for EES Logic Probe Project
PPTX
Logic gate lab intro
PDF
Ohm's law, resistors in series or in parallel
PPTX
Connections Exercises Guide
PPTX
Design to circuit connection
PPTX
NMS Media Services Jobshet 1 to 5 Summary
DOCX
Virtualbox step by step guide
PPTX
Nms chapter 01
PPTX
Pedagogic Innovation to Engage Academically Weaker Students
PPTX
Objective C Primer (with ref to C#)
Using iMac Built-in Screen Sharing
Hosting SWF Flash file
PHP built-in functions date( ) and mktime( ) to calculate age from date of birth
PHP built-in function mktime example
A simple php exercise on date( ) function
Integrate jQuery PHP MySQL project to JOOMLA web site
Responsive design
Step by step guide to use mac lion to make hidden folders visible
Beautiful web pages
CSS Basic and Common Errors
Connectivity Test for EES Logic Probe Project
Logic gate lab intro
Ohm's law, resistors in series or in parallel
Connections Exercises Guide
Design to circuit connection
NMS Media Services Jobshet 1 to 5 Summary
Virtualbox step by step guide
Nms chapter 01
Pedagogic Innovation to Engage Academically Weaker Students
Objective C Primer (with ref to C#)
Ad

Recently uploaded (20)

PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Classroom Observation Tools for Teachers
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Lesson notes of climatology university.
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Trump Administration's workforce development strategy
PDF
Updated Idioms and Phrasal Verbs in English subject
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
01-Introduction-to-Information-Management.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
A systematic review of self-coping strategies used by university students to ...
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Supply Chain Operations Speaking Notes -ICLT Program
Final Presentation General Medicine 03-08-2024.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Classroom Observation Tools for Teachers
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Lesson notes of climatology university.
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Computing-Curriculum for Schools in Ghana
Chinmaya Tiranga quiz Grand Finale.pdf
Yogi Goddess Pres Conference Studio Updates
Trump Administration's workforce development strategy
Updated Idioms and Phrasal Verbs in English subject
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
01-Introduction-to-Information-Management.pdf
What if we spent less time fighting change, and more time building what’s rig...
Module 4: Burden of Disease Tutorial Slides S2 2025
A systematic review of self-coping strategies used by university students to ...
Ad

Basic Stuff

  • 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
  • 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
  • 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