Label récapitulatif

trext Messages postés 11 Date d'inscription mardi 10 mars 2009 Statut Membre Dernière intervention 16 mars 2010 - 6 avril 2009 à 13:42
trext Messages postés 11 Date d'inscription mardi 10 mars 2009 Statut Membre Dernière intervention 16 mars 2010 - 6 avril 2009 à 14:18
Salut.

Je faisais un exercice où je trouvais "label récapitulatif" , ça vaut dire quoi ?

la partie de l'exercice où il y a ce mot :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 11" /><meta name="Originator" content="Microsoft Word 11" /><link rel="File-List" href="file:///C:%5CUsers%5Cad%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" /><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
--></style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->Faites en sorte que le menu récapitulatif (Label de droite)
soit mis à jour au fur et à mesure que l'utilisateur sélectionne ou
désélectionne les plats.

merci d'avance.

2 réponses

cs_Willi Messages postés 2375 Date d'inscription jeudi 12 juillet 2001 Statut Modérateur Dernière intervention 15 décembre 2018 22
6 avril 2009 à 13:55
Bonjour,
Oua il va falloir sortir une boule de cristal pour deviner... si tu donnes rien pour t'aider sa va pas être facile (http://www.vbfrance.com/reglement.aspx)

Je me lance au hasard
TonLabelRecapitulatif.Text = TonLabelRecapitulatif.Text & " " & PlatFrites
TonLabelRecapitulatif.Text = TonLabelRecapitulatif.Text & " " & PlatSteak
etc ...

par contre je n'ai pas le dessert mince...

++
0
trext Messages postés 11 Date d'inscription mardi 10 mars 2009 Statut Membre Dernière intervention 16 mars 2010
6 avril 2009 à 14:18
Donc je poste tout l'exercice :

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 11" /><meta name="Originator" content="Microsoft Word 11" /><link rel="File-List" href="file:///C:%5CUsers%5Cad%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C03%5Cclip_filelist.xml" /><link rel="Edit-Time-Data" href="file:///C:%5CUsers%5Cad%5CAppData%5CLocal%5CTemp%5Cmsohtml1%5C03%5Cclip_editdata.mso" /><!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
h3
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0cm;
margin-bottom:3.0pt;
margin-left:0cm;
text-align:justify;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:3;
font-size:13.0pt;
font-family:Arial;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
--></style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
table.MsoTableList3
{mso-style-name:"Tableau liste 3";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
border-top:solid black 1.5pt;
border-left:none;
border-bottom:solid black 1.5pt;
border-right:none;
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-border-insideh:.75pt solid black;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
table.MsoTableList3FirstRow
{mso-style-name:"Tableau liste 3";
mso-table-condition:first-row;
mso-tstyle-border-bottom:1.5pt solid black;
mso-tstyle-diagonal-down:0cm none windowtext;
mso-tstyle-diagonal-up:0cm none windowtext;
color:navy;
mso-ansi-font-weight:bold;
mso-bidi-font-weight:bold;}
table.MsoTableList3LastRow
{mso-style-name:"Tableau liste 3";
mso-table-condition:last-row;
mso-tstyle-border-top:1.5pt solid black;
mso-tstyle-diagonal-down:0cm none windowtext;
mso-tstyle-diagonal-up:0cm none windowtext;}
table.MsoTableList3SWCell
{mso-style-name:"Tableau liste 3";
mso-table-condition:sw-cell;
mso-tstyle-diagonal-down:0cm none windowtext;
mso-tstyle-diagonal-up:0cm none windowtext;
color:navy;
mso-ansi-font-style:italic;
mso-bidi-font-style:italic;}
</style>
<![endif]-->Le contrôle CheckBox Windows Forms indique si une condition
est active ou inactive. Il est couramment utilisé pour présenter à
l'utilisateur des alternatives de type Oui/Non ou Vrai/Faux. Vous pouvez
utiliser les contrôles CheckBox en groupes pour afficher plusieurs options
parmi lesquelles l'utilisateur peut en sélectionner une ou plusieurs.

Résultat attendu
 

<!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:294pt;
height:198pt'>
<v:imagedata src="file:///C:\Users\ad\AppData\Local\Temp\msohtml1\03\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]-->

 

Traitement effectué
L'utilisateur compose son menu en cochant les différents
plats proposés. Il valide son choix en cliquant sur le bouton 'Ok'. Les options
choisies s'affichent alors dans le contrôle Label sur le côté droit.

Le bouton réinitialise tous les contrôles (Cases à cochées
décochées et Label récapitulatif vide.

Le bouton 'Fermer' met fin à l'application.

L'utilisateur pourra utiliser le clavier à la place des
boutons 'Ok' et 'Fermer'. La touche Entrée activera le bouton 'Ok' et la touche
'Echap' le bouton 'Fermer'.

Eléments utiles
Classe

, Type

, Membre

, Description

, ----
CheckBox, P, Checked, true/false indique si une case est cochée ou pas, ----
Control, P, Controls, Obtient la collection de contrôles contenus dans le
contrôle., ----
Form, P, AcceptButton, Bouton d'acceptation du formulaire (Entrée)., ----
Form, P, CancelButton, Bouton d'annulation du formulaire (Echap).
 

Si vous avez du temps
Faites en sorte que le menu récapitulatif (Label de droite)
soit mis à jour au fur et à mesure que l'utilisateur sélectionne ou
désélectionne les plats.
0
Rejoignez-nous