PC Review


Reply
Thread Tools Rate Thread

how to: property inside property

 
 
Bruno Alexandre
Guest
Posts: n/a
 
      5th Apr 2006
Hi guys,

I'm wondering how can I manage to do this in my VB Class:

I have a property called Image01_url and other Image01_value

How can I have Image01.url and Image01.value instead?

--------- START CODE -----------------------------

Imports Microsoft.VisualBasic
Public Class ProductBoxes
Private img1u, img1v As String

Public Property image01_url() As String
Get
Return img1u
End Get
Set(ByVal value As String)
img1u = value
End Set
End Property

Public Property image01_value() As String
Get
Return img1v
End Get
Set(ByVal value As String)
img1v = value
End Set
End Property

End Class


--------- END CODE -------------------------------


--


Thank you in Advance.

Bruno Alexandre
(a Portuguese in Denmark)


 
Reply With Quote
 
 
 
 
md
Guest
Posts: n/a
 
      5th Apr 2006
Separate the Image code into a class called Image, and then have a property
in the ProductBoxes called Image01 of the Image class type you just created.

Hopefully that made some sense.

Matt

"Bruno Alexandre" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi guys,
>
> I'm wondering how can I manage to do this in my VB Class:
>
> I have a property called Image01_url and other Image01_value
>
> How can I have Image01.url and Image01.value instead?
>
> --------- START CODE -----------------------------
>
> Imports Microsoft.VisualBasic
> Public Class ProductBoxes
> Private img1u, img1v As String
>
> Public Property image01_url() As String
> Get
> Return img1u
> End Get
> Set(ByVal value As String)
> img1u = value
> End Set
> End Property
>
> Public Property image01_value() As String
> Get
> Return img1v
> End Get
> Set(ByVal value As String)
> img1v = value
> End Set
> End Property
>
> End Class
>
>
> --------- END CODE -------------------------------
>
>
> --
>
>
> Thank you in Advance.
>
> Bruno Alexandre
> (a Portuguese in Denmark)
>
>



 
Reply With Quote
 
jan.hancic@gmail.com
Guest
Posts: n/a
 
      5th Apr 2006
Make a class or a structure that will expose those proeprtys.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
read property inside message Lattis Microsoft Outlook Form Programming 0 22nd Jan 2010 03:00 PM
Getting a object property inside another object property -- pleassehelp!! almurph@altavista.com Microsoft C# .NET 1 12th Feb 2009 03:25 PM
The controls on this property sheet are disabled because one or more other Network property sheets are already open. To use these controls, close all these property sheets and then reopen this one. =?Utf-8?B?Um9iZXJ0?= Microsoft Windows 2000 Networking 1 11th Apr 2004 01:22 AM
Formula Property - Referencing Strings Inside Formula Property Value Oak Microsoft Excel Worksheet Functions 9 10th Feb 2004 11:54 AM
How to Tab inside a property grid? Ron Microsoft Dot NET Framework Forms 0 26th Jun 2003 05:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 PM.