o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

Custom Control Font Property -

Can anyone tell me how to set the font property of a label control from a propertry on a usercontrol.


so that

public Property get Font() as stdFont
font = label1.font
end ptoperty

public property set Font(obj as stdFont)
label1.font = stdfont
end property

works (it doesn't, get an error)

 

Subproperties -
I managed to create subproperties for a custom control, but I am running into one problem. The parent property is displaying the control.classname value instead of being blank (like the Font property). Below is the image. You'll notice next (to the right) of the Font property it


User Control Custom Property -
We know that the microsoft calendar control has a custom property.I am creating one activex which has a calendar control.So I want to show this custom property in the properties of my usercontrol.Thanks in advance


How to add a Custom Property to a control -
I know you can add a custom property to a form, but can I do so with a control. Currently I am using the tag property to store an integer, using it to set the .visible property in control arrays. I want to add another property like Tag2, where I can store a string that will display a


Changing an objects' property inside custom user control -
I have a custom user control with a text box and two buttons. I want to change the text property of the textbox from the form that contains the user control. I've created a property (in the user control) and assigned its value to the text property of the text box. (I think) I'v


Custom Control Font Property -
Can anyone tell me how to set the font property of a label control from a propertry on a usercontrol. so that public Property get Font() as stdFont font = label1.font end ptoperty public property set Font(obj as stdFont) label1.font = stdfont end property works


Custom Panel Property -
I am wanting to create a custom Panel control that has a property called "Panels" that while in design mode this property will list in a drop down manner all of the panels contained inside the Custom control. I have used the Add and Remove events to manage a combobox list of


Adding Properties To Controls -
Is it possible to add a property to an existing control without having to create a custom control? Basically, I would like to add an additional Tag type property to every control on a form, and creating a custom control for each type of control I am using seems rather wasteful.


Custom control - picturebox visible property -
Hi. I would like to add a picturebox to my custom control and use it's visible property to show or hide it. Unfortunately, when I run the ActiveX Control Interface Wizard there is no "visible" property available for the picturebox. Is there any way to add this or is it just n


Custom Control Properties -
Does anyone know if its possible to use a custom class as a property for a custom control? i.e When you set the forms location in the property editor, it has a little cross next to it, which is essentially the a Point Class. Point.X Point.Y I have tried to do this but it


Custom DataGridView Column Based on Custom Control -
Ok, I previously found code that showed how to create a custom DataGridView Column based off of a DateTimePicker, which worked great. Now, I have created a custom control since then, a FontPicker. I am looking to do the same thing by created a custom DataGridView column based on the


Create a Custom Control -
This may be too difficult for this forum but how do I create a custom ComboBox Control? I need a standard ComboBox but want to add 5 new members. Property Part# as Integer. Property PartName as String. Property Path as String. Property File as String. Property SaveAs as Strin


one last ActiveX question -
How do you make a property that launches a form? It's like on some custom controls, you will get a property named "Custom" and when you click on its property, you get the ellipsis (3 dots) and then when you click that, a custom form comes up. How can I set a property th


[2.0] Custom Control Question -
Hello, Im currently developing a framework, will allow people to drop a control or 2 on there page, and have a fairly decent blog system... i will be offering it in 2 versions, one as a custom control, the other as a sort of 'Engine', that they can get the individual properties,


.NET Windows Control Custom Property -
Hi, I'm sure this is easy but I can't seem to find it in the M$ Doco.... How can I add a custom property to a VB.NET Windows control? I previously used the Add Property wizard in VB6 ... how do I do it in VB.NET??? Thanks! Tim


ASP.NET Custom Control Library! =/ -
I've been trying forever to get my own custom control library to work(it's for asp.net). I finally got far enough where the collection property of my control actually works!! (in the designer). Now when I try to run the control I get the following error: Cannot create an object


How to display custom combo items in control's property -
Is there a way to diaplay a custom items list in property get & let in control. Just like DataSource property in Text control, when you click on it, it will list all DataEnvironment in DataControls names, this will happen only when you click on it.


Define Custom Colors -
Hi All, When I am setting the Flag property of the common dialog control to "cdlCFEffects", It is showing me the strikethrough, underline, and color effects controls. I don't want to show the Color property, since it is not allowing me to Define Custom Colors. If u add a


Property of Image type for Custom Controls -
I'm creating a custom control that has two properties of type System.Drawing.Image, among others. My question is, when I try to set the property to (none) by deleting the 'filename' from the property field, like you can with, say a PictureBox.Image property, i'm unable to do so.


[2005]Showing custom Dialogs from PropertyGrid -
Hi Guys, Is it possible to display a custom dialog to set a custom type from a PropertyGrid control. Similar to the way that you can choose a Colour from a ColorDialog when you click on a Color type property on a property grid? Thanks Stefan


Custom Rollover Image Control -
I'm creating a custom rollover image control, which inherits from WebControl. Everything works great except when I initially drop the control on the page and set the BaseImage property, it doesn't fill in the imagebox with the image I have specified. If you drop a .NET Image control


[2005] Custom Property Options -
I have read through many of the previous posts about custom properties but can't seem to find one that deals with my issue. I have a custom control that has custom properties. I understand how to get and set properties, but one of my properties needs to be set to either "in"


Putting an Image 'Property' in ActiveX Control -
Hi! I want to insert an image property to a custom ActiveX control that I'm building. I tried the folowing code, Public Property Let Picture(s As Image) varPicture = s UserControl.Picture = varPicture.Picture PropertyChanged ("Picture") End Proper


PrintForm and ActiveX Control -
How can I use the vb printform to print a custom ActiveX user control. I have set both the custom controls property and the window that I placed it ons AutoRedraw property to true, but to not avail...thanks in advance


How to Add List Property to ActiveX Control -
Hi All, As we are adding COLOR, FONT, PICTURE Properties to an ActiveX Control (Set, Get), can we Add List Property to a custom created ActiveX Control?. If it is possible Please send me the piece of code. Thanks T.Van


Assigning properties to a custom control -
Say I wanted to make a custom control via VB6, and I want it to have a "Control_Click" property by default, as well as a few others (possibly a "background image" property as well), how would I go about assigning that property when creating it (i.e. before I compile


[2005] AccessKey for Custom Button Control in VB 2005 -
Hi all, I have a custom button Control converted from VB 6.0 to VB 2005. I need to know how to set accesskeys property for the custom button control. This is the error i get in the converted project. 'UPGRADE_ISSUE: UserControl property UserControl.AccessKeys was not upgraded.


[2005] Using control as property -
I am trying to figure out how to do things with a control that is assigned to a property within a custom control. I think it would be something similar to how you assign a contextmenu to a control. For example, I have a control that has 3 separate button properties. I want to be


Simple: How adding properties to a custom control -
I fell sorta dumb asking this but how do you add a property to a custom control and then find its value ? Thanks.


Custom control with databound image box -
Hello all, I have: One table in a access mdb file with the fields: - nume type string - foto type ole I need to make a custom control with a textbox and an image control to put in a datareader control. Textbox will be bound to field name "Nume" and image co


[2005] AutoSize Property from Control doesn't show up in Property Grid -
I have created a new control inherited from Control. I want to add a Property called 'AutoSize'. When I try and add it, I get the warning: property 'AutoSize' shadows an overridable method in the base class 'Control'. To override the base method, this method must be declared 'Overri


ocx property -
Hello! I have created a simple ocx control and custom properties in the property page, built it, and frop it in a new form. But I am not sure how to access the property's page to configure the custom prperties. Any suggestion would be greatly appreciated. Thanks!


Collection Property Problem -
I have a custom user control which displays a collection of 'Options' to the user called 'ADLOptions'. The ADLOption class is a simple class with a few variables. In the designer I use a custom property editer to edit this Property (i.e. add/remove options from the collection), whic


custom user control -
I am new at trying to make custom controls. Basically, say we have a list of items to "do". Each item will be displayed on a custom control. Within this. for each item, I want it to be represented by labels and a progress bar against each item. Thats fine I guess,


Finally Finished! -
I finally finished my custom control in .NET. Overview: 1) It's a textbox that allows for a RequiredField Validator or Custom Validator or both. 2) It has custom nested properties (Like the Font property) for the RequiredField Validator and Custom Validator to set the various pr


Make a Font Property -
Hi everyone. I have maken an ocx control that has a font property. How i do to display the fonts dialog when i click the font property of my control ? Because if i declared a property like As OLE_COLOR, (by example) Public Property Get BackColor() As OLE_COLOR BackColor =


Making Font Property -
Hi everyone. I have maken an ocx control that has a font property. How i do to display the fonts dialog when i click the font property of my control ? Because if i declared a property like As OLE_COLOR, (by example) Public Property Get BackColor() As OLE_COLOR BackColor =


need help with custom control persistence... -
I have searched the forums, read through at least 5 books, visited MSDN about a gazillion times, and still nothing. The closest answer to my question when posting here has been "try out different things")... ARGH! In VB6, creating a custom control (while a fairly adavnced


[2005] Using custom control regadless of it's signature -
Hi I have created a custom control in vb.net. I am using this control in one of my application. Now the problem is that, the application doesn't loads the custom control whenever custom control is compiled because of new changes. Big red cross is displayed on the form. This is beacu


Custom Data Control Problem -
Hi all! I developed and tested a data control using ADODB with vb6, and all was fine. The problem is that when I use my custom data control in VB5, textboxes, listboxes etc. have their DataSource property empty. So I can't bind any control to a database... Where's the mistake?


Acx Control and Acx DLL -
I need my Acx Control to display the text "Custom" on the property window. When Clicked I need to display a dialog box which has 4 sets of TextBox Control and a Button. (very similar to the Custom for ImageList control) This information obtained fromn the dialog box has t