Solved

Create Control On The Fly

Posted on 2011-02-22
7
687 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 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

726 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