🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #219

Re: Nome form

#219
From: Stevie
Date: Sat, 14 Jul 2007 10:54
27 lines
1823 bytes
"fra" <fpjippo@libero.it> ha scritto nel messaggio 
news:Jhf1i.5380$U01.77075@twister1.libero.it...

> Salve,
> ho realizzato un progetto in visual basic 2005 utilizzando una classe.

Difficile fare altrimenti, in vb.net, considerato il fatto che tutto � una 
classe, a parte casi particolari.

> Volevo sapere se la classe pu� sapere da quale form � stata dichiarata.

Non so se ho capito giusto... tu vuoi che la tua classe sappia qual � il 
form che l'ha istanzata? E' cos�?

Se s�, non mi pare ci sia un modo specifico per farlo.


Puoi per� risolvere facilmente mettendo nella tua classe una variabile 
d'istanza dichiarata come form, dopodich� scrivi un costruttore (o modifichi 
quello che gi� hai) che accetti come parametro il form che istanzia la 
classe.





S. 
Technical Details
Message-ID: <QX1mi.56081$y05.21787@tornado.fastwebnet.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!transit1.news.tiscali.nl!tiscali!newsfeed1.ip.tiscali.net!tornado.fastwebnet.it!53ab2750!not-for-mail
References: <Jhf1i.5380$U01.77075@twister1.libero.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,45f119450437b76d
X-Google-Attributes: gidf94ee,public,usenet
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!transit.news.xs4all.nl!xs4all!transit1.news.tiscali.nl!tiscali!newsfeed1.ip.tiscali.net!tornado.fastwebnet.it!53ab2750!not-for-mail
From: "Stevie" <jstevieNOSPAM@gmail.com>
Newsgroups: free.it.visual-basic
References: <Jhf1i.5380$U01.77075@twister1.libero.it>
Subject: Re: Nome form
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
Message-ID: <QX1mi.56081$y05.21787@tornado.fastwebnet.it>
Date: Sat, 14 Jul 2007 12:54:37 +0200
NNTP-Posting-Host: 29.243.138.34
X-Complaints-To: newsmaster@fastweb.it
X-Trace: tornado.fastwebnet.it 1184410480 29.243.138.34 (Sat, 14 Jul 2007 12:54:40 CEST)
NNTP-Posting-Date: Sat, 14 Jul 2007 12:54:40 CEST