?
Solved

VB6  Can't find UserControl_Initialize(). Same as UserControl_InitProperties()?

Posted on 2010-01-10
1
Medium Priority
?
623 Views
Last Modified: 2013-11-25
I want to add a line in the UserControl_Initialize() event.  I need to set the lIndex modual level variable to -1 to indicate that no item is selected from the list. I found UserControl_InitProperties(), but not UserControl_Initialize(). The Active X control interface wizard filled in the code for me.
0
Comment
Question by:jampost
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
danaseaman earned 1000 total points
ID: 26448702
1. Click UserControl in Project Window
2. From Menu Click View - Code
3. From Combo Click General - UserControl
4. Select Initialize from the combo to the right of UserControl.

Alternatively you can just type the following code while in the code window:

Private Sub UserControl_Initialize()
   Debug.Print "UserControl_Initialize"
End Sub
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This video teaches viewers about errors in exception handling.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question