Tab Index Reihenfolge stimmt nicht...



  • Hi!
    Ich habe eine WinForm in c++/cli mit 6 TextBoxen. Eigentlich sollte er von 1 - 6 die TextBoxen durchlaufen, aber die zweite TextBox wird übersprungen und als letztes ausgewählt obwohl der Index auf 1 gestellt ist (0...5). Tab Stop ist bei allen auf True. Verstehe gerade nicht was da falsch läuft bzw. was ich falsch gemacht haben könnte. Wäre da über jeden tipp echt dankbar!
    Liebe Grüße
    littles

    this->textBox1->Location = System::Drawing::Point(25, 77);
    			this->textBox1->Name = L"textBox1";
    			this->textBox1->Size = System::Drawing::Size(100, 20);
    			this->textBox1->TabIndex = 0;
    			this->textBox1->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::textBox1_KeyPress);
    			// 
    			// textBox2
    			// 
    			this->textBox2->Location = System::Drawing::Point(369, 42);
    			this->textBox2->Name = L"textBox2";
    			this->textBox2->Size = System::Drawing::Size(100, 20);
    			this->textBox2->TabIndex = 1;
    			this->textBox2->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::textBox2_KeyPress);
    			// 
    			// textBox3
    			// 
    			this->textBox3->Location = System::Drawing::Point(25, 147);
    			this->textBox3->Name = L"textBox3";
    			this->textBox3->Size = System::Drawing::Size(100, 20);
    			this->textBox3->TabIndex = 2;
    			this->textBox3->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::textBox3_KeyPress);
    			// 
    			// textBox4
    			// 
    			this->textBox4->Location = System::Drawing::Point(369, 147);
    			this->textBox4->Name = L"textBox4";
    			this->textBox4->Size = System::Drawing::Size(100, 20);
    			this->textBox4->TabIndex = 3;
    			this->textBox4->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::textBox4_KeyPress);
    			// 
    			// textBox5
    			// 
    			this->textBox5->BackColor = System::Drawing::SystemColors::Info;
    			this->textBox5->ForeColor = System::Drawing::Color::Red;
    			this->textBox5->Location = System::Drawing::Point(25, 244);
    			this->textBox5->Name = L"textBox5";
    			this->textBox5->Size = System::Drawing::Size(100, 20);
    			this->textBox5->TabIndex = 4;
    			this->textBox5->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::textBox5_KeyPress);
    			// 
    			// textBox6
    			// 
    			this->textBox6->BackColor = System::Drawing::SystemColors::Info;
    			this->textBox6->ForeColor = System::Drawing::Color::Red;
    			this->textBox6->Location = System::Drawing::Point(369, 244);
    			this->textBox6->Name = L"textBox6";
    			this->textBox6->Size = System::Drawing::Size(100, 20);
    			this->textBox6->TabIndex = 5;
    			this->textBox6->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &Form1::textBox6_KeyPress);
    


  • 1. du bist im falsche forum
    2. was du programmierst ist C++/CLI mit .net
    3. warum man C++/CLI nich benutzt wurde hier schon oft beschrieben (forensuche mal benutzen)
    4. was dein eigentliches Problem is kann ich dir nicht sagen 😉



  • Dieser Thread wurde von Moderator/in Martin Richter aus dem Forum MFC (Visual C++) in das Forum C++/CLI mit .NET verschoben.

    Im Zweifelsfall bitte auch folgende Hinweise beachten:
    C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?

    Dieses Posting wurde automatisch erzeugt.



  • Mach das ganze doch im Designer, dann siehst Du was er genau macht. Vielleicht hast Du noch eine GroupBox oder ein Panel dazwischen...

    Menü: View|Tab Order


Anmelden zum Antworten