|
-
Jun 13th, 2007, 12:58 PM
#1
Thread Starter
Hyperactive Member
Tile Forms
how do i arrange forms neatly along the top in tile view plz
im opening another form with following command etc
Dim Form1 As New Form1
Form1.Show
-
Jun 13th, 2007, 05:09 PM
#2
Re: Tile Forms
You're confusing it. Use other name than Form1.
Dim frm as new form1
frm.show
Anyway, so you want a tile view everytime you create a new form?
-
Jun 13th, 2007, 05:21 PM
#3
Re: Tile Forms
Do you mean like this? Im not quite sure so correct me.
Code:
Private Sub Command1_Click()
Dim frm As New Form1
Static x As Long
Const SPACE = 4800 ' adjust this accordingly
frm.Show
frm.Move x, 0
x = x + SPACE
End Sub
-
Jun 13th, 2007, 05:31 PM
#4
Addicted Member
Re: Tile Forms
then i have it something like this with my current project
Code:
Dim FormName As String
Dim frm As Form
Dim X As Long
Dim Y As Long
Dim sName As String
iNum = iNum + 1
If iNum = 100 Then iNum = 1
sName = frmMsg.Name & Format(iNum, "00")
Set frm = New frmMsg
FormName = sName
X = X + 100
Y = Y + 100
With frm
.Left = .Left + X
.Top = .Top + Y
.Caption = FormName
.Tag = FormName
.show
End wtih
-
Jun 13th, 2007, 05:34 PM
#5
Re: Tile Forms
I will not tile the forms instead your code will do a cascading forms.
-
Jun 13th, 2007, 05:39 PM
#6
Addicted Member
-
Jun 13th, 2007, 06:01 PM
#7
Thread Starter
Hyperactive Member
Re: Tile Forms
zynder thanks your onto the right idea
but when i open too many they pile up off the side of the screen all being on one line
hmmmmm any ideas ?
-
Jun 14th, 2007, 09:04 AM
#8
Re: Tile Forms
Yeah, I just wrote that to get you started. Have you tried using an MDI Form? You can arrange it in tile and cascade by a single line of code.
Code:
MDIForm1.Arrange 1 ' for tile
MDIForm1.Arrange 0 ' for cascade
-
Jun 14th, 2007, 08:28 PM
#9
Thread Starter
Hyperactive Member
Re: Tile Forms
can a media player be inserted ontoa midi 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
|