Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7548753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:46:42+00:00 2026-05-30T09:46:42+00:00

Title said it all. im just wandering if there something i can use in

  • 0

Title said it all.

im just wandering if there something i can use

in vb6 , a picture box can be used like a container

example. i can put textbox’s.. command buttons inside a picturebox.

thanks for any sudgestions ..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:46:43+00:00Added an answer on May 30, 2026 at 9:46 am

    The closest thing to VB6’s picturebox, in terms of its use as a container, would be the Panel. The Vb6 panel control was not very nice and I always used the picturebox, but the C# panel gives you almost everything VB6’s picturebox did, including background image. The main difference in your case is that the C# panel does not allow drawing on it. In other words, you can put pictures in it, but you can’t draw using Circle, Line, PSet etc.

    Also have a look at your toolbox. Depending on what environment you’re working in, you might see your controls grouped under “Common Controls”, “Containers”, “Components”, etc. Look under “Containers” to see which controls can be used as containers.

    You can also have other controls as containers, for example the picturebox. In the case of the Picturebox, you can make it the parent of your control during run-time. I think “MyControl.Parent = Picturebox1;” should work. But during design time, you cannot drop your control on the picturebox to make it the parent.

    Lastly, you can create a custom control or a user control that acts as a container. As a quick example, I will show how to make a picturebox act as a container that you can drop controls on during design time.

    using System.Windows.Forms;
    using System.ComponentModel;
    using System.ComponentModel.Design;
    
    namespace Whatever
    {
      [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design",
           typeof(IDesigner))] 
      public class MyPicContainer : PictureBox
      {
      }
    }
    

    Here I created a custom control, by creating a class that inherits from an existing control. I then make it behave like a design-time container by setting the appropriate attribute. I also had to add a couple of usings.

    Now you can stick MyPicContainer on your form like any other control. It will behave just like a picturebox, because it is a picturebox, but at the same time it will behave like any other container control.

    But unless you want to draw lines and circles on it during run-time, the control you’re looking for is the Panel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just as the title said. What ways do you use to test your own
Like I said in the topic title, there's some translations missing on PROD (but
Title said it all. Some context: I got a search mechanism - search view,
Well I say what's said in the title again, I can't find a way
Title pretty much describes it, I just need to get all the order numbers
The title probably said it all, I was wondering if one could tell the
as the title said i would like to create a button that says available
As the title said: Is it possible to send an email (using php mail())
    As the title said, I want to match ip address with batch in windows,
As said in the title, I have a scrollview that should be listening for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.