Click here to Skip to main content
15,917,875 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: DirectX Pin
Christian Graus4-Sep-07 3:38
protectorChristian Graus4-Sep-07 3:38 
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 
Why the sarcasm Dave? After all you agree with me. Smile | :)
Color.Transparent also tells the control to get its background image from
it's container, and hence it does more than simply set it's own background to the same color. Semantics. Never mind.

Meanwhile I've made some progress. 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:

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))

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

TransparentControl.BackgroundImage=img


The derived buttons shape (It's white body) is properly located and visible
on the back of my control. But the buttons text caption is not translated for some reason.
Is the the caption not drawn in the OnPaint Event or something?


GeneralRe: Semi Transparent Controls Pin
Dave Kreskowiak4-Sep-07 15:46
mveDave Kreskowiak4-Sep-07 15:46 
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 

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.