?
Solved

Create Control On The Fly

Posted on 2011-02-22
7
Medium Priority
?
691 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
[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
  • 2
7 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 1000 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 1000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

752 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