We help IT Professionals succeed at work.

Panel Opacity / Transparency

FMabey
FMabey asked
on
929 Views
Last Modified: 2008-01-09
Hi all,

I'm developing a windows app using VS2005.

I have the following code under a button that makes a panel (which has textboxes and comboboxes upon it) visible and sets it as transparent, showing the underlying datagridview that it appears on top of:

            Panel1.Parent = DGV_webs
            Me.Panel1.BackColor = Color.FromArgb(175, Me.Panel1.BackColor)

This works well apart from a few things.
The datagridview receives all tabs and enter keystrokes instead of the textboxes and comboboxes on the panel. And, the panel does not show up where it is located at design time. It shifts down the form and the bottom disappears off the bottom of the datagridview. If I position the panel higher then I can get it where I want but surely this isn't correct?

Basically what I am trying to do is give the user a panel with textboxes and comboboxes for them to fill in that will filter the datagridview info underneath it... I want them to be able to see the rows changing through the panel as they type in filter info.

Any suggestions would be great guys... Cheers.
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Commented:
You could just divide the screen up nicely by using a split container, placing the datagridview in the upper portion and the panel in the lower portion. This will also remove the focus issues you are having for the textbox controls.

Author

Commented:
planocz,

Are there any explanations that go with your code to give me an idea of how it works?
CERTIFIED EXPERT

Commented:
The app loads database data into the datgrid. But for your app, my app shows you how the cells change when you type data in the textboxes. Also I have the datagrid change cell colors if the cell has been changed in the cell, also I had the app check for qty. levels that are low which would change the cell data to red color.
You will have one form and the rest are classes.

Author

Commented:
planocz,

Not exactly what I was looking for but it's given me some ideas and a good starting point!
Thanks.
CERTIFIED EXPERT

Commented:
That was one thing that I was thinking about "given you some ideas and a good starting point"

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.