Article View: comp.lang.basic.visual.misc
Article #368Re: Two small problems
From: Princess Morgiah
Date: Wed, 08 Sep 1999 00:00
Date: Wed, 08 Sep 1999 00:00
112 lines
5198 bytes
5198 bytes
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01BEF9F9.2995AB00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
First of all , to everyone who replied : thank you ! You have helped me =
a lot ...
Second , to Phillip : the idea in Problem 2 was to have some sort of =
info screen , with a whole bunch of textboxes and labels . I didn't want =
to see a cursor in any of them ... I don't like using the .Locked =
property , because you can still place a cursor inside them , and select =
text . In my opinion , it gives the impression that these textboxes can =
be altered some way or other .
I solves it like this ( read this somewhere else in this NG , not sure =
where - thanks to whoever wrote this ) :
Private Sub txtTextBox_GotFocus()
cmdCommandButton.SetFocus
End Sub
With the cmdCommandButton the close button on my form .
Princess Morgiah
Phillip Ward wrote in message <37D4E190.747A36E5@tesco.net>...
Problem 1 :=20
Check out the QueryUnload Event on the Form.
Problem 2 :=20
Not too sure what you're after here.=20
If you want to use TextBoxes, you're going to a get a cursor, =
like it or not, simply because that what Windows TextBoxes do. You =
could try Disabling the Frames that the TextBoxes appear in - I think =
that might do the trick. Out of curiousity, what's wrong with the =
.Locked property? It would allow you the flexibility to 'unlock' the =
fields for some Users and not for others.
HTH,=20
Phill W.=20
=20
=20
------=_NextPart_000_0010_01BEF9F9.2995AB00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!doctype html public "-//w3c//dtd html 4.0 =
transitional//en">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3D"" size=3D3>First of all , to everyone =
who replied :=20
thank you ! You have helped me a lot ...</FONT></DIV>
<DIV><FONT color=3D#000000 face=3D"" size=3D3></FONT> </DIV>
<DIV>Second , to Phillip : the idea in Problem 2 was to have some sort =
of info=20
screen , with a whole bunch of textboxes and labels . I didn't want to =
see a=20
cursor in any of them ... I don't like using the .Locked property , =
because you=20
can still place a cursor inside them , and select text . In my opinion , =
it=20
gives the impression that these textboxes can be altered some way or =
other=20
.</DIV>
<DIV> </DIV>
<DIV>I solves it like this ( read this somewhere else in this NG , not =
sure=20
where - thanks to whoever wrote this ) :</DIV>
<DIV> </DIV>
<DIV>Private Sub txtTextBox_GotFocus()<BR> =20
cmdCommandButton.SetFocus<BR>End Sub</DIV>
<DIV> </DIV>
<DIV>With the cmdCommandButton the close button on my form .</DIV>
<DIV> </DIV>
<DIV>Princess Morgiah</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV>Phillip Ward<PHILLIP.WARD@TESCO.NET> wrote in message <<A=20
=
href=3D"mailto:37D4E190.747A36E5@tesco.net">37D4E190.747A36E5@tesco.net</=
A>>...</DIV>Problem=20
1 :=20
<BLOCKQUOTE>Check out the <B><FONT size=3D-1>QueryUnload</FONT></B> =
Event=20
on the Form.</BLOCKQUOTE>Problem 2 :=20
<BLOCKQUOTE>Not too sure what you're after here. <BR>If you want to =
use=20
TextBoxes, you're <I>going </I>to a get a cursor, like it or =
not, simply=20
because that what Windows TextBoxes do. You could try =
Disabling=20
the Frames that the TextBoxes appear in - I think that might do =
the=20
trick. Out of curiousity, what's wrong with the <B><FONT=20
size=3D-1>.Locked</FONT></B> property? It would allow you =
the=20
flexibility to 'unlock' the fields for some Users and not for=20
others.</BLOCKQUOTE>HTH, <BR> Phill W. =
<BR> =20
<BR> </BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0010_01BEF9F9.2995AB00--
Technical Details
Message-ID:
<7r5v48$6e3$1@news.planetinternet.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7r1dhc$ht4$1@news.planetinternet.be> <37D4E190.747A36E5@tesco.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,8dea51da1743ed75 X-Google-Attributes: gid110e3b,public X-Google-Thread: 108062,8dea51da1743ed75 X-Google-Attributes: gid108062,public From: "Princess Morgiah" <princess_morgiah@yahoo.com> Subject: Re: Two small problems Date: 1999/09/08 Message-ID: <7r5v48$6e3$1@news.planetinternet.be> X-Deja-AN: 522568212 References: <7r1dhc$ht4$1@news.planetinternet.be> <37D4E190.747A36E5@tesco.net> Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01BEF9F9.2995AB00" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@planetinternet.be X-Trace: news.planetinternet.be 936804296 6595 194.119.237.136 (8 Sep 1999 15:24:56 GMT) Organization: Planet Internet NV Mime-Version: 1.0 NNTP-Posting-Date: 8 Sep 1999 15:24:56 GMT Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual