Windows Develop Bookmark and Share   
 index > Windows Forms General > Display of Overlapping Controls
 

Display of Overlapping Controls

I have a ListView control which I position on a form programmatically using Location property. I have label controls and textbox controls on the form also. When I position the ListView so that it overlaps a label, the label is displayed as being "on top", hiding part of the ListView control. When I position with overlap on one textbox control the same thing happens. But when it overlaps another textbox control, the ListView stays "on top", covering part of the textbox.

I can't find anything in the textbox properties that would explain why one would be different from the other. Anyway, I would like to have the ListView always be showing "on top" when overlap occurs. How can I accomplish this?

Thanks

dickey38  Wednesday, April 02, 2008 3:48 PM

You can use

listView1.BringToFront()

Eli Gazit  Wednesday, April 02, 2008 4:22 PM

You can use

listView1.BringToFront()

Eli Gazit  Wednesday, April 02, 2008 4:22 PM
Additionally, the "overlap order" is based on the order controls are added.
Harold.DeArmas  Wednesday, April 02, 2008 5:06 PM

You can use google to search for other answers

Custom Search

More Threads

• ScrollableControl force scrollbar visible
• C# Rich Text Box - Lines
• Rounded Corners on a PictureBox in C#?????
• Implementation of Diff or Levenshtein Distance algorithm for text Comparer
• Max Control Size Restriction?
• populating an array via another array
• How to use System.Windows.Controls.Image control for HD Photo?
• HTML Table equivalent for Windows forms
• window form keep open and close automatically
• Such a dumb question I am ashamed to ask