|
-
Oct 29th, 2000, 01:33 PM
#1
Thread Starter
The picture isn't missing
How do I make a form stick to the right side of another form? and how do I delete and item selected in a listobx
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Oct 29th, 2000, 01:49 PM
#2
Hyperactive Member
RemoveItem
How do I make a form stick to the right side of another form
What exactly do you mean?
and how do I delete and item selected in a listobx
Try this:
Code:
Private Sub Form_Load()
For i = 0 To 10'just an example
List1.AddItem i
Next i
End Sub
Private Sub Command1_Click()
List1.RemoveItem List1.ListIndex :)
End Sub
WP
-
Oct 29th, 2000, 02:01 PM
#3
Hyperactive Member
If you have multiselect on
Code:
Dim I As Integer
I = 0
While I < List1.ListCount
If List1.Selected(I) = True Then
List1.RemoveItem I
I = I - 1
End If
I = I + 1
Wend
-
Oct 29th, 2000, 02:59 PM
#4
Thread Starter
The picture isn't missing
i mean by like 2 forms acting like winamp. you can move the main form and the other form will move too
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Oct 29th, 2000, 03:21 PM
#5
Member
check out this code
Private Type Attribots_To_Form2
X As Single
Y As Single
End Type
Private Moving_Thing As Attribots_To_Form2
Private ok As Boolean
Private Sub Form_Load()
Load Form2
Form2.Show
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ok = True
Moving_Thing.X = X
Moving_Thing.Y = Y
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If ok = True Then
With Form1
.Move .Left + X - Moving_Thing.X, .Top + Y - Moving_Thing.Y, .Width, .Height
End With
'moving the second form to the coordinates of the left+width of the first form
With Form2
.Move Form1.Left + Form1.Width, Form1.Top, .Width, .Height
End With
End If
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
ok = False
Moving_Thing.X = X
Moving_Thing.Y = Y
End Sub
'Main Thing :
'Try To Move The Main Form : Form1
-
Oct 29th, 2000, 04:25 PM
#6
Thread Starter
The picture isn't missing
that works... sorta.... i just sorta tweaked it and now it works better. thanx!
Remember, if someone's post was not helpful, you can always rate their post negatively  .
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
|