Is there a way to remove objects from a collection without knowing the key? Or, is there a way to find the index of an object in a collection? Specifically, I want to check a property of an object in a collection. If it's false, I want to remove it, but I won't always know the key. Thanks in...
How do you set the background color of a toolbar through API. I figure it's probably the SendMessage or SetWindowLong, but don't know exactly how. Also, in the SendMessage, on of the parameters is wMsg and you pass in various values to do certain things. How do I fond out what these are. In...
Here is the code!
Private Sub UnloadThisForm_Click
Dim lAnswer As Long
lAnswer= MsgBox("Are you sure you want to exit?", _ vbYesNo, "MyProject")
If lAnswer = vbYes Then
Unload Me
End If
End Sub
There it is. Hope this helps.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.