I'm Creating some user controlls with odd shaped regions, but when the user controll is resized in design time I cant get vb to show the shape of the window region when it's moved or resized, Is there a way of doing this.?
Thanks in advance.
Printable View
I'm Creating some user controlls with odd shaped regions, but when the user controll is resized in design time I cant get vb to show the shape of the window region when it's moved or resized, Is there a way of doing this.?
Thanks in advance.
I have once done a startrek-button control that is shaped (if you know ha startrek-button looks like) and it works fine with resizing. But i didn't really get whats the problem. Can you explain a bit more?
Yeah, Sorry.
I want a controll that when you draw it on the form and move it with the mouse or resize it at design time instead of VB showing the bounding rectangle of the form I want the user to see the shape of the controll as they move or resize it, Just so It looks a bit more professional when I distrubute it.
The thing is really simple, but maby it wont work due to something in your version of VB. But first, you must have the code that that redraws the control in the Sub UserControl_Resize and I think you must have done this already to get any results in runtime. It's really that simple. But if it's not working, try to check out if the code inside the UserControl_Resize is running at designtime by placing a "stop" in it. If that won't work, i don't know. And also, a timer should run in designtime (cool but sometimes annoying)
I'm not sure if you get what I'm trying to do.
I'm fine changing the shape of the control, but when you resize you hold the mouse down on one of the resize handles and the window turns into it's bounding rectangle, while you drag the resize handle the rectangle changes size, you only get to see what the control looks like when the mouse is released, I want to change the bounding rectangle into what the shape of the control would be if the mouse was released at that point. I'd also like to see the shape of the control while i'ts being moved and not have to wait until the control is put down again. I don't mind if it's not done the first time, while you're drawing the control but while you're dragging it i'd like the user to see exactly where it's going without having to release the mouse to check if it's in the right place.
I'm really sorry! :( But now i understand the problem.
The problem is that is that really a problem? That can't be done with any other control or have you find something that does that? In my opinion it's good enough that the control is shown and resized in designtime. I think what you are trying to do is really too impossible. But anyway, if anyone finds a solution, I would be grateful and use it with my controls.
I thought as much, I'm still trying, i think I get what's going on and why it does it but finding a way aruond it's not gonna be easy. I'll post something up if I find something.
This is gonna be hard.