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 106825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:39:28+00:00 2026-05-11T01:39:28+00:00

I am working on a Windows Forms application in VS 2008, and I want

  • 0

I am working on a Windows Forms application in VS 2008, and I want to display one image over the top of another, with the top image being a gif or something with transparent parts.

Basically I have a big image and I want to put a little image on top if it, so that they kinda appear as one image to the user.

I’ve been trying to use a picturebox, but this doesn’t seem to have worked, any suggestions?

  • 1 1 Answer
  • 2 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. 2026-05-11T01:39:28+00:00Added an answer on May 11, 2026 at 1:39 am

    I was in a similar situation a couple of days ago. You can create a transparent control to host your image.

    using System; using System.Windows.Forms; using System.Drawing;  public class TransparentControl : Control {     private readonly Timer refresher;     private Image _image;      public TransparentControl()     {         SetStyle(ControlStyles.SupportsTransparentBackColor, true);         BackColor = Color.Transparent;         refresher = new Timer();         refresher.Tick += TimerOnTick;         refresher.Interval = 50;         refresher.Enabled = true;         refresher.Start();     }      protected override CreateParams CreateParams     {         get         {             CreateParams cp = base.CreateParams;             cp.ExStyle |= 0x20;             return cp;         }     }      protected override void OnMove(EventArgs e)     {         RecreateHandle();     }       protected override void OnPaint(PaintEventArgs e)     {         if (_image != null)         {             e.Graphics.DrawImage(_image, (Width / 2) - (_image.Width / 2), (Height / 2) - (_image.Height / 2));         }     }      protected override void OnPaintBackground(PaintEventArgs e)     {        //Do not paint background     }      //Hack     public void Redraw()     {         RecreateHandle();     }      private void TimerOnTick(object source, EventArgs e)     {         RecreateHandle();         refresher.Stop();     }      public Image Image     {         get         {             return _image;         }         set         {             _image = value;             RecreateHandle();         }     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Windows Forms application in C#/.Net. I want to use
I am working in C# Windows Forms Application I want to make shadow of
I'll start working on windows forms application that hosts ESRI maps into it So,
I'm working on a Windows Forms application, which of course involves databinding to objects.
I am working on creating a thread safe control for my windows forms application.
I am working on a wpf application. Here I need to use System.Windows.Forms.FolderBrowserDialog in
I'm working on my project: [Beer Pong Management System][1], a Windows Forms application. I
I am working in a Windows Forms application, it needs a lot (and I
I'm working on a windows forms application (C#) where a user is entering data
I am working with a Windows Forms application in C# and Visual Studio 2005.

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.