PC Review


Reply
Thread Tools Rate Thread

Controls default values

 
 
=?Utf-8?B?RnJlZA==?=
Guest
Posts: n/a
 
      16th Feb 2007
Hi,

In VS 2005, I have created a class called 'BaseButtonAdd'.
It appears in the toolbox.

When a new control of that type is created inside Visual studio, i.e. I drag
the item from the toolbox onto a form, I want the Text of the button to say :
'Add...', i.e. not the default of 'BaseButtonAdd1'.

Similar thing for the image property.
I want it to be set to global::Ctrl.Properties.Resources.Add;

i.e. whater the image is in my ressource file for Add.

I have tried various things, but none worked correctly.

--
Fred
 
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
default values in controls nevinx Microsoft Access Forms 1 7th Mar 2009 02:18 AM
Calculate values of 2 controls based on the values of 3 other cont broncojim Microsoft Access Form Coding 3 12th Feb 2009 02:31 PM
Custom Controls and setting default values of base propertys TonyR Microsoft Dot NET Compact Framework 7 14th Dec 2005 03:07 PM
Clear all default values by cycling through tagged controls Leonard Priestley Microsoft Access Form Coding 3 2nd Jan 2004 02:24 PM
ASP.NET Reset Controls to default values question psinyc Microsoft ASP .NET 0 6th Aug 2003 06:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:06 AM.