Click here to Skip to main content
16,004,529 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSemi Transparent Controls Pin
errorfunktion4-Sep-07 1:37
errorfunktion4-Sep-07 1:37 
AnswerRe: Semi Transparent Controls Pin
Dave Kreskowiak4-Sep-07 2:17
mveDave Kreskowiak4-Sep-07 2:17 
GeneralRe: Semi Transparent Controls Pin
errorfunktion4-Sep-07 3:21
errorfunktion4-Sep-07 3:21 
GeneralRe: Semi Transparent Controls Pin
Tom Deketelaere4-Sep-07 3:45
professionalTom Deketelaere4-Sep-07 3:45 
GeneralRe: Semi Transparent Controls Pin
errorfunktion4-Sep-07 3:57
errorfunktion4-Sep-07 3:57 
GeneralRe: Semi Transparent Controls Pin
Dave Kreskowiak4-Sep-07 4:29
mveDave Kreskowiak4-Sep-07 4:29 
GeneralRe: Semi Transparent Controls Pin
errorfunktion4-Sep-07 13:23
errorfunktion4-Sep-07 13:23 
GeneralRe: Semi Transparent Controls Pin
Dave Kreskowiak4-Sep-07 15:46
mveDave Kreskowiak4-Sep-07 15:46 
errorfunktion wrote:
Why the sarcasm Dave? After all you agree with me.


That's not how it sounded to me...


errorfunktion wrote:
I've created a derived button class called MyButton. I also have a regular old button, I've written this code in it's event handler:


Which event??


errorfunktion wrote:
Dim img as New Bitmap(TransparentControl.Width,TransparentControl.Height)
Dim GraphicsObject as Graphics=Graphics.FromImage(img)
'I now use a translation transform to account for the diffrence in position
'of the transparent control and the MyButton object:
GraphicsObject.TranslateTransform( _
MyButton1.Location.X-TransparentControl.Location.X, _
MyButton1.Location.Y-TransparentControl.Location.Y)

'I now call the derived Button's OnPaint Event using the Graphics object I
Just created.

MyButton1.OnPaint(New PaintEventArgs( _
GraphicsObject,TransparentControl.DisplayRectangle))


You're going to have to explain this a bit better. Where is this code?? Does your button class derive from Button, or from UserControl??


errorfunktion wrote:
'And Finally I set the Transparent control background image to this image.

TransparentControl.BackgroundImage=img


What TransparentControl? Where did this come from??


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralSemi Transparent Controls, Works! Pin
errorfunktion5-Sep-07 0:28
errorfunktion5-Sep-07 0:28 
GeneralRe: Semi Transparent Controls, Works! Pin
Dave Kreskowiak5-Sep-07 2:09
mveDave Kreskowiak5-Sep-07 2:09 
QuestionWeb Service timeout Pin
Diego F.4-Sep-07 1:33
Diego F.4-Sep-07 1:33 
AnswerRe: Web Service timeout Pin
Kschuler4-Sep-07 4:10
Kschuler4-Sep-07 4:10 
QuestionInstallation of application Pin
Roes1234-Sep-07 0:14
Roes1234-Sep-07 0:14 
AnswerRe: Installation of application Pin
ncjlee4-Sep-07 3:31
ncjlee4-Sep-07 3:31 
GeneralRe: Installation of application Pin
Roes1234-Sep-07 3:41
Roes1234-Sep-07 3:41 
QuestionHowto dynamic call of a method Pin
Stephan Pilz3-Sep-07 23:49
Stephan Pilz3-Sep-07 23:49 
AnswerRe: Howto dynamic call of a method Pin
Guffa3-Sep-07 23:54
Guffa3-Sep-07 23:54 
GeneralRe: Howto dynamic call of a method Pin
Stephan Pilz3-Sep-07 23:57
Stephan Pilz3-Sep-07 23:57 
AnswerRe: Howto dynamic call of a method Pin
Salman Sheikh3-Sep-07 23:58
Salman Sheikh3-Sep-07 23:58 
GeneralRe: Howto dynamic call of a method Pin
Stephan Pilz4-Sep-07 0:03
Stephan Pilz4-Sep-07 0:03 
AnswerRe: Howto dynamic call of a method Pin
Pascal Ganaye4-Sep-07 6:03
Pascal Ganaye4-Sep-07 6:03 
QuestionGet blank CD/DVD disk space Pin
helelark1233-Sep-07 21:37
helelark1233-Sep-07 21:37 
AnswerRe: Get blank CD/DVD disk space Pin
Dave Kreskowiak4-Sep-07 5:32
mveDave Kreskowiak4-Sep-07 5:32 
GeneralRe: Get blank CD/DVD disk space Pin
helelark1234-Sep-07 19:14
helelark1234-Sep-07 19:14 
GeneralRe: Get blank CD/DVD disk space Pin
Dave Kreskowiak5-Sep-07 2:02
mveDave Kreskowiak5-Sep-07 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.