i want to group some controls using panel control, the problem is i don't know where is the Panel Control? i can't find it on the toolbar
i use Visual basic 6.0
if u suggest another control to group these controls tell me!
thanks
Printable View
i want to group some controls using panel control, the problem is i don't know where is the Panel Control? i can't find it on the toolbar
i use Visual basic 6.0
if u suggest another control to group these controls tell me!
thanks
Hi mesh2005, welcome to VBForums!
I think you want the Frame control, which should be on your toolbox already (it looks like a square with XY written at the top).
Just wanted to point out that the Panel Control or SSPanel came out about 10-12 years ago. It can be found by adding the Sheridan 3D Controls component to your project (Threed32.ocx). I think the OCX is still shipped with VB6.Quote:
is i don't know where is the Panel Control?
Although, as already suggested use the Frame Control.
You can also use a PictureBox as a container, if you don't want the frame a Frame control has.
Or if your coming from a .NET environment to VB6 then there is no Panel control in VB6 by default.
Personally, I find the PictureBox to be best for a container. It is more flexible than Frame.
Same hereQuote:
Originally Posted by baja_yu
How so?
Well, most of times, I don't want that border that the frame has... most times I don't any border at all, and sometimes I want a simple border like when setting the picturebox.Appearance = "0 - Flat"Quote:
Originally Posted by dglienna
I very rarely use the frame, in 99% of cases I use the picturebox.
The frame control can also be set to "no border" and appear flat or invisible just as the pb can. Plus, the frame control is a bit lighter then the heavy picturebox control.
I've never used a picturbox as a frame, but have set No Border in the frame many times. Any other characteristics that might make one better than the other? (other than lightweight)
A frame doesnt have a .hDC and an picturebox does. Depending on the situation and what your trying to accomplish, it would relevant.
Well.... (dot dot dot).... :) A frame does have a hWnd... But then again a frame does't respont to any messages sent to that hWnd. Just try to put a control on a Frame, and then try to get it to respond to some XP frameworks... Or just try it to return a hDC by calling GetDC... Okidoki, you get a return value, now use any GDI functions on that DC.. Nothing happens!
The VB Frame control is not a normal control, it's not based on any Windows controls at all... Just try this: During the MouseDown event, call ReleaseCapture, then send the WM_NCLBUTTONDOWN message with HTCAPTION as the hit test message...
Doing this with any other control (with a hWnd) would let you move it around within the container it belongs to (which would be to Form)... But sending this message to a frame will give you the same result as to ask a bum to move to another neighbourhood.
:lol: :D :lol: It's funny because it's true!Quote:
Originally Posted by Joacim Andersson