🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #104537

Re: Widht=100% dla dynamicznie tworzonego TextBox

#104537
From: Wiktor Zychla
Date: Thu, 18 Mar 2010 08:02
15 lines
1899 bytes
> Dzięki, działa.
> Wychowałem się na Delphi. Powyższa konstrukcja jest dla mnie 
> zaskoczeniem... Visual Basic wciąż mnie zadziwia :-)

Width jest typu Unit.

w C# przypisanie textbox.Width = 100% nie zadziałałoby z powodu niezgodności 
typów i od razu widziałbyś że coś jest nie tak.
VB niepotrzebnie próbuje robić jakieś konwersje typów automatycznie i nie 
ostrzega Cię, co jak widać kończy się niedobrze.

sugeruję C# jako język, jest silniej otypowany i ma bardziej zwięzłą 
składnię.

Wiktor Zychla 
Technical Details
Message-ID: <hnsnd7$7b0$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <hno4dj$8gc$1@nemesis.news.neostrada.pl> <hnqucl$61s$1@nemesis.news.neostrada.pl> <hnsmo1$2u4$1@atlantis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!209.197.12.242.MISMATCH!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: "Wiktor Zychla" <wzychla@nospam.com>
Newsgroups: pl.comp.lang.vbasic
Subject: Re: Widht=100% dla dynamicznie tworzonego TextBox
Date: Thu, 18 Mar 2010 09:02:42 +0100
Organization: TP - http://www.tp.pl/
Lines: 16
Message-ID: <hnsnd7$7b0$1@nemesis.news.neostrada.pl>
References: <hno4dj$8gc$1@nemesis.news.neostrada.pl> <hnqucl$61s$1@nemesis.news.neostrada.pl> <hnsmo1$2u4$1@atlantis.news.neostrada.pl>
NNTP-Posting-Host: 195.116.95.201
Mime-Version: 1.0
X-Trace: nemesis.news.neostrada.pl 1268900071 7520 195.116.95.201 (18 Mar 2010 08:14:31 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Thu, 18 Mar 2010 08:14:31 +0000 (UTC)
In-Reply-To: <hnsmo1$2u4$1@atlantis.news.neostrada.pl>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MIMEOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit