Click here to Skip to main content
15,888,124 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB6.0 Application Deployment Pin
Member 474563223-Jun-09 1:36
Member 474563223-Jun-09 1:36 
GeneralRe: VB6.0 Application Deployment Pin
Dalek Dave23-Jun-09 3:06
professionalDalek Dave23-Jun-09 3:06 
GeneralRe: VB6.0 Application Deployment Pin
EliottA23-Jun-09 3:34
EliottA23-Jun-09 3:34 
GeneralRe: VB6.0 Application Deployment Pin
Christian Graus23-Jun-09 10:18
protectorChristian Graus23-Jun-09 10:18 
QuestionPanels Pin
mirzamujib23-Jun-09 0:58
mirzamujib23-Jun-09 0:58 
AnswerRe: Panels Pin
Henry Minute23-Jun-09 1:45
Henry Minute23-Jun-09 1:45 
GeneralRe: Panels Pin
mirzamujib23-Jun-09 10:39
mirzamujib23-Jun-09 10:39 
GeneralRe: Panels Pin
Henry Minute23-Jun-09 11:58
Henry Minute23-Jun-09 11:58 
OK.
This could take a long time, because it is quite complicated.

All of the ExplorerBar implementations I have seen have a Control that acts as the host for the XPPanels. It is this Host control that maintains a list of it's XPPanels and organizes them when one shrinks or grows.

It goes something like this.
The XPPanel Control has an event (just for this explanation I'll call it PanelSizeChanged).
The host control overrides the OnControlAdded method something like this
Protected Overrides Sub OnControlAdded(ByVal e As System.Windows.Forms.ControlEventArgs)
    MyBase.OnControlAdded(e)

    If e.Control Is XPPanel Then
        newPanel As XPPanel = e.Control
        Me.panels.Add(newPanel)   ' panels is a collection in the host control for keeping track of XPPanels
        AddHandler newPanel.PanelSizeChanged, New XPPanelSizeChangeHandler(AddressOf Me.SizeChangeMethod)
        ' and whatever else needs doing
    End If
End Sub


Now whenever a XPPanel changes size the host runs the SizeChangeMethod. In that method it starts with the XPPanel that changed (the sender from the ByVal sender As System.Object parameter), finds its index in the panels collection and makes a note of where its bottom is (something like lastBottom AS Int32 = panels(index).Bottom).
Then it gets the next XPPanel and sets its top to be lastBottom plus whatever you choose as the gap between panels, after that it sets lastBottom to equal the bottom of this XPPanel. Then it gets the next panel, repeats the above until it has dealt with all the panels.

If you do not know how to raise Events or create EventHandlers, you will need to do some research on that before proceeding.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

QuestionMS Chart - Problem to display the records in Range Column Chart Pin
Jegansinna23-Jun-09 0:06
Jegansinna23-Jun-09 0:06 
QuestionExecute MSWord Label Mail-Merge Using VB.NET Pin
Indra PR22-Jun-09 23:30
Indra PR22-Jun-09 23:30 
QuestionProperty grid [modified] Pin
bhargava240922-Jun-09 23:28
bhargava240922-Jun-09 23:28 
AnswerRe: Property grid Pin
Christian Graus23-Jun-09 1:20
protectorChristian Graus23-Jun-09 1:20 
GeneralRe: Property grid Pin
bhargava240923-Jun-09 1:43
bhargava240923-Jun-09 1:43 
Questionvb6 database Pin
spruha36922-Jun-09 18:35
spruha36922-Jun-09 18:35 
AnswerRe: vb6 database Pin
TheMrProgrammer22-Jun-09 18:59
TheMrProgrammer22-Jun-09 18:59 
GeneralRe: vb6 database Pin
spruha36922-Jun-09 22:20
spruha36922-Jun-09 22:20 
AnswerRe: vb6 database Pin
Christian Graus22-Jun-09 19:26
protectorChristian Graus22-Jun-09 19:26 
AnswerRe: vb6 database Pin
Pasan14822-Jun-09 22:19
Pasan14822-Jun-09 22:19 
GeneralRe: vb6 database Pin
spruha36922-Jun-09 22:21
spruha36922-Jun-09 22:21 
AnswerRe: vb6 database Pin
David Skelly22-Jun-09 22:41
David Skelly22-Jun-09 22:41 
GeneralRe: vb6 database Pin
spruha36922-Jun-09 23:20
spruha36922-Jun-09 23:20 
QuestionOpenGL with VB .NET Pin
Forgon22-Jun-09 14:17
Forgon22-Jun-09 14:17 
AnswerRe: OpenGL with VB .NET Pin
Eslam Afifi22-Jun-09 14:55
Eslam Afifi22-Jun-09 14:55 
QuestionWith clouse Pin
Bahram.Zarrin22-Jun-09 11:02
Bahram.Zarrin22-Jun-09 11:02 
AnswerRe: With clouse Pin
Christian Graus22-Jun-09 11:05
protectorChristian Graus22-Jun-09 11:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.