<?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=6999&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-05-06T22:05:41+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=48&amp;t=6999&amp;mode</id>
<entry>
<author><name><![CDATA[kamil7417]]></name></author>
<updated>2014-05-06T22:02:05+01:00</updated>
<published>2014-05-06T22:02:05+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6999&amp;p=80358#p80358</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6999&amp;p=80358#p80358"/>
<title type="html"><![CDATA[Re: Rozmieszczenie Labeli]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6999&amp;p=80358#p80358"><![CDATA[
Tak na szybko napisałem:<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.Threading.Tasks;<br />using System.Windows.Forms;<br /><br />namespace test2<br />{<br />    public partial class Form1 : Form<br />    {<br /><br />        static Point lab3;<br />       <br />       <br />        <br />        public Form1()<br />        {<br />            InitializeComponent();<br />            lab3 = label3.Location;<br />                    <br />        }<br /><br />        private void button1_Click(object sender, EventArgs e)<br />        {<br />            label1.Visible = true;<br />            label2.Visible = true;<br />            label3.Visible = true;<br />            label3.Location = lab3;<br />            <br /><br />        }<br /><br />        private void button2_Click(object sender, EventArgs e)<br />        {<br />            label1.Visible = true;<br />            label2.Visible = true;<br />            label3.Visible = false;<br />        }<br /><br />        private void button3_Click(object sender, EventArgs e)<br />        {<br />            label1.Visible = true;<br />            label2.Visible = false;<br />            label3.Visible = true;<br />            label3.Location = label2.Location;<br /><br />        }<br />    }<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1467">kamil7417</a> — 6 maja 2014, o 22:02</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[xamrex]]></name></author>
<updated>2014-05-06T22:05:41+01:00</updated>
<published>2014-05-06T20:52:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6999&amp;p=80347#p80347</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6999&amp;p=80347#p80347"/>
<title type="html"><![CDATA[Rozmieszczenie Labeli]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6999&amp;p=80347#p80347"><![CDATA[
Witam,<br />Mam taki malutki problemik, który jakoś starałem się rozwiązać(nawet nie wiem czy idę dobrym tropem, pewnie można łatwiej), ale tak czy siak nie udało mi się tego rozwiązać.<br /><br />Oto apka:<br /><a href="http://forum.atnel.pl/_obrazki/o/74/efb0816a9b6d2f420b749a8e7b377918.png"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/74/efb0816a9b6d2f420b749a8e7b377918.png" alt="Obrazek" /></a><br /><br />Generalnie są 3 labele.<br />I teraz po naciśnięciu:<br />a)Pierwszego Buttona mają być widoczne wszystkie 3 labele<br />b)Drugiego Buttona ma być widoczny pierwszy i drugi label<br />c)Trzeciego Buttona ma być widoczny pierwszy i trzeci label. <strong>Ale nie chcę odstępu między pierwszym a tym trzecim labelem</strong><br /><br />Chciałbym po prostu, aby ten trzeci label 'przejął położenie tego 2giego labela'<br /><br />W jaki sposób to zrobić?<br />Macie na to jakiś pomysł?<br /><br />Ja wymyśliłem coś takiego:<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 lokalizacja<br />{<br />    public partial class Form1 : Form<br />    {<br />        class global<br />        {<br />            public static Point wspLabel1, wspLabel2, wspLabel3;<br />    <br />        }<br /><br /><br />        public Form1()<br />        {<br />            InitializeComponent();<br />            global.wspLabel1 = label1.Location;<br />            global.wspLabel2 = label2.Location;<br />            global.wspLabel3 = label3.Location;<br /><br />        }<br /><br />        private void button1_Click(object sender, EventArgs e)<br />        {<br />            <br />            label1.Visible = true;<br />            label2.Visible = true;<br />            label3.Visible = true;<br />            label3.Location = global.wspLabel3;<br />        }<br /><br />        private void button2_Click(object sender, EventArgs e)<br />        {<br />            label1.Visible = true;<br />            label2.Visible = true;<br />            label3.Visible = false;<br />        }<br /><br />        private void button3_Click(object sender, EventArgs e)<br />        {<br />            label3.Location = global.wspLabel2;<br />            label1.Visible = true;<br />            label2.Visible = false;<br />            label3.Visible = true;<br /><br />            <br /><br />            <br />        }<br />    }<br />}[/syntax]<br />Tylko czy to jest dobry pomysł?<br />Generalnie nie wiem czy robię to dobrze, używając tych zmiennych globalnych..<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=74">xamrex</a> — 6 maja 2014, o 20:52</p><hr />
]]></content>
</entry>
</feed>