IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Dotnet Discussion :

Value does not fall within the expected rang eerreur


Sujet :

Dotnet

  1. #1
    Membre régulier
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Avril 2013
    Messages
    52
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2013
    Messages : 52
    Points : 99
    Points
    99
    Par défaut Value does not fall within the expected rang eerreur
    BON JOUR

    je suis entrain de développer une application pour mon pfe

    dans une interface , j'ai rencontrée cet erreur situé au dessus de cette discussion

    voici le fichier design de ce interface

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    namespace PFE
    {
        partial class Fiche_Fournisseur
        {
            private System.ComponentModel.IContainer components = null;
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
     
            #region Windows Form Designer generated code
            private void InitializeComponent()
            {
                this.components = new System.ComponentModel.Container();
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Fiche_Fournisseur));
                this.label1 = new System.Windows.Forms.Label();
                this.label2 = new System.Windows.Forms.Label();
                this.label3 = new System.Windows.Forms.Label();
                this.label4 = new System.Windows.Forms.Label();
                this.label5 = new System.Windows.Forms.Label();
                this.label6 = new System.Windows.Forms.Label();
                this.label7 = new System.Windows.Forms.Label();
                this.rai_sos_frs = new System.Windows.Forms.TextBox();
                this.nom_frs = new System.Windows.Forms.TextBox();
                this.adr_frs = new System.Windows.Forms.RichTextBox();
                this.ville = new DevExpress.XtraEditors.CheckedComboBoxEdit();
                this.tel = new System.Windows.Forms.TextBox();
                this.fax = new System.Windows.Forms.TextBox();
                this.email = new System.Windows.Forms.TextBox();
                this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
                this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
                this.anuller = new System.Windows.Forms.Button();
                this.valider = new System.Windows.Forms.Button();
                this.label8 = new System.Windows.Forms.Label();
                this.textBox1 = new System.Windows.Forms.TextBox();
                ((System.ComponentModel.ISupportInitialize)(this.ville.Properties)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
                ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
                this.SuspendLayout();
                // 
                // label1
                // 
                this.label1.AutoSize = true;
                this.label1.Location = new System.Drawing.Point(714, 25);
                this.label1.Name = "label1";
                this.label1.Size = new System.Drawing.Size(76, 13);
                this.label1.TabIndex = 0;
                this.label1.Text = "المعرف الحبائي";
                // 
                // label2
                // 
                this.label2.AutoSize = true;
                this.label2.Location = new System.Drawing.Point(735, 81);
                this.label2.Name = "label2";
                this.label2.Size = new System.Drawing.Size(55, 13);
                this.label2.TabIndex = 1;
                this.label2.Text = "إسم المزود";
                // 
                // label3
                // 
                this.label3.AutoSize = true;
                this.label3.Location = new System.Drawing.Point(673, 311);
                this.label3.Name = "label3";
                this.label3.Size = new System.Drawing.Size(64, 13);
                this.label3.TabIndex = 2;
                this.label3.Text = "عنوان المزود";
                // 
                // label4
                // 
                this.label4.AutoSize = true;
                this.label4.Location = new System.Drawing.Point(808, 440);
                this.label4.Name = "label4";
                this.label4.Size = new System.Drawing.Size(34, 13);
                this.label4.TabIndex = 3;
                this.label4.Text = "الولاية";
                // 
                // label5
                // 
                this.label5.AutoSize = true;
                this.label5.Location = new System.Drawing.Point(320, 25);
                this.label5.Name = "label5";
                this.label5.Size = new System.Drawing.Size(55, 13);
                this.label5.TabIndex = 4;
                this.label5.Text = "رقم الهاتف";
                this.label5.Click += new System.EventHandler(this.label5_Click);
                // 
                // label6
                // 
                this.label6.AutoSize = true;
                this.label6.Location = new System.Drawing.Point(318, 81);
                this.label6.Name = "label6";
                this.label6.Size = new System.Drawing.Size(57, 13);
                this.label6.TabIndex = 5;
                this.label6.Text = "رقم الفاكس";
                // 
                // label7
                // 
                this.label7.AutoSize = true;
                this.label7.Location = new System.Drawing.Point(293, 136);
                this.label7.Name = "label7";
                this.label7.Size = new System.Drawing.Size(82, 13);
                this.label7.TabIndex = 6;
                this.label7.Text = "البريد الإلكتروني";
                // 
                // rai_sos_frs
                // 
                this.rai_sos_frs.Location = new System.Drawing.Point(411, 25);
                this.rai_sos_frs.Name = "rai_sos_frs";
                this.rai_sos_frs.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
                this.rai_sos_frs.Size = new System.Drawing.Size(255, 20);
                this.rai_sos_frs.TabIndex = 7;
                // 
                // nom_frs
                // 
                this.nom_frs.Location = new System.Drawing.Point(411, 81);
                this.nom_frs.Name = "nom_frs";
                this.nom_frs.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
                this.nom_frs.Size = new System.Drawing.Size(255, 20);
                this.nom_frs.TabIndex = 8;
                // 
                // adr_frs
                // 
                this.adr_frs.Location = new System.Drawing.Point(556, 240);
                this.adr_frs.Name = "adr_frs";
                this.adr_frs.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
                this.adr_frs.Size = new System.Drawing.Size(255, 68);
                this.adr_frs.TabIndex = 9;
                this.adr_frs.Text = "";
                // 
                // ville
                // 
                this.ville.EditValue = "";
                this.ville.Location = new System.Drawing.Point(541, 391);
                this.ville.Name = "ville";
                this.ville.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
                new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
                this.ville.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
                this.ville.Size = new System.Drawing.Size(255, 20);
                this.ville.TabIndex = 10;
                // 
                // tel
                // 
                this.tel.Location = new System.Drawing.Point(12, 25);
                this.tel.MaxLength = 8;
                this.tel.Name = "tel";
                this.tel.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
                this.tel.Size = new System.Drawing.Size(255, 20);
                this.tel.TabIndex = 11;
                this.tel.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.tel_KeyPress);
                // 
                // fax
                // 
                this.fax.Location = new System.Drawing.Point(12, 78);
                this.fax.MaxLength = 8;
                this.fax.Name = "fax";
                this.fax.Size = new System.Drawing.Size(255, 20);
                this.fax.TabIndex = 12;
                this.fax.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.fax_KeyPress);
                // 
                // email
                // 
                this.email.Location = new System.Drawing.Point(12, 136);
                this.email.Name = "email";
                this.email.Size = new System.Drawing.Size(255, 20);
                this.email.TabIndex = 13;
                // 
                // errorProvider
                // 
                this.errorProvider.ContainerControl = this;
                this.errorProvider.RightToLeft = true;
                // 
                // errorProvider1
                // 
                this.errorProvider1.ContainerControl = this;
                this.errorProvider1.Icon = ((System.Drawing.Icon)(resources.GetObject("errorProvider1.Icon")));
                this.errorProvider1.RightToLeft = true;
                // 
                // anuller
                // 
              //  this.anuller.Image = global::PFE.Properties.Resources._1425074516_591981;
                this.anuller.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.anuller.Location = new System.Drawing.Point(743, 311);
                this.anuller.Name = "anuller";
                this.anuller.Size = new System.Drawing.Size(96, 51);
                this.anuller.TabIndex = 15;
                this.anuller.Text = "إلغاء";
                this.anuller.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.anuller.UseVisualStyleBackColor = true;
                this.anuller.Click += new System.EventHandler(this.anuller_Click);
                // 
                // valider
                // 
                this.valider.BackColor = System.Drawing.SystemColors.ButtonHighlight;
            //    this.valider.Image = global::PFE.Properties.Resources._1425075462_85542;
                this.valider.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
                this.valider.Location = new System.Drawing.Point(608, 314);
                this.valider.Name = "valider";
                this.valider.Size = new System.Drawing.Size(96, 51);
                this.valider.TabIndex = 14;
                this.valider.Text = "إضافة";
                this.valider.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                this.valider.UseVisualStyleBackColor = false;
                this.valider.Click += new System.EventHandler(this.valider_Click);
                // 
                // 
                // label8
                // 
                this.label8.AutoSize = true;
                this.label8.Location = new System.Drawing.Point(723, 140);
                this.label8.Name = "label8";
                this.label8.Size = new System.Drawing.Size(67, 13);
                this.label8.TabIndex = 16;
                this.label8.Text = "إسم المسؤول";
                // 
                // textBox1
                // 
                this.textBox1.Location = new System.Drawing.Point(411, 136);
                this.textBox1.Name = "textBox1";
                this.textBox1.Size = new System.Drawing.Size(255, 20);
                this.textBox1.TabIndex = 17;
                // 
                // Fiche_Fournisseur
                // 
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
                this.ClientSize = new System.Drawing.Size(808, 421);
                this.Controls.Add(this.textBox1);
                this.Controls.Add(this.label8);
                this.Controls.Add(this.anuller);
                this.Controls.Add(this.valider);
                this.Controls.Add(this.ville);
                this.Controls.Add(this.adr_frs);
                this.Controls.Add(this.nom_frs);
                this.Controls.Add(this.rai_sos_frs);
                this.Controls.Add(this.label7);
                this.Controls.Add(this.label6);
                this.Controls.Add(this.label5);
                this.Controls.Add(this.label4);
                this.Controls.Add(this.label3);
                this.Controls.Add(this.label2);
                this.Controls.Add(this.label1);
                this.Controls.Add(this.email);
                this.Controls.Add(this.fax);
                this.Controls.Add(this.tel);
                this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
                this.MaximizeBox = false;
                this.Name = "Fiche_Fournisseur";
                this.Text = "إضافة مزود";
                this.Load += new System.EventHandler(this.Ajout_Fournisseur_Load);
                ((System.ComponentModel.ISupportInitialize)(this.ville.Properties)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
                ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
                this.ResumeLayout(false);
                this.PerformLayout();
     
            }
     
            #endregion
     
            private System.Windows.Forms.Label label1;
            private System.Windows.Forms.Label label2;
            private System.Windows.Forms.Label label3;
            private System.Windows.Forms.Label label4;
            private System.Windows.Forms.Label label5;
            private System.Windows.Forms.Label label6;
            private System.Windows.Forms.Label label7;
            private System.Windows.Forms.TextBox rai_sos_frs;
            private System.Windows.Forms.TextBox nom_frs;
            private System.Windows.Forms.RichTextBox adr_frs;
            private DevExpress.XtraEditors.CheckedComboBoxEdit ville;
            private System.Windows.Forms.TextBox tel;
            private System.Windows.Forms.TextBox fax;
            private System.Windows.Forms.TextBox email;
            private System.Windows.Forms.Button valider;
            private System.Windows.Forms.Button anuller;
            private System.Windows.Forms.ErrorProvider errorProvider;
            private System.Windows.Forms.ErrorProvider errorProvider1;
            private System.Windows.Forms.TextBox textBox1;
            private System.Windows.Forms.Label label8;
        }
    }
    le problème ; il n'a pas m'indiqué ou est la place d'erreur


    aidez moi svp et Merci

  2. #2
    Membre expérimenté
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Février 2007
    Messages
    871
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 39
    Localisation : Canada

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Février 2007
    Messages : 871
    Points : 1 498
    Points
    1 498
    Par défaut
    Salut,

    C'est un erreur de compilation ou d'execution ?

    Si c'est d'execution il te suffit de mettre un point d'qrret au debut de la methode et defiles en pas a pas.
    Si c'est une erreur de compilation, il faut jouer par dichotomie et commenter une grosse partie de la methode et la decommenter au fur et a mesure.

    Par contre, je reste perplexe sur le code en lui-meme:
    si c'est du winforms ta classe est un forms et devrait elle heriter de forms ?

    Pourquoi creer tous ces labels dans le code behind, le designer est fait pour ca.

    ps: previens que c'est du DevExpress, cetrtains seront peut etre plus a meme de t'aider.

  3. #3
    Membre expert Avatar de jopopmk
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Mars 2011
    Messages
    1 856
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2011
    Messages : 1 856
    Points : 3 570
    Points
    3 570
    Par défaut
    Citation Envoyé par mermich Voir le message
    Par contre, je reste perplexe sur le code en lui-meme:
    si c'est du winforms ta classe est un forms et devrait elle heriter de forms ?

    Pourquoi creer tous ces labels dans le code behind, le designer est fait pour ca.
    En fait il ne crée rien, il nous montre ici la partie designer.cs autogénérée.
    C'est pour cela que la classe ne dérive pas de Form (ici), c'est juste la partial qui correspond à l'init des components

    Pour en revenir à l'erreur il semble (d'après google) qu'elle est levée quand on nomme (attribut Name) deux éléments de même niveau avec un même nom.
    Dans le designer.cs montré ici ce n'est pas le cas, donc ça peut-être dû à un contrôle ajouté à la main côté "code maison".
    Plus je connais de langages, plus j'aime le C.

Discussions similaires

  1. ClickOnce: Value does not fall within the expected range
    Par jubourbon dans le forum Visual Studio
    Réponses: 1
    Dernier message: 05/10/2012, 17h17
  2. [SP-2010] erreur :Value does not fall within the expected range
    Par hassine dans le forum SharePoint
    Réponses: 1
    Dernier message: 01/07/2010, 10h17
  3. The name 'AdressFamily' does not exist in the current context
    Par konamine dans le forum Windows Forms
    Réponses: 1
    Dernier message: 26/10/2008, 16h49
  4. Réponses: 1
    Dernier message: 10/05/2006, 12h11
  5. FATAL 1: Database "x" does not exist in the syste
    Par barbituric dans le forum PostgreSQL
    Réponses: 11
    Dernier message: 17/03/2004, 06h35

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo