Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2010-01-10
Medium Priority
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.
Question by:jampost
1 Comment
LVL 22

Accepted Solution

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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

569 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