🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #22192

Re: znow sie pogubilem

#22192
From: qaz
Date: Wed, 08 Jun 2011 08:55
53 lines
2900 bytes
Użytkownik "Łukasz 'Maly' Ostrowski" <maly@USUNnemo.pl> napisał w wiadomości 
news:29nnpgk66jqc$.ukps31o3saeg$.dlg@40tude.net...

> Jezus marian:
> kl.psWk a nie form1.psWk...
>
> Tworzysz kl typu Form1, więc stan bierzesz
> z kl a nie z samego typu.
>
Mea culpa, więc znoszę pokornie krytykę.

> (*) - przyjęło się że nazwy typów pisze się z
> WielkiejLitery a pola i zmienne zaczyna małąLiterą.
Przyjąłem

> Wiem, wiem, dzisiejsza młodzież, książka to zło
Tu bym podyskutował - ale miło mi za tą "młodzież"

No ale problem jest dalej, wklejam na "żywca" kod

klienci:

public partial class klienci : Form
{
  public string psWk{ get; private set; }
  //...
  private void bOk_Click(object sender, EventArgs e)
  {
  psWk = this.tbIden.Text;
   // lub   this.psWk = this.tbIden.Text;
  this.Close();
  }
}

form2:
//...
private void button1_Click(object sender, EventArgs e)
{
Form kl = new klienci();
kl.ShowDialog();
this.textBox1.Text = kl.psWk;  //
}
//...

Error 1 'System.Windows.Forms.Form' does not contain a definition for 'psWk' 
and no extension method 'psWk' accepting a first argument of type 
'System.Windows.Forms.Form' could be found (are you missing a using 
directive or an assembly reference?) ...

Trudno, możecie ulżyć sobie ale czego nie wiem ?
-- 
pzdr
    qaz 
Technical Details
Message-ID: <4def391a$0$2441$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin.stu.neva.ru!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <4de88723$0$2440$65785112@news.neostrada.pl> <f0d2b8ca-4ff0-44bc-a255-bc7e72ee7eb7@s2g2000yql.googlegroups.com> <4de8b4ad$0$2497$65785112@news.neostrada.pl> <f86bf68d-f9ee-4c03-b0a7-bfb9411474b7@y12g2000yqh.googlegroups.com> <4dec8f29$0$2439$65785112@news.neostrada.pl> <4dec9398$0$2486$65785112@news.neostrada.pl> <61a8bb4d-9345-4a5a-a1d5-ca0351595fe2@e35g2000yqc.googlegroups.com> <4dedcc87$0$2459$65785112@news.neostrada.pl> <29nnpgk66jqc$.ukps31o3saeg$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin.stu.neva.ru!feeder1.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "qaz" <qazvox29a@wp.pl>
Newsgroups: alt.pl.comp.lang.csharp
References: <4de88723$0$2440$65785112@news.neostrada.pl> <f0d2b8ca-4ff0-44bc-a255-bc7e72ee7eb7@s2g2000yql.googlegroups.com> <4de8b4ad$0$2497$65785112@news.neostrada.pl> <f86bf68d-f9ee-4c03-b0a7-bfb9411474b7@y12g2000yqh.googlegroups.com> <4dec8f29$0$2439$65785112@news.neostrada.pl> <4dec9398$0$2486$65785112@news.neostrada.pl> <61a8bb4d-9345-4a5a-a1d5-ca0351595fe2@e35g2000yqc.googlegroups.com> <4dedcc87$0$2459$65785112@news.neostrada.pl> <29nnpgk66jqc$.ukps31o3saeg$.dlg@40tude.net>
Subject: Re: znow sie pogubilem
Date: Wed, 8 Jun 2011 10:55:51 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090
Lines: 54
Message-ID: <4def391a$0$2441$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 83.25.196.225
X-Trace: 1307523355 unt-rea-b-01.news.neostrada.pl 2441 83.25.196.225:1150
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit