473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

question about attributes of class

Hi,

i'm still learning working with classes.
I read this code:

Public Class Employee
<Browsable(True)_
Public Property Property1() As String
Get

End Get
Set(ByVal Value As String)

End Set
End Property
End Class

and also this:

<DefaultProperty("Color"), DefaultEvent("ColorChanged")_
Public Class ColorPicker
.....
End class

My question is: what does mean <Browsable(True)>_ and
<DefaultProperty("Color"), DefaultEvent("ColorChanged")?
What are the allowed values between the <...>? How do they work?

Thanks again
André
Mar 15 '07 #1
2 954
http://msdn2.microsoft.com/en-us/library/5x6cd29c.aspx

Robin S.
-------------------------
"André" <an@dre.tywrote in message
news:e8****************@TK2MSFTNGP03.phx.gbl...
Hi,

i'm still learning working with classes.
I read this code:

Public Class Employee
<Browsable(True)_
Public Property Property1() As String
Get

End Get
Set(ByVal Value As String)

End Set
End Property
End Class

and also this:

<DefaultProperty("Color"), DefaultEvent("ColorChanged")_
Public Class ColorPicker
....
End class

My question is: what does mean <Browsable(True)>_ and
<DefaultProperty("Color"), DefaultEvent("ColorChanged")?
What are the allowed values between the <...>? How do they work?

Thanks again
André

Mar 16 '07 #2
Thanks

"RobinS" <Ro****@NoSpam.yah.noneschreef in bericht
news:96******************************@comcast.com. ..
http://msdn2.microsoft.com/en-us/library/5x6cd29c.aspx

Robin S.
-------------------------
"André" <an@dre.tywrote in message
news:e8****************@TK2MSFTNGP03.phx.gbl...
>Hi,

i'm still learning working with classes.
I read this code:

Public Class Employee
<Browsable(True)_
Public Property Property1() As String
Get

End Get
Set(ByVal Value As String)

End Set
End Property
End Class

and also this:

<DefaultProperty("Color"), DefaultEvent("ColorChanged")_
Public Class ColorPicker
....
End class

My question is: what does mean <Browsable(True)>_ and
<DefaultProperty("Color"), DefaultEvent("ColorChanged")?
What are the allowed values between the <...>? How do they work?

Thanks again
André


Mar 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: SB | last post by:
I have an assignment where we are supposed to mimic a scheduler routine of an OS. We are supposed to schedule some processes, an each process has the following attributes... - process id -...
1
by: Tony Johansson | last post by:
Hello! I'm reading a book about C++ and there is something that I don't understand so I ask you. I have marked the section from the book that is of intertest by tagging it with BOOK START HERE...
4
by: Alok Jain | last post by:
This is a design / inheritance qus. I have class Task. This is a base class for some specific tasks Say WorkOrderTask : Task TimeSheetTask : Task Now Task has a function GetDetails()...
10
by: jojobar | last post by:
Hello, I am trying to use vs.net 2005 to migrate a project originally in vs.net 2003. I started with creation of a "web site", and then created folders for each component of the site. I read...
8
by: Sam Kuehn | last post by:
What is the correct way to "widen" the interface of an object? Let me explain (this is not a real example but should illustrate my point). Say you have a person object with some properties. And...
11
by: Doru Roman | last post by:
Hello, I got a test and some of the questions were: A collection a files, which is the basic unit of .NET programming, is called: 1. package 2. assembly 3. library 4. copybook
7
by: Ryan | last post by:
I'm in the process of learning more about building my ASP.NET website to use my SQL datastore and am a bit confused about how ADO.NET works with ASP.NET. This Microsoft article implies that using...
5
by: raj | last post by:
I know what interfaces are and what they used for etc. Today i am learning about serilization. I know to mark the class "serializable" and implement ISerializable interface, and then implement...
28
by: Alan Isaac | last post by:
I have a class whose instances should only receive attribute assignments for attributes that were created at inititialization. If slots are not appropriate, what is the Pythonic design for this? ...
4
by: RobG | last post by:
I have always accessed attributes such as disabled using the DOM element property, however I was wondering about implementing a more generic function to get the values of attributes - which of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.