Ken Lionheart

Hi
I need to place an image (like a logo) on the screen, and I need it to be on top of every other window. So for example, if I open Windows Explorer, the image should be on TOP of it so I can see it. I need it to be on top of everything, and no window or application can cover it.

Also, I need to be able to positiotn this image whereever I want on the screen, left top, centre etc... anywhere I choose.

How can I do this Any advice on what to do or where to ask for help

Very Much appreciated!

Thankyou.
Ken.


Re: Windows Forms General Image on top of all windows

nobugz

Uggh, why on Earth would you unleash that kind of misery on your clients. If you really insist: Form.TopMost.





Re: Windows Forms General Image on top of all windows

Ken Lionheart

Hi
Thats funny. In fact, I dont want to use it on my clients, but only on myself! I have a specific use for it.

And thanks for the Form.TopMost tip. But I really don't know what that means or how to use it. How do I use that to make a saved Image appear on the screen on top of everything else

You help is very much appreciated.

Thanks.




Re: Windows Forms General Image on top of all windows

Ðãv? S. Â???????

You have to set the forms TopMost property to true.





Re: Windows Forms General Image on top of all windows

nobugz

Just put a PictureBox, Dock=Fill, inside a borderless form. Set the form's TopMost property to True.





Re: Windows Forms General Image on top of all windows

Ken Lionheart

Thanks alot for the help. But I'm a little new to this whole thing.

Do I have to do what you said in Visual Basic

How do I run the code

How do I position the picture where I want on the screen

Can I have the image appear on the screen without a window bar on top (the blue bar with the minimise, resize and close buttons)

Many Thanks. I really appreciate your help!




Re: Windows Forms General Image on top of all windows

nobugz

Yes, F5, Location property, FormBorderStyle property. Play around with it, it takes a little time to stop being a little new. And visit your local library for one of many excellent introductory books to Windows Forms programming.





Re: Windows Forms General Image on top of all windows

Ken Lionheart

I thank you for your great help!




Re: Windows Forms General Image on top of all windows

Ken Lionheart

Problem!
I have VB6 not VB.net and it doesn't have TopMost...

What I need is this:
an Image to remain on top of other windows, while being inactive... so I can be using Windows explorer or any application while this image remains on top of it... I can click and select an item right behind that image and it would be selected etc... so its like sticking a printed image onto the monitor screen!

Is there a line of code I could use

Many thanks.




Re: Windows Forms General Image on top of all windows

Ken Lionheart

Also...

say if the Image was a letter O, I need the white in the image (inside the o and around the letter) to be transparrent.

Many thanks.




Re: Windows Forms General Image on top of all windows

nobugz

Don't waste your (and our) time with VB6, it can't do anything like that. Use VB.NET Express, it is free.





Re: Windows Forms General Image on top of all windows

Ken Lionheart

Thanks for that
I have done it now, the form appears on top of everything else.
However, I still have the transparency problem, which I mentioned in the previous post.

I need the picture to appear by itself...

How can I do that

Thanks again.




Re: Windows Forms General Image on top of all windows

nobugz

Use Form.TransparencyKey.





Re: Windows Forms General Image on top of all windows

Ken Lionheart

I can't get that to work.

Theres a TransparencyKey in the properties... but it dosn't work on "White", nor "transparent"...

I put in this code:

Me.TransparencyKey = Color.Transparent

And it dosn't work.

Is there something I'm doing wrong

There's the Opacity option but that makes the whole Form see through, which is not exactly what I need.

I need to see the picture but not the background.

Thanks.




Re: Windows Forms General Image on top of all windows

nobugz

Don't use Color.Transparent, use the actual background color of your image.