|
-
May 2nd, 2002, 07:18 AM
#1
Thread Starter
New Member
Popup Question
Hello there...
can anyone help me with how to make a popup window?
i mean, like msgbox but with textbox in it - That i'll be able to insert data in it while my program is running.
Thanks
Spofer
-
May 2nd, 2002, 07:19 AM
#2
Fanatic Member
Re: Popup Question
Originally posted by Spofer
Hello there...
can anyone help me with how to make a popup window?
i mean, like msgbox but with textbox in it - That i'll be able to insert data in it while my program is running.
Thanks
Spofer
Use InputBox
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
May 2nd, 2002, 07:24 AM
#3
Thread Starter
New Member
Thanks!!!
now how do i use the input? and is there a way to make the input box smaller?
Thank You
Spofer
-
May 2nd, 2002, 07:24 AM
#4
Another alternative would be to create your own pop up using a form.
-
May 2nd, 2002, 07:28 AM
#5
Thanks!!!
now how do i use the input? and is there a way to make the input box smaller?
Thank You
Spofer
declare a string variable and fill it up with the inputbox
VB Code:
Dim s as String
s = InputBox("Insert a text to popup", "Popup title", "default value")
the string holds the input which you can work with
-
May 2nd, 2002, 07:44 AM
#6
Thread Starter
New Member
Thanks!!! It works great 
Spofer
-
Jul 8th, 2002, 07:34 AM
#7
Originally posted by Hack
Another alternative would be to create your own pop up using a form.
hi
can u tell me how to create my own pop using form and how to creat a pop up or form in runtime? can u post the code please
-
Jul 8th, 2002, 07:45 AM
#8
Fanatic Member
-
Jul 8th, 2002, 07:57 AM
#9
Frenzied Member
Put this into a module
VB Code:
Public Sub PopupForm(Pfrm As Form, Cfrm As Form)
Dim f As Form
Set f = Cfrm
f.Show
Pfrm.Enabled = False
Do Until f.Visible = False
DoEvents
Loop
Pfrm.Enabled = True
End Sub
Heres the use:
VB Code:
PopupForm frmParent, frmChild
When frmChild is closed or hidden, it ends the function.
-
Jul 8th, 2002, 08:14 AM
#10
macai, the following does the same in one line of code:
frmChild.Show vbModal, frmParent
-
Jul 8th, 2002, 08:27 AM
#11
Frenzied Member
Originally posted by Frans C
macai, the following does the same in one line of code:
frmChild.Show vbModal, frmParent
Even though i like VB because of it's quickness, i like to be the
most precise and the least dependant on Microsoft's prewritten
code. And it was easy writing that in VB, so nothing harmed.
-
Jul 8th, 2002, 09:25 AM
#12
What is wrong with using VB code if you are using VB?
BTW, your code does not conform to the standards for window ownership. You open a form, and disable the form that should be the owner instead. If you run this code on a terminal server, you risk changing the ZOrder of your forms because no ownership is specified. The form that should be modal could be displayed beneath the disabled form, and couldnt be reached by the user.
-
Jul 8th, 2002, 02:35 PM
#13
Frenzied Member
OK you got me, but what i meant by independance is i'd rather
write a quickie sub routine instead of have VB do it for me.
-
Jul 8th, 2002, 02:40 PM
#14
Originally posted by faisalkm
create a form as you would usually do it in vb and show it only when you want. or you only need a runtime form?
i only need a run time form
-
Jul 8th, 2002, 02:40 PM
#15
Originally posted by faisalkm
create a form as you would usually do it in vb and show it only when you want. or you only need a runtime form?
i only need a run time form
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|