only me
.
i've written a few controls, but i've never had to write one that just provides functionality (invisible at runtime, like the timer or winsock are...). anyway, i'm already having probs
.
first of all i don't want the control to be resized at design time, but i can't find how to remove the width and height properties. obviously i could just stick some code into the resize event to reset the values but thats messy! try resizing a timer control and you'll see what i'm after
.
and secondly i'm having a little trouble with a property, it works fine, but when i change it at design time, then run the form its sat on, its automatically reset! this is a boolean property, but it handles the forms windowpos through api, which i thinks where the problem is as at design time its not really a form that can recieve api events (i wouldn't have thought). heres the events for this property...
Public Property Get TopMostWindow() As Boolean
TopMostWindow = is_top
End Property
Public Property Let TopMostWindow(ByVal TopMost As Boolean)
is_top = TopMost
If is_top = True Then
SetWindowPos UserControl.ContainerHwnd, -1, 0, 0, 0, 0, &H10 Or &H40 Or &H2 Or &H1
Else
SetWindowPos UserControl.ContainerHwnd, -2, 0, 0, 0, 0, &H10 Or &H40 Or &H2 Or &H1
End If
UserControl.PropertyChanged "TopMostWindow"
End Property
...works fine at runtime, but just resets to false if i change it at design time and try running.
ty.
[EDIT]
ok ignore the resize problem, setting it to windowless removes the width/height properties and the resize event does the rest
.
still baffled by the resetting variable though
...