473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Transparency and repaint

Hi,

I have a form with a transparency color white and some picture as background
on this form where the corners and border of this picture is white to create
some skinned form.

When this form is repainted (dragging another window over the form) the
white/transparent parts are not correctly updated but shows rubble (like a
form/application without processing messages).

Is this a software issue, is there some (repoaint) property to set or is it
hardware (vga)?

TIA,

Rene
Nov 16 '05 #1
2 1500
I tried to duplicate your problem and couldn't. You might try setting the
background color of the form to white even though you are using an image
overlay. I am assuming you are not painting the background image in onPaint,
but are using the background image property of the form. . Can you post some
code excerpts and the properties you are setting on the form?

Thomas P. Skinner [MVP]

"Rene" <in*****@invalidnospam.com> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have a form with a transparency color white and some picture as
background
on this form where the corners and border of this picture is white to
create
some skinned form.

When this form is repainted (dragging another window over the form) the
white/transparent parts are not correctly updated but shows rubble (like a
form/application without processing messages).

Is this a software issue, is there some (repoaint) property to set or is
it
hardware (vga)?

TIA,

Rene

Nov 16 '05 #2
I've created some similar controls and what I do is create a GraphicsPath
around the perimeter of the control with rounded edges, then I set the
control's Region using the GraphicsPath. Take a look at
http://www.codeproject.com/cs/miscct...yle_button.asp

Robert

"Rene" <in*****@invalidnospam.com> wrote in message
news:uT**************@TK2MSFTNGP11.phx.gbl...
Hi,

I have a form with a transparency color white and some picture as
background
on this form where the corners and border of this picture is white to
create
some skinned form.

When this form is repainted (dragging another window over the form) the
white/transparent parts are not correctly updated but shows rubble (like a
form/application without processing messages).

Is this a software issue, is there some (repoaint) property to set or is
it
hardware (vga)?

TIA,

Rene

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mr. x | last post by:
Hello, I would like that my image's background color will be transparent. What I have is only paintbrush. My image is *.jpg format (I have tried to save it as *.gif format, and I got less...
20
by: Nathan Sokalski | last post by:
I am trying to create graphics with GDI+ that include transparency. However, the transparency never seems to show up, even though my colors have an alpha value of 0. How can I generate a graphic...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
5
by: Martin Williams | last post by:
I used the example on Bob Powell's site to draw a gradient on the background of the parent form in my survey app. Now, I would like to have a logo docked in the corner, but have the background of...
6
by: tommaso.gastaldi | last post by:
In a previous post I have been asking about a way to test Alpha Transparency. Bob and Michael have kindly provided some ideas. Here I would like to share the function I have prepared, for the...
0
by: ZikO | last post by:
Hi. I've experienced one problem. Im using three froms. Two of them are maximized, whereas one is normal form with transparency. Transparency stops working, that is I can see the color which...
1
by: dragze | last post by:
Hi, On one of the pages of my site i use two javascripts, one makes transparency of png's work in IE, and the other embeds a flash player. Now use one of the scripts it works fine, use both and...
3
by: Martijn Mulder | last post by:
When I populate a ToolStrip with ToolStripButtons with a .png-image on it, will Windows understand the transparency of the .png file?
0
by: milkay | last post by:
<I have code that uses 2 images> the program creates a window and then when u press play, it removes all components in the container. then, i add a NewPanel object. i add mouse listeners and all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.