|
-
February 18th, 2000, 02:29 PM
#1
Advanced control options
I created my own control. It just needs that finishing touch. I have a few questions:
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"?
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.
C) When setting the options in the Properties window, some properties (like index, left etc) have a description wich is shown below the properties window. My own properties (like password) don't have these. Is there a way so that i can add a description to these properties?
If you know, or if you have only the smallet clue, let me know. Thanx
Tom Cannaerts
[email protected]
The best way to escape a problem, is to solve it.
-
February 18th, 2000, 02:41 PM
#2
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
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
-
February 18th, 2000, 04:19 PM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|