Internet explorer style user interface
-
Explorer Style can we made a tree view or list view or any other control with style like title bar with close button...just like a outlook exp. or windows expl or internet exlorer's left hand panels....in these applications..we can close the tree view by CLOSE button...and make appear by menu.. i want to made same treeBox... anand... __________________
-
Explorer Style can we made a tree view or list view or any other control with style like title bar with close button...just like a outlook exp. or windows expl or internet exlorer's left hand panels....in these applications..we can close the tree view by CLOSE button...and make appear by menu.. i want to made same treeBox... anand... __________________
Make a custom control that contains a TreeView, leaving room at the Top to draw your own Button control. If you want to detect whether the button was Clicked, do it one of two ways: 1.) Determine if the MouseDown position falls within the Bounds of where you drew the Close Button. Use the code below to draw the button. 2.) Create a very simple separate control called "CloseButton" and all it does on the "OnPaint" event is the following code:
Dim g As Graphics = Me.CreateGraphics
ControlPaint.DrawCaptionButton(g, New Rectangle(50, 50, 50, 50), CaptionButton.Close, ButtonState.Flat)
g.Dispose() : g = Nothing