URGENT : TabControl, tabpages et UserControl

C

ChrisK

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
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top