473,394 Members | 1,971 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

URGENT : TabControl, tabpages et UserControl

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 contenant un tabControl ( TBC1 )
Ce TBC1 comporte n tabPages (TBP1,2,3,...)
Pour chaque TBPn, j'ai définit une série de contrôles bien précis (
regroupé dans des usercontroles ( un par TBP ).

Mon soucis est de faire communiquer tous les TBP.
Ex :

Dans TBP1, un liste de valeur permet de sélectionner un utilisateur.
Après clique sur bouton détail, je voudrai que le TBP2 ( qui
représente une fiche utilisateur ) soit reseigné et s'affiche à
l'écran...

Je ne sais pas si j'ai été assez clair, mais en résumé voici la
question :
"Comment faire communiquer entre eux des UserControls inclut dans des
TabPages différents ?"

Merci d'avance pour votre aide

Mail_taf
Nov 22 '05 #1
1 2411
Chris,

Please do it in English, this are international newsgroups where is written
English,
(And because it is international most people do not notice your writting
errors)

To select a tabpage is quiet easy, just set the selectedindex from the
tabpage or the name of the selectedtab

The controls from your tabpages belong as well to your formclass, so that
cannot be a problem.

Be aware that the tabpage has a bug which makes that it rearange. For fixing
that is the best way to remove and add it everytime to the underlying
tabcontrol.

A better newsgroup for your VBNet problems is in my opinion the newsgroup
microsoft.public.dotnet.languages.vb

I hope this helps?

Cor

"ChrisK" <ma******@yahoo.fr>
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 contenant un tabControl ( TBC1 )
Ce TBC1 comporte n tabPages (TBP1,2,3,...)
Pour chaque TBPn, j'ai définit une série de contrôles bien précis (
regroupé dans des usercontroles ( un par TBP ).

Mon soucis est de faire communiquer tous les TBP.
Ex :

Dans TBP1, un liste de valeur permet de sélectionner un utilisateur.
Après clique sur bouton détail, je voudrai que le TBP2 ( qui
représente une fiche utilisateur ) soit reseigné et s'affiche à
l'écran...

Je ne sais pas si j'ai été assez clair, mais en résumé voici la
question :
"Comment faire communiquer entre eux des UserControls inclut dans des
TabPages différents ?"

Merci d'avance pour votre aide

Mail_taf

Nov 22 '05 #2

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: Richard | last post by:
Hi, Simple tabcontrol question: I have a tab control with a number of tabpages on it. What I want is to show a particular tabpage when I click a button that is not on the tabcontrol. Can...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
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...
5
by: scorpion53061 | last post by:
I am trying to be able to share a groupbox and its related controls among all of my tab pages. This does not error but the controls do not appear either. Thank you for your help!! ...
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 ....
2
by: Kevin | last post by:
Although lots of people described how to workaround the lack of ability to hide and show tab pages on a tab control, I couldnt find a code example so I made one. Create a class that inherits from...
0
by: =?Utf-8?B?TWFydGluIw==?= | last post by:
Hello everybody! Please note that I have posted same question in different forums with no success. So If you tried to help me there, please do not consider the repost as rude! I'm working on...
2
by: Gav | last post by:
I am writing an application where I will have a TabControl and 3 styles of Tabs to go in it, each containing different controls. The tabs will be added to the tabcontrol when items are clicked on...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.