OK, the following code will take a BMP file and draw it to a main form dialog window. HOW do I make it draw to the dekstop background on my screen instead of onto the form dialog? Take out the "Inherits Form"?
By the way, I DONT want to change the wallpaper, just draw over the current one. Is this possible? Kinda like an overlay.
VB Code:
Imports System Imports System.Windows.Forms Imports System.Drawing Public Module modmain Sub Main() 'The KPD-Team 2001 'URL: [url]http://www.allapi.net/dotnet/[/url] 'E-Mail: [email][email protected][/email] Dim theForm as MainForm = new MainForm() theForm.ShowDialog() End Sub End Module Public Class MainForm Inherits Form Dim BackGround as new Bitmap("C:\Windows\Bubbles.bmp") Protected Overrides Sub OnPaint(e as PaintEventArgs) e.Graphics.DrawImage(BackGround, new Point(0, 0)) End Sub End Class
-- Ethan --
www.ethan-c-allen.com




Reply With Quote