Support Forums

Full Version: [TUT] DotNetBar on programs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Go to the solution Explored and Show all Files.

Expend your form and click .Designer.vb
you get:
Code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub
Make it into
Code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits DevComponents.DotNetBar.Office2007RibbonForm

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

Now you right click on the references and select add reference.

Go to browse and select your DotNetBar download. (Google It),

Now go to Project>Project Properties. Click Debug and uncheck the check mark.

Now click Resources and Add resourse. Select the DLL DotNetBar2. Now you can drag in Ribbon Control from the tools.


CREDS: Me
I wrote this all myself Big Grin