🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.visual.basic
Article #23

Re: delete and rename form with in visual basic(urgent needed)

#23
From: Maaz
Date: Mon, 02 Dec 2002 20:59
116 lines
5328 bytes
"Maaz" <mabowath52@rogers.com> wrote in message
news:9PHG9.237179$MGm1.43763@news02.bloor.is.net.cable.rogers.com...
> guys thankx for reply.can u please make file in vb as u described below
and
> send me.i am newbie to vb.it will appriciate it
>
> "Sparky" <dopey@yahoo.com> wrote in message
> news:asdlvs$1lt$1@news7.svr.pol.co.uk...
> > Aha!  Now I gettit!
> >
> > Well, I'd suggest making your life a bit easier, using only one form.
> This
> > is how I'd do it:
> >
> > On that form, create a function (you could make it public and/or put it
in
> a
> > module if you like) as follows:
> >
> > ' ----------------------------------------------------
> > function IsTrial() as boolean
> >
> >     if "we're running a trial version" then
> >
> >         msgbox "This functionality is not available in this trial
version.
> > Please upgrade to the full version", vbInformation
> >
> >     else
> >
> >         IsTrial = true
> >
> >     end if
> >
> > end sub
> > ' ----------------------------------------------------
> >
> > Now, when a user tries to use functionality (still on that one form)
that
> > you wish to restrict, then put a call in to this funciton.  If it
returns
> > true, then do what ever the functionality is supposed to do.  If not, do
> > nothing.  Rest assured that this little function will already have let
the
> > user know why nothing else happens.
> >
> > ' ----------------------------------------------------
> > Private Sub Command1_Click()
> >
> >     if not IsTrial then
> >
> >         ' Do the required functionality, safe in the knowledge that if
> it's
> > a trial then the user will be informed as such by the IsTrial function.
> >
> >     end if
> >
> > end sub
> > ' ----------------------------------------------------
> >
> > Another option for commandbuttons and menus would be to disable them in
> > Form_Load if the program is running as a trial version.
> >
> > --
> > Please reply to the group so that everyone benefits.
> >
> > Cheers,
> >
> > Sparky.
> > *********************************************
> >
> >
> > "Maaz" <mabowath52@rogers.com> wrote in message
> > news:zrsG9.193240$oRV.92742@news04.bloor.is.net.cable.rogers.com...
> > > what i want to do i s make shareware program.what i want is that in
one
> > form
> > > it has limited programs and other with full function that i make.so
when
> > > user enter serial # the first form is deleted and second one is
> > renamed.this
> > > is what i want.or if u guys have other solutiong on making my program
> demo
> > > and shareware please let me know.
> > > "Devo F" <thud732@yahoo.com> wrote in message
> > > news:1b85a8c6.0212010951.3a88f594@posting.google.com...
> > > > "preben nielsen" <prel@post.tele.dk> wrote in message
> > > news:<3de9eb26$0$237$edfadb0f@dread16.news.tele.dk>...
> > > > > "Maaz" <mabowath52@rogers.com> skrev i en meddelelse
> > > > > news:bcIF9.181003$YSz1.88659@news01.bloor.is.net.cable.rogers.com.
> > > > > ..
> > > > > > Hello I have create two form in Visual basic.How do i delete the
> > > > >  1st from
> > > > > > when i press on button and rename the 2nd from to first one.i
> > > > >  want program
> > > > > > to automatically delete form and rename other form to form i
> > > > >  deleted when
> > > > > > button is pressed in exe file of the project
> > > > >
> > > > > Why ??????? (and then a few more ??????????????)
> > > > >
> > > > > If it's because you refer to the for by name in many places then
> > > > > you are doing it wrong !
> > > >
> > > >
> > > > Until, and unless, we have a clear picture of what your final
> > > > objective is, it is difficult to come up with a solution.
> > > >
> > > > DF
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <2RPG9.204049$oRV.72996@news04.bloor.is.net.cable.rogers.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news-out.visi.com!hermes.visi.com!newsfeeds-atl2!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news04.bloor.is.net.cable.rogers.com.POSTED!not-for-mail
References: <bcIF9.181003$YSz1.88659@news01.bloor.is.net.cable.rogers.com> <3de9eb26$0$237$edfadb0f@dread16.news.tele.dk> <1b85a8c6.0212010951.3a88f594@posting.google.com> <zrsG9.193240$oRV.92742@news04.bloor.is.net.cable.rogers.com> <asdlvs$1lt$1@news7.svr.pol.co.uk> <9PHG9.237179$MGm1.43763@news02.bloor.is.net.cable.rogers.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f51ba,f8c0f9bd56938de7
X-Google-Attributes: gidf51ba,public
X-Google-Thread: fb992,f8c0f9bd56938de7
X-Google-Attributes: gidfb992,public
X-Google-ArrivalTime: 2002-12-02 13:50:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news-out.visi.com!hermes.visi.com!newsfeeds-atl2!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news04.bloor.is.net.cable.rogers.com.POSTED!not-for-mail
From: "Maaz" <mabowath52@rogers.com>
Newsgroups: comp.lang.visual.basic,dk.edb.programmering.basic.visual-basic
References: <bcIF9.181003$YSz1.88659@news01.bloor.is.net.cable.rogers.com> <3de9eb26$0$237$edfadb0f@dread16.news.tele.dk> <1b85a8c6.0212010951.3a88f594@posting.google.com> <zrsG9.193240$oRV.92742@news04.bloor.is.net.cable.rogers.com> <asdlvs$1lt$1@news7.svr.pol.co.uk> <9PHG9.237179$MGm1.43763@news02.bloor.is.net.cable.rogers.com>
Subject: Re: delete and rename form with in visual basic(urgent needed)
Lines: 118
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <2RPG9.204049$oRV.72996@news04.bloor.is.net.cable.rogers.com>
Date: Mon, 02 Dec 2002 20:59:42 GMT
NNTP-Posting-Host: 24.100.182.50
X-Complaints-To: abuse@rogers.com
X-Trace: news04.bloor.is.net.cable.rogers.com 1038862782 24.100.182.50 (Mon, 02 Dec 2002 15:59:42 EST)
NNTP-Posting-Date: Mon, 02 Dec 2002 15:59:42 EST