Read-only constituent TextBox control properties 
Author Message
 Read-only constituent TextBox control properties

Quote:

> I'm creating a UserControl (with VB5EE) that has a single TextBox
> constituent control.  I've mapped most of my UserControl's standard
> TextBox properties to the TextBox (Text, Enabled, Font...), but
> several of them are reported as being read-only (Alignment,
> Appearance, BorderStyle, MultiLine...).  So for example, the following
> procedure generates an error, and my UserControl can't have a
> user-settable MultiLine property (among others):

These properties are design time only properties in VB. When your
control is hosted on a form, it is effectively in run-time mode.

For a more lucid discussion of this problem, and possible solutions,
try:
Dan Appleman's "Developing ActiveX Components with Visual Basic 5.0 (A
Guide To The Perplexed)"

Well worth the price. Sorry I can't help you myself, I generally don't
do UserControls.

N Varacalli
--
HTML and/or RTF mail will be rejected.

Header e-mail address invalid.

Replace "invalid.see.sig" with:

mtlrc <dot> canada <dot> hp <dot> com



Tue, 15 Feb 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Exposing Read-Only Properties of Constituent Controls

2. Expose array properties of a constituent control to the ActiveX control

3. Accessing property pages from a constituent control?

4. Setting design-time properties of UserControl constituent controls

5. Exposing MultiLine property in constituent control

6. Generic User Control Constituent Property Manipulation

7. Setting Properties of constituent controls (Rich Text)

8. Any way to set design-time property of UserControl constituents

9. Set design time properties of constituent

10. Focus of constituent control inside custom control

11. UpDown-Control as a constituent control for a UserControl not working

12. changing textbox readonly property using a collection.

 

 
Powered by phpBB® Forum Software