473,473 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

OCX in TabControl in UserControl

Hi,

I must program a Form that contains OCXs in a TabControl, each tab of which
contains a single OCX. I

created that with the Designer and it works ok.
For different reasons, I decide to create a UserControl that only contains
the TabControl that contains the OCXs, 1 OCX per tab. The UserControl will
go to my original Form.
Unfortunately the second design doesn't work well. The first tab shows its
OCX all right. But in all

subsequent tabs, the OCX doesn't appear at all. If I swap tabs, without
changing their content, the OCX in the first tab always appear whereas the
OCXs of the subsequent tabs never do.
In the hope of finding a clue I used reflexion to enumerate all the
properties of the OCXs. The only meaningful difference (except from name or
size) is that the CanFocus property of not-appearing OCXs is false whereas
it's true for the appearing OCX. All others properties are the same,
including Visible and Enabled that are both true.
If an OCX is inserted on the UserControl but next to the TabControl, it
appears.
If the tabs contain other controls, they appear too.

In one word I can't understand what happens. Do you have an idea ?

Thanks,
Manu

Aug 31 '07 #1
0 1105

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ChrisK | last post by:
Bonjour, Débutant en VB.Net, je me trouve devant un souci. Au taf, une solution d'appli par onglet a été retenue...et sur qui ça tombe...sur kiki ! Bref voici mon souci : J'ai une form...
1
by: RA | last post by:
Hi 1) I want to create a TabPage class in design mode - how do I do it? What type of project should I use? Is it going to be a custom control? 2) I have a TabControl that I would like to add to...
2
by: Patrick McGuire | last post by:
I want to place a tabControl with almost identical properties on several forms. I think the best way is to define a UserControl that inherits System.Windows.Forms.TabControl, and place all my...
8
by: ChrisK | last post by:
Hi, I'm beginner with VB.net and i have a trouble... At work, they decided to program with tabcontrol...and i'mm in charge of this ! There is my problem. I've a form with one tabcontrol (TBC1...
0
by: Juan Pedro Gonzalez | last post by:
Hi, I'm running mad with this issue, hope I can explain it correctlly. I've been developping a user control wich is very similar to the TabControl... Basically my control has two panels that...
4
by: Maileen | last post by:
Hi, Few weeks ago, i asked how to do a tabpage where we don't see the button on the top... in fact, i needed only to show the tabpages without showing the tabpage button (for design purpose) ...
0
by: Sagaert Johan | last post by:
I have a tabcontrol whith on one of the tabpages a custom control (mycontrol) derived from UserControl. When i call the tabcontrol.TabPages.Clear() , the mycontrol OnLoad events gets called ....
0
by: News | last post by:
I have created a usercontrol that has a Tabcontrol with 2 tab pages. On each page I have placed an ActiveX control. All looks fine at design time but when I run the app - only the activex...
2
by: =?Utf-8?B?TW9oc2luIEtoYW4=?= | last post by:
Hi, I am working on a website where i am creating Horizontal Menus Dynamically from database as per rights available to the user. I have several UserControls. And the Menu control also brings...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.