<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem mit ListBox]]></title><description><![CDATA[<p>Hallo ich habe ein Problem bei dieser Aufgabe.</p>
<p>Ich krieg es einfach net hin das der Eintrag aus der ListBox auf Label1 anzeigt wird.</p>
<p>Aufgabe:</p>
<p>Wenn ein Eintrag in der ListBox angeklickt wird, soll er auf Label1 angzeigt werden.</p>
<p>Aber irgendwie klappt das mit dem Label bei mir nicht -.- In Edit Felder krieg ich es rein nur in Label nicht.</p>
<p>So gehts:</p>
<pre><code>void __fastcall TForm1::ListBox1Click(TObject *Sender)
{

Edit2-&gt;Text =  ListBox1-&gt;Items-&gt;Strings[ListBox1-&gt;ItemIndex];

}
</code></pre>
<p>Dann dachte ich mir dann geht es doch bestimmt auch so:</p>
<pre><code>void __fastcall TForm1::ListBox1Click(TObject *Sender)
{

Label1-&gt;Text =  ListBox1-&gt;Items-&gt;Strings[ListBox1-&gt;ItemIndex];

}
</code></pre>
<p>Geht aber nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p>Dann bekomme ich diese Fehlermeldung:</p>
<p>Erzeugen<br />
[C++ Fehler] Unit1.cpp(37): E2247 Zugriff auf 'TControl::Text' nicht möglich</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/208519/problem-mit-listbox</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 08:23:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/208519.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Mar 2008 10:44:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit ListBox on Wed, 19 Mar 2008 10:44:58 GMT]]></title><description><![CDATA[<p>Hallo ich habe ein Problem bei dieser Aufgabe.</p>
<p>Ich krieg es einfach net hin das der Eintrag aus der ListBox auf Label1 anzeigt wird.</p>
<p>Aufgabe:</p>
<p>Wenn ein Eintrag in der ListBox angeklickt wird, soll er auf Label1 angzeigt werden.</p>
<p>Aber irgendwie klappt das mit dem Label bei mir nicht -.- In Edit Felder krieg ich es rein nur in Label nicht.</p>
<p>So gehts:</p>
<pre><code>void __fastcall TForm1::ListBox1Click(TObject *Sender)
{

Edit2-&gt;Text =  ListBox1-&gt;Items-&gt;Strings[ListBox1-&gt;ItemIndex];

}
</code></pre>
<p>Dann dachte ich mir dann geht es doch bestimmt auch so:</p>
<pre><code>void __fastcall TForm1::ListBox1Click(TObject *Sender)
{

Label1-&gt;Text =  ListBox1-&gt;Items-&gt;Strings[ListBox1-&gt;ItemIndex];

}
</code></pre>
<p>Geht aber nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
<p>Dann bekomme ich diese Fehlermeldung:</p>
<p>Erzeugen<br />
[C++ Fehler] Unit1.cpp(37): E2247 Zugriff auf 'TControl::Text' nicht möglich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1477147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1477147</guid><dc:creator><![CDATA[roflcopter]]></dc:creator><pubDate>Wed, 19 Mar 2008 10:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ListBox on Wed, 19 Mar 2008 11:31:01 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Dann schau doch mal in die BCB-Hilfe, was für Eigenschaften TLabel anbietet. Nämlich nicht Text (damit ist immer vom User editierbarer gemeint) sondern Caption (nur Anzeige).</p>
<p>Mit ListBox hat das aber gar nichts zu tun, und mit Standard C++ auch nicht. Du wirst gleich ins richtige Forum verschoben.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1477176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1477176</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 19 Mar 2008 11:31:01 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ListBox on Wed, 19 Mar 2008 12:24:40 GMT]]></title><description><![CDATA[<p>thx hat funktioniert :&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1477212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1477212</guid><dc:creator><![CDATA[roflcopter]]></dc:creator><pubDate>Wed, 19 Mar 2008 12:24:40 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit ListBox on Wed, 19 Mar 2008 16:14:54 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL (C++ Builder)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1477389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1477389</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 19 Mar 2008 16:14:54 GMT</pubDate></item></channel></rss>