|
-
Nov 25th, 2005, 12:09 PM
#1
Thread Starter
New Member
how to group controls using Panel control?
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
-
Nov 25th, 2005, 12:25 PM
#2
Re: how to group controls using Panel control?
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).
-
Nov 25th, 2005, 01:20 PM
#3
Re: how to group controls using Panel control?
is i don't know where is the Panel Control?
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.
Although, as already suggested use the Frame Control.
-
Nov 25th, 2005, 02:00 PM
#4
Re: how to group controls using Panel control?
You can also use a PictureBox as a container, if you don't want the frame a Frame control has.
-
Nov 25th, 2005, 02:02 PM
#5
Re: how to group controls using Panel control?
Or if your coming from a .NET environment to VB6 then there is no Panel control in VB6 by default.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 25th, 2005, 04:51 PM
#6
Re: how to group controls using Panel control?
Personally, I find the PictureBox to be best for a container. It is more flexible than Frame.
-
Nov 25th, 2005, 05:29 PM
#7
Re: how to group controls using Panel control?
 Originally Posted by baja_yu
Personally, I find the PictureBox to be best for a container. It is more flexible than Frame.
Same here
-
Nov 25th, 2005, 05:38 PM
#8
Re: how to group controls using Panel control?
-
Nov 25th, 2005, 06:06 PM
#9
Re: how to group controls using Panel control?
 Originally Posted by dglienna
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"
I very rarely use the frame, in 99% of cases I use the picturebox.
-
Nov 25th, 2005, 06:58 PM
#10
Re: how to group controls using Panel control?
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 25th, 2005, 07:06 PM
#11
Re: how to group controls using Panel 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)
-
Nov 25th, 2005, 07:13 PM
#12
Re: how to group controls using Panel control?
A frame doesnt have a .hDC and an picturebox does. Depending on the situation and what your trying to accomplish, it would relevant.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 25th, 2005, 09:10 PM
#13
Re: how to group controls using Panel control?
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.
-
Nov 26th, 2005, 08:22 AM
#14
Re: how to group controls using Panel control?
 Originally Posted by Joacim Andersson
But sending this message to a frame will give you the same result as to ask a bum to move to another neighbourhood.
It's funny because it's true!
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
|