the.kaushik
Member
- Joined
- Mar 4, 2007
- Messages
- 16
- Programming Experience
- Beginner
friends i am using the following code to make my form transperent and using a png semi transperent image as background
this function as u can see overrides the default background
i want to execute the same with a button click.. is it possible.. so that when i click a button this code executed alse it wont..
and one thing more.. in this way when i make my form transperent as soon as i move my form the transperency is lost.. is there any way to avoid so..
VB.NET:
Protected Overrides Sub OnPaintBackground(ByVal pevent As System.Windows.Forms.PaintEventArgs)
Dim gfx As Drawing.Graphics = pevent.Graphicspevent
gfx.DrawImage(Me.BackgroundImage, New Drawing.Rectangle(0, 0, Me.Width, Me.Height))
End Sub
i want to execute the same with a button click.. is it possible.. so that when i click a button this code executed alse it wont..
and one thing more.. in this way when i make my form transperent as soon as i move my form the transperency is lost.. is there any way to avoid so..
Last edited: