PC Review


Reply
Thread Tools Rate Thread

custom UserControl with Proprety named "ReadOnly" in VB.NET

 
 
Marcin Floryan
Guest
Posts: n/a
 
      7th Apr 2004
I am creating a custom control (Inherits UserControl) and my control
containt a TextBox control. TextBox control has a Property called
"ReadOnly". I would like to expose this property outside my own control, but
it seems impossible because when I write:

Public Property ReadOnly() as Boolean
....

The compilter treats ReadOnly as a Modifier and does not allow this
contruct. Can I expose a property of my control under a different name (so I
would create a property "_ReadOnly" and expose it as "ReadOnly")

It is very important for me to have a property called "ReadOnly" in my
control (excatly like TextBox does) to have a coherent code.

Any clues?

Regards,
Marcin Floryan


 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2VuIFR1Y2tlciBNVlA=?=
Guest
Posts: n/a
 
      8th Apr 2004
Hi

Public property [ReadOnly]() as boolean

Ke
--------------------

----- Marcin Floryan wrote: ----

I am creating a custom control (Inherits UserControl) and my contro
containt a TextBox control. TextBox control has a Property calle
"ReadOnly". I would like to expose this property outside my own control, bu
it seems impossible because when I write

Public Property ReadOnly() as Boolea
...

The compilter treats ReadOnly as a Modifier and does not allow thi
contruct. Can I expose a property of my control under a different name (so
would create a property "_ReadOnly" and expose it as "ReadOnly"

It is very important for me to have a property called "ReadOnly" in m
control (excatly like TextBox does) to have a coherent code

Any clues

Regards
Marcin Florya



 
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
How to update "Custom Priority" or "Custom Status" Task fields? bpeery Microsoft Outlook Discussion 1 1st Dec 2009 01:59 AM
Custom colums for "Inbox", "Contacts", and "Calandar" rcf Microsoft Outlook Installation 0 15th Feb 2008 10:31 PM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Microsoft Excel Misc 11 28th Dec 2006 04:44 PM
UserControl - Problem with "popup" that would be outside "container" Simon Verona Microsoft VB .NET 2 6th Dec 2005 03:23 PM
Named ranges- how do I "combine" several into a larger named range? Keith R Microsoft Excel Misc 6 2nd Mar 2004 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 AM.