Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C#] Laufzeit Erzeugte TextBox nicht beschreibbar

Empfohlene Antworten

Veröffentlicht

Ich habe zur Laufzeit auf Buttonclick mehrere Textboxen erzeugt die sich nun nicht beschreiben lassen also während das Programm läuft

Hier der Code:

        private void BtnFilter_Click(object sender, EventArgs e)

        {

            int i = 0;

            int y = 170;


            for (i = 0; i < listBox1.SelectedItems.Count; i++)

            {

                Label[] LFilter = new Label[listBox1.SelectedItems.Count];

                LFilter[i] = new Label();

                LFilter[i].Location = new System.Drawing.Point(571, y);

                LFilter[i].Text = listBox1.GetItemText(listBox1.SelectedItems[i]);

                LFilter[i].Name = "Lbl"+listBox1.GetItemText(listBox1.SelectedItems[i]);

                Controls.Add(LFilter[i]);

                //MessageBox.Show(listBox1.GetItemText(listBox1.SelectedItems[i]));

                TextBox[] TFilter = new TextBox[listBox1.SelectedItems.Count];

                TFilter[i] = new TextBox();

                TFilter[i].Location = new System.Drawing.Point(650, y);

                TFilter[i].Name = "Txt" + listBox1.GetItemText(listBox1.SelectedItems[i]);

                TFilter[i].Enabled = true;

                TFilter[i].Parent = this;

                MessageBox.Show(button1.Parent.ToString());

                Controls.Add(TFilter[i]);

                y = y + 25;


            }


        }

Vielen Dank schonmal.

Hat sich erledigt.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.