<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=48&amp;t=11990&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-06-13T10:30:11+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=48&amp;t=11990&amp;mode</id>
<entry>
<author><name><![CDATA[developer85]]></name></author>
<updated>2015-06-13T10:30:11+01:00</updated>
<published>2015-06-13T10:30:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11990&amp;p=131657#p131657</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11990&amp;p=131657#p131657"/>
<title type="html"><![CDATA[Re: Dlaczego nie updatuje textu w Comboboxie?]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11990&amp;p=131657#p131657"><![CDATA[
[syntax=csharp]namespace ProjektyTestowe<br />{<br />    public partial class Form1 : Form<br />    {<br />        public Form1()<br />        {<br />            InitializeComponent();            <br />        }<br /><br />        protected override void OnLoad(EventArgs e)<br />        {<br />            base.OnLoad(e);<br />            <br />            comboBox1.Items.AddRange(new string&#91;&#93; {&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;});<br />        }<br /><br />        private void button1_Click(object sender, EventArgs e)<br />        {<br />            comboBox1.Text = &quot;22&quot;;<br />        }<br /><br />        private void button2_Click(object sender, EventArgs e)<br />        {<br />            comboBox1.Text = &quot;33&quot;;<br />        }<br />    }<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=390">developer85</a> — 13 cze 2015, o 10:30</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xamrex]]></name></author>
<updated>2015-06-12T12:58:00+01:00</updated>
<published>2015-06-12T12:58:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11990&amp;p=131576#p131576</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11990&amp;p=131576#p131576"/>
<title type="html"><![CDATA[Dlaczego nie updatuje textu w Comboboxie?]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11990&amp;p=131576#p131576"><![CDATA[
Witam.<br />Mam taki kod:<br />[syntax=csharp]using System;<br />using System.Collections.Generic;<br />using System.ComponentModel;<br />using System.Data;<br />using System.Drawing;<br />using System.Linq;<br />using System.Text;<br />using System.Windows.Forms;<br /> <br />namespace cb<br />{<br />    public partial class Form1 : Form<br />    {<br />        public Form1()<br />        {<br />            InitializeComponent();<br />            comboBox1.Items.Add(&quot;1&quot;);<br />            comboBox1.Items.Add(&quot;2&quot;);<br />            comboBox1.Items.Add(&quot;3&quot;);<br />            comboBox1.Items.Add(&quot;4&quot;);<br />            comboBox1.Items.Add(&quot;5&quot;);<br />            comboBox1.SelectedIndex = 2;<br /> <br />        }<br /> <br />        private void button2_Click(object sender, EventArgs e)<br />        {<br />            comboBox1.Text = &quot;22&quot;;<br />        }<br /> <br />        private void button1_Click(object sender, EventArgs e)<br />        {<br />            comboBox1.Text = &quot;33&quot;;<br />        }<br />    }<br />}[/syntax]<br /><br />Apka wygląda tak:<br /><br /><a href="http://forum.atnel.pl/_obrazki/o/74/d2dc64ba464a8673dc5589d13f0930d8.png"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/74/d2dc64ba464a8673dc5589d13f0930d8.png" alt="Obrazek" /></a><a href="http://forum.atnel.pl/_obrazki/o/74/dc2028dab0ca42a93942720ac4975b8c.png"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/74/dc2028dab0ca42a93942720ac4975b8c.png" alt="Obrazek" /></a><br />Teraz jeśli odpalimy aplikację i klikniemy na button2, następnie przejdziemy do zakładki drugiej combobox dalej będzie miał wartość 3.. (nie zmieni się! Dlaczego?)<br /><br />Natomiast jeśli po odpaleniu aplikacji przejdzemy na 2gą zakładkę, potem wrócimy się na pierwszą i klikniemy buttona2, i znwou wrócimy na drugą zakłądkę to combobox się zmieni...<br /><br />Czemu się tak dzieje?<br />tutaj filmik jak to wygląda:<br /><div style="width: 583px; height: 471px; margin: 0 auto; padding-left: 26px; padding-top: 48px; background: url('https://www.atnel.pl/download/atnel_tv.png') no-repeat;"> <strong>iframe</strong> </div><br /><br />Co mam zrobić, aby po kliknięciu buttona2 combobx od razu się updatował?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=74">xamrex</a> — 12 cze 2015, o 12:58</p><hr />
]]></content>
</entry>
</feed>