For continued disscussion on this topic : Pop-Up a New Form?
webdesign11
06-12-2001, 01:01 AM
Hey all,
What is the syntax for popping-up a form in Visual Basic 6.0, while keeping the window that popped up the new form open, although not in focus? Any responses are greatly appreciated.
Steven :D
diades
06-12-2001, 02:34 PM
Hi Steven,
formname.Show
webdesign11
06-12-2001, 04:34 PM
Thanks, man. Now I have a new question. I have a form that I want to create a table in code, but I'm not sure how to code it.
The form asks the user for:
# of rows
# of columns
background color of table
border size in pixels
cellpadding
cellspacing
I already have everything worked out except for the part with the rows and columns textboxes. I want it to create code that complies with the # of rows and # of columns entered by the user. I know it must include a loop, but I'm not sure how to do it? How do I do it?
Chopper
06-13-2001, 11:58 AM
Hey there,
load form2
form2.show
unload form1
If you want to close the form. Its just a little extra to what diades said.
Ok what you would do here is use two for loops, Although I dont know how to print textboxs in VB. Ill show you by printing out a multiplication table.
'top of script
Dim Kount as Integer
Dim KOUNT as Integer
'Inside a call event.
For KOUNT = 1 To 10 step 1
For Kount = 1 to 10 step 1
lee = Kount * KOUNT
lblCaption.caption = lblCaption.caption & lee
Next
lblCaption.caption = lblCaption.caption & chr(13)
Next
That should print out it although it wont be very tidy. Thats how you could do yours. Hope it helps ya.
Baggio
07-04-2001, 08:41 PM
i know nothing has been added to this thread in a while,
if you want to align stings in a table you can use the object.currentX to align text along the horizontal axis or the object.currentY to align along the vertical
so for instance
form1.currentY=500
form1.currentX=1000
form1.print "RajsUtopia is the place to be!"
form1.currentY=500
form1.currentX=5000
form1.print "Thats **** True"
would give something looking like this
RajsUtopia is the Place to be! Thats **** True
This method would be the best bet to get a sort of table effect
ciao
:cool:
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.