|
| Author |
Message |
Christian
Joined: 27 Feb 2008 Posts: 1
|
Posted: Tue Feb 26, 2008 11:51 pm Post subject: Input Box |
|
|
Hello,
I'm a newbie to VB6
How do I put an Input box on a form?
Thanks in advance
Archived from group: microsoft>public>vb>general>discussion |
|
| Back to top |
|
 |
vhino
Joined: 27 Feb 2008 Posts: 5
|
Posted: Tue Feb 26, 2008 9:07 pm Post subject: RE: Input Box |
|
|
"Christian" wrote:
> Hello,
>
> I'm a newbie to VB6
>
> How do I put an Input box on a form?
>
> Thanks in advance
>
>
>
just click input box icon from vb toolbox then drag into the form or double
click the icon. |
|
| Back to top |
|
 |
MP
Joined: 04 Oct 2007 Posts: 203
|
Posted: Tue Feb 26, 2008 11:06 pm Post subject: Re: Input Box |
|
|
assuming you mean a Textbox ...
ensure you see the "toolbox" dialog
menu View|toolbox
drag the textbox icon over onto your form
size and position to taste
hth
mark
"Christian" wrote in message @TK2MSFTNGP04.phx.gbl...
> Hello,
>
> I'm a newbie to VB6
>
> How do I put an Input box on a form?
>
> Thanks in advance
> |
|
| Back to top |
|
 |
vhino
Joined: 27 Feb 2008 Posts: 5
|
Posted: Tue Feb 26, 2008 9:36 pm Post subject: Re: Input Box |
|
|
"MP" wrote:
>
> assuming you mean a Textbox ...
> ensure you see the "toolbox" dialog
> menu View|toolbox
> drag the textbox icon over onto your form
> size and position to taste
>
> hth
> mark
>
>
> "Christian" wrote in message
> @TK2MSFTNGP04.phx.gbl...
> > Hello,
> >
> > I'm a newbie to VB6
> >
> > How do I put an Input box on a form?
> >
> > Thanks in advance
> >
>
> yes a textbox...
> |
|
| Back to top |
|
 |
MikeD
Joined: 04 Oct 2007 Posts: 3348
|
Posted: Wed Feb 27, 2008 12:41 am Post subject: Re: Input Box |
|
|
"vhino" wrote in message @microsoft.com...
>
>
> "Christian" wrote:
>
>> Hello,
>>
>> I'm a newbie to VB6
>>
>> How do I put an Input box on a form?
>>
>> Thanks in advance
>>
>>
>>
> just click input box icon from vb toolbox
No such thing in VB's Toolbox. Don't make things worse for Christian by
giving bad information.
--
Mike
Microsoft MVP Visual Basic |
|
| Back to top |
|
 |
vhino
Joined: 27 Feb 2008 Posts: 5
|
Posted: Tue Feb 26, 2008 9:51 pm Post subject: Re: Input Box |
|
|
i think your question is Input dialog box? I think you can type it from the
code! apologize... |
|
| Back to top |
|
 |
vhino
Joined: 27 Feb 2008 Posts: 5
|
Posted: Tue Feb 26, 2008 10:03 pm Post subject: Re: Input Box |
|
|
"vhino" wrote:
> i think your question is Input dialog box? I think you can type it from the
> code! apologize...
>
here is the sample code! just copy and paste the code and run.
Private Sub Form_Load()
Dim Message, Title, Default, MyValue
Message = "Enter a value between 1 and 3" ' Set prompt.
Title = "InputBox Demo" ' Set title.
Default = "1" ' Set default.
' Display message, title, and default value.
MyValue = InputBox(Message, Title, Default)
' Use Helpfile and context. The Help button is added automatically.
MyValue = InputBox(Message, Title, , , , "DEMO.HLP", 10)
' Display dialog box at position 100, 100.
MyValue = InputBox(Message, Title, Default, 100, 100)
End Sub
Hope that can help you! |
|
| Back to top |
|
 |
Twayne
Joined: 27 Feb 2008 Posts: 2
|
Posted: Wed Feb 27, 2008 6:10 am Post subject: Re: Input Box |
|
|
> Hello,
>
> I'm a newbie to VB6
>
> How do I put an Input box on a form?
>
> Thanks in advance
I think you might need to be a little more specific as to what you mean
and how it's supposed to be used if the responses so far haven't
answered your question. An "input box" could be a few differen things,
and then there is the case where you put up a dialog of sorts, asking
the user to type information into the box just presented, or it could be
a TextBox ... etc..
Don't be shy with words, but do be as specific/concise with your
question as you can. And lurk a LOT in this group; you'll learn more
than you ever imagined you could about VB6 .
--
Regards,
Twayne
Open Office isn't just for wimps anymore;
OOo is a GREAT MS Office replacement
www.openoffice.org |
|
| Back to top |
|
 |
MikeD
Joined: 04 Oct 2007 Posts: 3348
|
Posted: Wed Feb 27, 2008 1:20 am Post subject: Re: Input Box |
|
|
"vhino" wrote in message @microsoft.com...
>
>
> "vhino" wrote:
>
>> i think your question is Input dialog box? I think you can type it from
>> the
>> code! apologize...
>>
> here is the sample code! just copy and paste the code and run.
>
> Private Sub Form_Load()
>
> Dim Message, Title, Default, MyValue
> Message = "Enter a value between 1 and 3" ' Set prompt.
> Title = "InputBox Demo" ' Set title.
> Default = "1" ' Set default.
> ' Display message, title, and default value.
> MyValue = InputBox(Message, Title, Default)
>
> ' Use Helpfile and context. The Help button is added automatically.
> MyValue = InputBox(Message, Title, , , , "DEMO.HLP", 10)
>
> ' Display dialog box at position 100, 100.
> MyValue = InputBox(Message, Title, Default, 100, 100)
>
> End Sub
>
> Hope that can help you!
>
InputBox = evil
Sorry to keep ragging on you. I know you're just trying to help. But
InputBox is still bad advice.
--
Mike
Microsoft MVP Visual Basic |
|
| Back to top |
|
 |
vhino
Joined: 27 Feb 2008 Posts: 5
|
Posted: Tue Feb 26, 2008 11:08 pm Post subject: Re: Input Box |
|
|
its ok! hope you can correct me for my mistaken and urgently reply for
christian help! i know me and christian were all new to vb6, i'm waiting for
an hour christian post, but nobody can reply. i tried help chrsitian a
little, but did not. Hoping that someday both we can be a programmer too! |
|
| Back to top |
|
 |
Ken Halter
Joined: 04 Oct 2007 Posts: 4150
|
Posted: Wed Feb 27, 2008 1:18 pm Post subject: Re: Input Box |
|
|
"vhino" wrote in message @microsoft.com...
> its ok! hope you can correct me for my mistaken and urgently reply for
> christian help! i know me and christian were all new to vb6, i'm waiting
> for
> an hour christian post, but nobody can reply. i tried help chrsitian a
> little, but did not. Hoping that someday both we can be a programmer
> too!
Gotta be patient around here An hour isn't long to wait, at all. This
isn't a chat forum.... and, everyone's problems are urgent. That's why these
groups exist.... but, even people paying to use these groups have to wait...
iirc, MS "guarantees" an answer within 3 days.
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm |
|
| Back to top |
|
 |
Dave O.
Joined: 04 Oct 2007 Posts: 580
|
Posted: Wed Feb 27, 2008 9:38 pm Post subject: Re: Input Box |
|
|
"Ken Halter" wrote in message @TK2MSFTNGP02.phx.gbl...
> even people paying to use these groups have to wait... iirc, MS
> "guarantees" an answer within 3 days.
People pay for this!?
Where's my cut?
Dave O. |
|
| Back to top |
|
 |
MikeD
Joined: 04 Oct 2007 Posts: 3348
|
Posted: Wed Feb 27, 2008 8:44 pm Post subject: Re: Input Box |
|
|
"Dave O." wrote in message @TK2MSFTNGP03.phx.gbl...
>
> "Ken Halter" wrote in message
> @TK2MSFTNGP02.phx.gbl...
>
>> even people paying to use these groups have to wait... iirc, MS
>> "guarantees" an answer within 3 days.
>
> People pay for this!?
>
> Where's my cut?
He means (I presume) the private newsgroups.
--
Mike
Microsoft MVP Visual Basic |
|
| Back to top |
|
 |
Karl E. Peterson
Joined: 04 Oct 2007 Posts: 4836
|
Posted: Wed Feb 27, 2008 7:34 pm Post subject: Re: Input Box |
|
|
MikeD wrote:
> "Dave O." wrote in message
> @TK2MSFTNGP03.phx.gbl...
>>
>> "Ken Halter" wrote in message
>> @TK2MSFTNGP02.phx.gbl...
>>
>>> even people paying to use these groups have to wait... iirc, MS
>>> "guarantees" an answer within 3 days.
>>
>> People pay for this!?
>>
>> Where's my cut?
>
> He means (I presume) the private newsgroups.
Au contraire. MSDN subscribers who register (and post with) a phoney email address
are indeed promised a MSFT response here.
--
..NET: It's About Trust!
http://vfred.mvps.org |
|
| Back to top |
|
 |
Ken Halter
Joined: 04 Oct 2007 Posts: 4150
|
Posted: Wed Feb 27, 2008 7:49 pm Post subject: Re: Input Box |
|
|
"MikeD" wrote in message @TK2MSFTNGP03.phx.gbl...
>
>>> even people paying to use these groups have to wait... iirc, MS
>>> "guarantees" an answer within 3 days.
>>
>> People pay for this!?
>>
>> Where's my cut?
>
> He means (I presume) the private newsgroups.
>
The "MSDN Managed Newsgroups"... this is one of them... and MSDN subscribers
pay dearly. Not directly, but since it's included in the subscription price,
it has to be included in as part of the cost.
http://msdn2.microsoft.com/en-us/subscriptions/aa974230.aspx#VB
Here are the others in the "VB world"
microsoft.public.vb.addins
microsoft.public.vb.bugs
microsoft.public.vb.com
microsoft.public.vb.controls
microsoft.public.vb.controls.creation
microsoft.public.vb.controls.databound
microsoft.public.vb.controls.internet
microsoft.public.vb.database
microsoft.public.vb.database.dao
microsoft.public.vb.database.odbc
microsoft.public.vb.dataenvreport
microsoft.public.vb.deployment
microsoft.public.vb.enterprise
microsoft.public.vb.general.discussion
microsoft.public.vb.installation
microsoft.public.vb.ole.automation
microsoft.public.vb.syntax
microsoft.public.vb.visual_modeler
microsoft.public.vb.winapi
microsoft.public.vb.winapi.graphics
microsoft.public.vb.winapi.networks
--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
|
|
| Back to top |
|
 |
|