Transparent image over two controls with different back colors

Transparent image over two controls with different back colors

I am trying to place a transparent image over two adjacent controls that have different background colors.

I am trying to place a transparent image over two adjacent controls that have different background colors.

I want the image to remain transparent, meaning the Image needs to show the backcolor of each control.

The controls are two Panels set to different background colors and the Image (PictureBox or otherwise) is placed between the two panel controls.

Public Class frmMain 
    Private Img1 As Image = Image.FromFile("C:\xxxx.png") 

Private Sub frmMain_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint 
    e.Graphics.DrawImage(Img1, 5, 5) 
End Sub 

End Class


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

How to make a Windows Service from .Net Core 3.0

NET Core 3.0, it's a lot easier to create Windows Services: just a single line of code ... If the application runs on a Windows system, the method ..

Basic Authentication Tutorial With .NET Core 3.0

Basic Authentication Tutorial With .NET Core 3.0.In this tutorial we'll go through a simple example of how to implement **Basic HTTP authentication** in an ASP.NET Core 3.0 API with C#.