Make your own control: Part 2 Los Angeles CA

So, you have made your own control which keeps your program on top, but now you want people to know that it was you that made it. Your claim to fame!

Local Companies

T S Experts
(323) 466-3858
Los Angeles, CA
Three Dot Productions
(323) 256-3864
4134 Scandia Way
Los Angeles, CA
Itouchpoint Technology
(213) 488-0390
624 S Grand Ave
Los Angeles, CA
Net Ready
(310) 342-8216
6601 Center Dr W
Los Angeles, CA
Accounting Evoluations
(323) 969-0212
Los Angeles, CA
Rcm Technologies Company
(213) 622-2685
1055 W 7th St
Los Angeles, CA
Avenue A Razorfish
(310) 846-5400
6060 Center Dr
Los Angeles, CA
Easycom
(213) 637-1400
2140 W Olympic Blvd Ste 224
Los Angeles, CA
Iloveworld
(213) 252-9911
695 S Vermont Ave
Los Angeles, CA
Nucon Group Inc
(213) 628-1286
700 E 1st St
Los Angeles, CA

provided by: 
Originally published at Internet.com


This article continues from my last article "Making Your Own Control: Part 1".

So, you have made your own control which keeps your program on top, but now you want people to know that it was you that made it. Your claim to fame!

Well, as last time, load Visual Basic and choose "ActiveX Control" from the New Project dialog. Open up the code window for the control and go to the General Declarations procedure. Add this code which declares your name and web site address as a string: Private mvarauthor As String Private mvarURL As String

Now add these four pieces of code which store and retrieve the settings: Public Property Let URL(ByVal vData As String) mvarURL = vData End Property Public Property Get URL() As String URL = mvarURL End Property Public Property Let author(ByVal vData As String) mvarauthor = vData End Property Public Property Get author() As String author = mvarauthor End Property

Now add two labels to the control, and change the caption properties on each one to your name and web site address. e.g. Lblname.caption="Sam Huggill" LblURL.caption="http://www.vbsquare.com/"

Almost finished. Open the code window for the control and go to the controls Initialise procedure and add this code: Private Sub UserControl_Initialize() Me.author = lblName.Caption Me.URL = lblURL.Caption End Sub

Now click File, Make Project1.ocx. Select a directory for the file. Now, make a new project and click Project, Components. Click browse, go to the directory where the file is. Double click on the file and click OK. Draw the control onto the form and look at the properties. See, it works!

Author: Sam Huggill

Read article at Internet.com site
Related Local Events
Automation Technology Expo West (ATX West)
Dates: 2/9/2010 - 2/11/2010
Location: Anaheim Convention Center
Anaheim, CA
View Details

SOLAR POWER - Exhibition and Conference
Dates: 10/12/2010 - 10/14/2010
Location: Los Angeles Convention & Exhibition Center
Los Angeles, CA
View Details

REAL-TIME & EMBEDDED COMPUTING CONFERENCE - LONG BEACH 2009
Dates: 10/1/2009 - 10/1/2009
Location: Marriott Long Beach
Long Beach, CA
View Details

2009 IEEE Petroleum and Chemical Industry Technical Conference (PCIC 2009)
Dates: 9/14/2009 - 9/16/2009
Location:
Anaheim, CA
View Details

Medical Design & Manufacturing - Trade
Dates: 6/9/2009 - 6/11/2009
Location: CANON COMMUNICATIONS LLC
Los Angeles, CA
View Details