Component layout and appearance configuration

Property settings for use with the dtrt.NavBarWin - standard size, 2 lines, incremental buttons on separate line, brown color.
Code version Feb 17, 2004, Nbw003 layout

Screenshot Nbw003
Instructions for use:
1. Read the terms of use at bottom of page. If you do not agree, do not use this code!
2. Make a backup copy of the project or solution you want to change if you want to configure an existing dtrt.NavBarWin.
3. Prepare a windows form and drag a dtrt.NavBarWin onto it.
4. Replace 'NavBarWin1' in the code below with the name you gave the dtrt.NavBarWin component when you dragged it on your windows form.
5. VB: copy the VB code below to the InitializeComponent sub,
   C#: copy the C# code below to the InitializeComponent method,
paste the code over the existing corresponding entries, do not delete existing entries.
6. Return to the designer and view the results, adjust more properties to your liking, then save the settings.
VB Code:
   '------------- START code declaration for a Dtrt.NavBarWin object -------------
   '
   Me.navBarWin1.NavBarButtons = New Dtrt.NavBar.NavBarButtons("(Fi,1,1),(Pr,1,2),(Tx,1,3),(Ne,1,5),(La,1,6),(Pi,2,2),(s1,2,3),(s2,2,4),(Ni,2,5);" & _
   "Customized")
   Me.navBarWin1.BackColor = System.Drawing.Color.SaddleBrown
   Me.navBarWin1.ButtonFirst.BackColor = System.Drawing.Color.Tan
   Me.navBarWin1.ButtonFirst.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.navBarWin1.ButtonFirst.Location = New System.Drawing.Point(3, 3)
   Me.navBarWin1.ButtonFirst.Text = "|<<"
   Me.navBarWin1.ButtonFirst.Visible = True
   Me.navBarWin1.ButtonLast.BackColor = System.Drawing.Color.Tan
   Me.navBarWin1.ButtonLast.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.navBarWin1.ButtonLast.Location = New System.Drawing.Point(166, 3)
   Me.navBarWin1.ButtonLast.TabIndex = 4
   Me.navBarWin1.ButtonLast.Text = ">>|"
   Me.navBarWin1.ButtonLast.Visible = True
   Me.navBarWin1.ButtonNext.BackColor = System.Drawing.Color.Tan
   Me.navBarWin1.ButtonNext.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.navBarWin1.ButtonNext.Location = New System.Drawing.Point(141, 3)
   Me.navBarWin1.ButtonNext.TabIndex = 3
   Me.navBarWin1.ButtonNext.Text = ">"
   Me.navBarWin1.ButtonNext.Visible = True
   Me.navBarWin1.ButtonNextIncr.BackColor = System.Drawing.Color.Tan
   Me.navBarWin1.ButtonNextIncr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.navBarWin1.ButtonNextIncr.Location = New System.Drawing.Point(118, 25)
   Me.navBarWin1.ButtonNextIncr.TabIndex = 8
   Me.navBarWin1.ButtonNextIncr.Text = ">>"
   Me.navBarWin1.ButtonNextIncr.Visible = True
   Me.navBarWin1.ButtonPrevious.BackColor = System.Drawing.Color.Tan
   Me.navBarWin1.ButtonPrevious.CausesValidation = False
   Me.navBarWin1.ButtonPrevious.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.navBarWin1.ButtonPrevious.Location = New System.Drawing.Point(32, 3)
   Me.navBarWin1.ButtonPrevious.TabIndex = 1
   Me.navBarWin1.ButtonPrevious.Text = "<"
   Me.navBarWin1.ButtonPrevious.Visible = True
   Me.navBarWin1.ButtonPreviousIncr.BackColor = System.Drawing.Color.Tan
   Me.navBarWin1.ButtonPreviousIncr.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!)
   Me.navBarWin1.ButtonPreviousIncr.Location = New System.Drawing.Point(55, 25)
   Me.navBarWin1.ButtonPreviousIncr.TabIndex = 5
   Me.navBarWin1.ButtonPreviousIncr.Text = "<<"
   Me.navBarWin1.ButtonPreviousIncr.Visible = True
   Me.navBarWin1.Separator1.Visible = True
   Me.navBarWin1.Separator1.BackColor = System.Drawing.Color.SaddleBrown
   Me.navBarWin1.Separator1.Location = New System.Drawing.Point(84, 25)
   Me.navBarWin1.Separator1.TabIndex = 6
   Me.navBarWin1.Separator1.TabStop = False
   Me.navBarWin1.Separator1.Text = ""
   Me.navBarWin1.Separator2.Visible = True
   Me.navBarWin1.Separator2.BackColor = System.Drawing.Color.SaddleBrown
   Me.navBarWin1.Separator2.Location = New System.Drawing.Point(101, 25)
   Me.navBarWin1.Separator2.TabIndex = 7
   Me.navBarWin1.Separator2.TabStop = False
   Me.navBarWin1.Separator2.Text = ""
   Me.navBarWin1.Size = New System.Drawing.Size(205, 54)
   Me.navBarWin1.TextDisplay.AllowDrop = True
   Me.navBarWin1.TextDisplay.BackColor = System.Drawing.Color.PaleGoldenrod
   Me.navBarWin1.TextDisplay.ForeColor = System.Drawing.SystemColors.WindowText
   Me.navBarWin1.TextDisplay.Location = New System.Drawing.Point(59, 3)
   Me.navBarWin1.TextDisplay.TabIndex = 2
   Me.navBarWin1.TextDisplay.Text = "0 of 0"
   Me.navBarWin1.TextDisplay.ToolTip.ShowText = Dtrt.NavBar.ShowText.NavBarText
   Me.navBarWin1.TextDisplay.Visible = True
   '
   '------------- END code declaration for a Dtrt.NavBarWin object -------------
C# Code:
   // ------------- START code declaration for a Dtrt.NavBarWin object -------------
   //
   this.navBarWin1.NavBarButtons = new Dtrt.NavBar.NavBarButtons("(Fi,1,1),(Pr,1,2),(Tx,1,3),(Ne,1,5),(La,1,6),(Pi,2,2),(s1,2,3),(s2,2,4),(Ni,2,5);" +
      "Customized");
   this.navBarWin1.BackColor = System.Drawing.Color.SaddleBrown;
   this.navBarWin1.ButtonFirst.BackColor = System.Drawing.Color.Tan;
   this.navBarWin1.ButtonFirst.Location = new System.Drawing.Point(3, 3);
   this.navBarWin1.ButtonFirst.Text = "|<<";
   this.navBarWin1.ButtonFirst.Visible = true;
   this.navBarWin1.ButtonLast.BackColor = System.Drawing.Color.Tan;
   this.navBarWin1.ButtonLast.Location = new System.Drawing.Point(153, 3);
   this.navBarWin1.ButtonLast.TabIndex = 4;
   this.navBarWin1.ButtonLast.Text = ">>|";
   this.navBarWin1.ButtonLast.Visible = true;
   this.navBarWin1.ButtonNext.BackColor = System.Drawing.Color.Tan;
   this.navBarWin1.ButtonNext.Location = new System.Drawing.Point(128, 3);
   this.navBarWin1.ButtonNext.Size = new System.Drawing.Size(24, 20);
   this.navBarWin1.ButtonNext.TabIndex = 3;
   this.navBarWin1.ButtonNext.Text = ">";
   this.navBarWin1.ButtonNext.Visible = true;
   this.navBarWin1.ButtonNextIncr.BackColor = System.Drawing.Color.Tan;
   this.navBarWin1.ButtonNextIncr.Location = new System.Drawing.Point(109, 25);
   this.navBarWin1.ButtonNextIncr.TabIndex = 8;
   this.navBarWin1.ButtonNextIncr.Text = ">>";
   this.navBarWin1.ButtonNextIncr.Visible = true;
   this.navBarWin1.ButtonPrevious.BackColor = System.Drawing.Color.Tan;
   this.navBarWin1.ButtonPrevious.CausesValidation = false;
   this.navBarWin1.ButtonPrevious.Location = new System.Drawing.Point(32, 3);
   this.navBarWin1.ButtonPrevious.Size = new System.Drawing.Size(24, 20);
   this.navBarWin1.ButtonPrevious.TabIndex = 1;
   this.navBarWin1.ButtonPrevious.Text = "<";
   this.navBarWin1.ButtonPrevious.Visible = true;
   this.navBarWin1.ButtonPreviousIncr.BackColor = System.Drawing.Color.Tan;
   this.navBarWin1.ButtonPreviousIncr.Location = new System.Drawing.Point(46, 25);
   this.navBarWin1.ButtonPreviousIncr.TabIndex = 5;
   this.navBarWin1.ButtonPreviousIncr.Text = "<<";
   this.navBarWin1.ButtonPreviousIncr.Visible = true;
   this.navBarWin1.Separator1.Visible = true;
   this.navBarWin1.Separator1.BackColor = System.Drawing.Color.SaddleBrown;
   this.navBarWin1.Separator1.Location = new System.Drawing.Point(75, 25);
   this.navBarWin1.Separator1.TabIndex = 6;
   this.navBarWin1.Separator1.TabStop = false;
   this.navBarWin1.Separator1.Text = "";
   this.navBarWin1.Separator2.Visible = true;
   this.navBarWin1.Separator2.BackColor = System.Drawing.Color.SaddleBrown;
   this.navBarWin1.Separator2.Location = new System.Drawing.Point(92, 25);
   this.navBarWin1.Separator2.TabIndex = 7;
   this.navBarWin1.Separator2.TabStop = false;
   this.navBarWin1.Separator2.Text = "";
   this.navBarWin1.Size = new System.Drawing.Size(188, 54);
   this.navBarWin1.TextDisplay.AllowDrop = true;
   this.navBarWin1.TextDisplay.BackColor = System.Drawing.Color.PaleGoldenrod;
   this.navBarWin1.TextDisplay.ForeColor = System.Drawing.SystemColors.WindowText;
   this.navBarWin1.TextDisplay.Location = new System.Drawing.Point(59, 3);
   this.navBarWin1.TextDisplay.TabIndex = 2;
   this.navBarWin1.TextDisplay.Text = "0 of 0";
   this.navBarWin1.TextDisplay.ToolTip.ShowText = Dtrt.NavBar.ShowText.NavBarText;
   this.navBarWin1.TextDisplay.Visible = true;
   //
   // ------------- END code declaration for a Dtrt.NavBarWin object -------------
   
Terms of use:

· The code above and the instructions for use are supplied free of charge to any licensed dtrt.NavBarWin user
. The code can only be found and downloaded on the dtrt website, it is not distributed with the control.
· You may adapt the code to your liking, integrate it into your application and deploy it with your dtrt.NavBarWin.
· You may not sell or distribute the code. You must ask for copyrights before you publish the code.
· The author(s) and the dtrt company take no liability whatsoever for the code. You use it entirely at your own risk.
· Dtrt recommends setting up a small application with which you can develop and test the navigation bar’s configuration settings. When you are satisfied with the results, copy the configuration code from the test application to your real application.

www.dtrt.com