-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Dobb
Message 2 in Discussion

Courtesy: MSDN   An extender provider provides properties to other components. 
For example, when a ToolTip Component (Windows Forms) component is added to a 
form, it provides a property called ToolTip to each control on that form. The 
ToolTip property then appears in the Properties window for each control and 
allows the developer to set a value for this property at design time.  The 
property provided by the extender provider actually resides in the extender 
provider object itself and therefore is not a true property of the component it 
modifies. At design time, the property will appear in the Properties window for 
the component that is being modified. At run time, however, the property cannot 
be accessed through the component itself. In the following code example, a form 
has been created with a button called MyButton and a ToolTip control called 
MyToolTip, which provides a ToolTip property.   ' Visual Basic
' This is an example of code that is NOT CORRECT!
Dim myString as String
myString = MyButton.ToolTip   // C#
// This is an example of code that is NOT CORRECT!
string myString;
myString = MyButton.ToolTip;
 This syntax will generate a compile error because the compiler does not 
recognize ToolTip as a property of MyButton, because the property is actually 
provided by MyToolTip. The following example shows how to correctly access that 
property:   ' Visual Basic
Dim myString as String
myString = MyToolTip.GetToolTip(MyButton)   // C#
string myString;
myString = MyToolTip.GetToolTip(MyButton);


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to