Profile Picture

How to activate code in Navigation Pane

Posted By jody cummings 15 Years Ago
Author
Message
jody cummings
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 7, Visits: 1

Thank you very much Angel.

The Product seems very very good.  I am working on a project for myself at home and i think your product will defineatly be worth a buy.  It seems very impressive.

I am just seeing what i can do with panels now and it is incouraging!

Thank you so much for your assitance.



Angel Chorbadzhiev
Posted 15 Years Ago
View Quick Profile
Supreme Being

Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)

Group: Forum Members
Last Active: Last Month
Posts: 139, Visits: 184

Hello Jody,

If you use SelectedBandChanged event, it fires internaly when the control is created, because the control must have one band selected at the beginnig.

You can avoid firing the event on startup by setting a flag that checks whether the event fire for first time, or you can check whether the navigation tab Parent is not null and is Visible and then execute your code:

Private Sub NNavigationPane1_SelectedBandChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NNavigationPane1.SelectedBandChanged

    Dim pane As NNavigationPane = TryCast(sender, NNavigationPane)

    If Not pane.Parent Is Nothing Then

        If pane.Parent.Visible Then

            'Your code

        End If

    End If

End Sub



jody cummings
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 7, Visits: 1

Hello

I am new to Vb and i have been testing your User Interface.  It is very cool looking but i am having a slight problem.

When i load a Navigation Pane and add a band i cannot seem to get my code to fire off.

I have a form, split panel and tab control. 

If i put my code in the NNavigationPane1_SelectedBandChanged event the tabs load on startup which is no good.

I want to be able to click a band and have the tabs load.  I checked the event for bands and saw a clicked.  when i put the code in there it did not work as expected.  I expected to click the band and it would do my tab work.  Instead i had to click the band then click the empty space above the band....maybe i am misunderstanding and the band is actually the empty space???

hoepfully this is clear.



Attachments
snagit of pane.bmp (88 views, 388.00 KB)


Similar Topics


Reading This Topic