Solved

Create Control On The Fly

Posted on 2011-02-22
7
684 Views
Last Modified: 2013-11-25
I'm trying to place the Outlook Address Book on a form.
When I run the code below I don't get any errors I just don't see anything

There is no
oContacts.Top, oContacts.Left,oContacts.Height,oContacts.width or Visible properties

Any help would be appreciated.


Reference
Microsoft Office Outlook Viewer Control

Private Sub Command1_Click()

Dim oContacts As OLXLib.ViewCtl
Set oContacts = New OLXLib.ViewCtl

oContacts.AddressBook


End Sub
0
Comment
Question by:PhilChapmanJr
  • 2
7 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 250 total points
ID: 34956440
Instead of "Reference" try looking for it under Add "Component" instead. Then it *might add a control to your VB control box that you could add to the form.
0
 
LVL 2

Author Comment

by:PhilChapmanJr
ID: 34956610
I had rather not use a control because in some instilations  the control will be be available.
0
 
LVL 2

Author Comment

by:PhilChapmanJr
ID: 34992578
Are they a way to create do the same thing using the Microsoft Office Outlook Viewer Control Reference instead of the control?
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 250 total points
ID: 35030258
If you don't add the control through the designer, then you need to add controls to the form:

Me.Controls.Add(control)

Open in new window


How To Dynamically Add Controls to a Form with Visual Basic 6.0
http://support.microsoft.com/kb/190670
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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