Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
VB.NET Help ???
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="DragonFox" data-source="post: 9670008" data-attributes="member: 244404"><p>Mcn For your Second question i think u mean that how to define properties and methods in a class ne</p><p></p><p>So following is da examples</p><p></p><p>Properties are variables which u use to store data</p><p></p><p>To create a property</p><p></p><p><Scope> <Variable Name> As <Data Type></p><p></p><p><strong>Example :</strong></p><p></p><p>Dim Number As Integer</p><p>Private Name As String</p><p>Public Status As Boolean</p><p></p><p></p><p>Method is a piece of code which you define to do a specific task in VB.NET it has 2 types of methods </p><p><em>1 - With a return type - Where the method return a value</em></p><p><em>2 - With no return type - No value is returned</em></p><p></p><p>but in other languages there is only one type of method for both of this</p><p></p><p></p><p><em><strong>1 method with return type are called functions</strong></em></p><p></p><p><Scope> Function <Function Name>()</p><p>.......</p><p>.........</p><p>......</p><p>Return value</p><p>End Function</p><p></p><p><strong>Example</strong></p><p></p><p>Private Function CalculateTotal()</p><p>Dim num As Interger</p><p>num = 1 + 1</p><p>return num</p><p>End Function</p><p></p><p></p><p><strong><em>2 - method with no return are called subs or simply methods</em></strong></p><p></p><p><Scope> Sub <Method Name></p><p>............</p><p>........</p><p>......</p><p>End Sub</p><p></p><p><strong>Example</strong></p><p></p><p>Private Sub Display()</p><p>me.txtName.Text = "Hello";</p><p>End Sub</p></blockquote><p></p>
[QUOTE="DragonFox, post: 9670008, member: 244404"] Mcn For your Second question i think u mean that how to define properties and methods in a class ne So following is da examples Properties are variables which u use to store data To create a property <Scope> <Variable Name> As <Data Type> [B]Example :[/B] Dim Number As Integer Private Name As String Public Status As Boolean Method is a piece of code which you define to do a specific task in VB.NET it has 2 types of methods [I]1 - With a return type - Where the method return a value 2 - With no return type - No value is returned[/I] but in other languages there is only one type of method for both of this [I][B]1 method with return type are called functions[/B][/I] <Scope> Function <Function Name>() ....... ......... ...... Return value End Function [B]Example[/B] Private Function CalculateTotal() Dim num As Interger num = 1 + 1 return num End Function [B][I]2 - method with no return are called subs or simply methods[/I][/B] <Scope> Sub <Method Name> ............ ........ ...... End Sub [B]Example[/B] Private Sub Display() me.txtName.Text = "Hello"; End Sub [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom