Re: Advanced control options
1) I think the project description field in the project properties dialog box is used when supplied.
2) i'm not sure about the resizing.
3) while developing your control go to the Tools menu, then Procedure Attributes. you should be able to enter the text descriptions that show up in the object browser and in the properties description box on the properties dialog box.
good luck,
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
Re: Advanced control options
>A) When selecting a control (using menu project>components) you get a
>list of available controls (eg Microsoft Winsock Control 6.0). When
>browsing and selecting my control it just says EnDeCrypt. This is the
>name of the project i created it with. How do i get a text there
>like "Cakkie's Encrypter/Decryper"?
Go to Project->Properties menu, and type in your description in the 'Project Description' Textbox
>B) When using it in a project, the designer is able to resize it, (wich
>is not ment to be, because it isn't visible at runtime) resulting in a
>control having a picture in the upper-left corner, and the rest of the
>control is white. Is it possible to make the control unsizable.
You need to resize your user control object in the 'Usercontrol_Resize' event, eg:
private Sub UserControl_Resize()
Command1.Move 0, 0
'
UserControl.Width = Command1.Width
UserControl.Height = Command1.Height
'
End Sub
- the above control just has a button on it, when the 'usercontrol' is resized, it 'snaps' back to the size of the contained button - of course, you can just substitute 'command1.width/height' for whatever value you like.
>C)..
See Johnny101's answer for part C
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb