Article View: alt.pl.comp.lang.csharp
Article #21590Re: pytanie proste [zielony]
From: qaz
Date: Thu, 17 Jun 2010 09:50
Date: Thu, 17 Jun 2010 09:50
36 lines
2136 bytes
2136 bytes
Użytkownik "Łukasz 'Maly' Ostrowski" <maly@USUNnemo.pl> napisał w wiadomości
news:b7thjpq6k4lm.yn4r0jw46kr3.dlg@40tude.net...
> On Thu, 17 Jun 2010 11:36:48 +0200, qaz wrote:
>
>> mam:
>>
>> ...
>> button1_Click( object sender, EventArgs e)
>> {
>> ... ;
>> ... ;
>> MessageBox.Show( conn.State.ToString(), "Stan połączenia" );
>> }
>>
>>
>> button2_Click( object sender, EventArgs e)
>> {
>> ... ;
>> ... ;
>> // i tu chciałbym, by wykonał się cały kod button1_Click()
>> // jak to wywołać i co podać jako parametry wywołania metody
>> button1_Click( sender, e)
>> }
>
> Próbowałes wklepać to co wklepałeś ,,na ślepo"? Bo to zadziała
> dokładnie tak jakbyś chciał ;-).
>
> --
> Pozdrawiam,
> Łukasz 'Maly' Ostrowski. http://l3v.pl/
this.button1_Click();
// reakcja: No overload for method ... takes 0 arguments
qaz
Technical Details
Message-ID:
<4c19efed$0$17095$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!plix.pl!newsfeed1.plix.pl!goblin1!goblin.stu.neva.ru!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailReferences:
<4c19ecb1$0$19179$65785112@news.neostrada.pl> <b7thjpq6k4lm.yn4r0jw46kr3.dlg@40tude.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!plix.pl!newsfeed1.plix.pl!goblin1!goblin.stu.neva.ru!postnews.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.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: <4c19ecb1$0$19179$65785112@news.neostrada.pl> <b7thjpq6k4lm.yn4r0jw46kr3.dlg@40tude.net> Subject: Re: pytanie proste [zielony] Date: Thu, 17 Jun 2010 11:50:35 +0200 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.5931 X-RFC2646: Format=Flowed; Original Lines: 38 Message-ID: <4c19efed$0$17095$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 83.11.2.95 X-Trace: 1276768238 unt-rea-b-01.news.neostrada.pl 17095 83.11.2.95:1574 X-Complaints-To: abuse@news.neostrada.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit