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

  • Home
  • SEARCH
  • 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
  • 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. 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

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Maybe. It depends entirely on your definition of 'atomic'. In… May 11, 2026 at 11:03 am
  • added an answer UrlPathEncode only encodes the 'Path' portion of a URL-like formed… May 11, 2026 at 11:03 am
  • added an answer Note how my singlePlayerViewController is not inserting subviews, but is… May 11, 2026 at 11:03 am

Related Questions

I am working on a Windows Forms application in VS 2008, and I want
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display
I am working on a windows form application. How do i use the find
I am working on a Windows Forms app for quite some time now, and
I am working on a windows service that polls for a connection to a
I am working on a Windows utility program which communicates with some custom hardware
I am working on a winforms html editor with multiple editor windows as each
I am working with a Visual Studio 2008 (C#) project on Windows XP Pro.
I am working on a web application using Python (Django) and would like to
I am working on a Office Word add-in for Word 2003. When I reopen

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.