473,387 Members | 1,572 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,387 software developers and data experts.

form stacking and visibility using transparency

How do I control the layering of 4 forms of identical size and position to
cause the desired form to be second from the top..

Form1 has my welcome screen etc.and the code for file manipulations etc. etc

Form2 has a foreground image of a decorative picture frame (,png image) with
a transparent center, and a tab control for the user to select .bmp
pictures to view.

Form3 has a "picturebox" into which is loaded the user.bmp file image
selected in form2

I display the user image using a "picutrebox" on Form3, and since the
picturebox is set to a size much larger than the form I can scroll it at
will even beyond the size of the form, with the user seeing only the portion
behind the transparen center of the picture frame.

II tried using just Form2, but if my image is used as the background, I
cannot over size it and manipulate the location and size, and of course, if
it is the foreground, then my image of the picture frame will not appear in
front of it.
So now I have the picture frame as forground image of Form2
Backgound color of Form2 as transparent.
So now the picture frame shows form1 or the desk top below.
I created form3 to display the user images, and scroll the picture as
needed.

Other than send to the top or send to the bottom, how do I control the
stacking of mutlple forms of identical size and location, so I can specify
which form is on top, and which comes 2nd 3rd etc in order to make use of
transparency in various layers. The use must not be able to move the forms.

thanx......joisey
Nov 21 '05 #1
1 1630
I would suggest not using forms. instead, perhaps just use stacked
panels on a form.

You can get control of the paint and transparency of a control by:

Me.SetStyle(System.Windows.Forms.ControlStyles.Dou bleBuffer, True)
Me.SetStyle(System.Windows.Forms.ControlStyles.All PaintingInWmPaint,
False)
Me.SetStyle(System.Windows.Forms.ControlStyles.Res izeRedraw, True)
Me.SetStyle(System.Windows.Forms.ControlStyles.Use rPaint, True)
Me.SetStyle(System.Windows.Forms.ControlStyles.Sup portsTransparentBackColor,
True)
MyBase.BackColor = System.Drawing.Color.Transparent

-Steve.

Nov 21 '05 #2

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
2
by: mattaku | last post by:
I have a background image for my form that has an alpha channel (PNG or GIF). I would like my form to become semi-transparent and partially show the desktop. I can figure out how to set the form's...
1
by: Paul THompson | last post by:
I am using IE to hide sections of a form. When I display the first section (name='ea'), the form widgets are not clickable in IE nor do they accept focus. When I display the 3rd section...
3
by: veganeater | last post by:
Hi, I'm wondering if there's a way that I can select which <div> to show based on the user's selection from a dropdown/listbox form. <form name="form1" method="post" action=""> <select...
1
by: iMedia User | last post by:
I have a site where I want to use the Web form validators in two separate forms on a single page. One form allows existing users to log in while the second one allows new users to register. The...
7
by: Axel Siebenwirth | last post by:
Hi, I have implemented CSS dropdown menus. But there is one problem now with IE6... When I hover over a menu item and the sub-menu opens and then I want to move over the submenu, the submenu...
2
by: justplain.kzn | last post by:
Hi, I have a table with dynamic html that contains drop down select lists and readonly text boxes. Dynamic calculations are done on change of a value in one of the drop down select lists. ...
8
by: jd2007 | last post by:
Why the Ajax code below in ajax.js is causing my form not to work ? ajax.js: var a=0; var b=0; var c=0; var d=0; var e=0; var f=0;
3
by: msg2ajay | last post by:
hi, I am not able to align the textfield to the top of the frame one bye one. The problem is it is showing where it is hiding..... so is it possible to allign the text field to the top of...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.