6 Replies - 1382 Views - Last Post: 12 February 2013 - 02:25 AM Rate Topic: ***** 1 Votes

#1 nilesh7136  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 120
  • Joined: 03-January 13

DevComponent Problems in VB.NET

Posted 11 February 2013 - 10:04 AM

Hellow,,,

Problem in DevComponents,

Im using devcmponent in my vb.net application, my form look like wonderful in the project, but when i debug the project, at that time its look like normal form, You Can See Shapshot of My Proct in Link:"http://i49.tinypic.com/289fsz.jpg"
Please help, what wrong there???

Thanks in Advance,
@Nilesh

Posted Image

This post has been edited by modi123_1: 11 February 2013 - 11:24 AM
Reason for edit:: please use image tags


Is This A Good Question/Topic? 0
  • +

Replies To: DevComponent Problems in VB.NET

#2 TheKirk  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 58
  • Joined: 10-February 13

Re: DevComponent Problems in VB.NET

Posted 11 February 2013 - 11:03 AM

Could we see the form initialisation code?
Was This Post Helpful? 0
  • +
  • -

#3 nilesh7136  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 120
  • Joined: 03-January 13

Re: DevComponent Problems in VB.NET

Posted 11 February 2013 - 11:05 AM

Yeah Sure...
Full Code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form2
    Inherits DevComponents.DotNetBar.Office2007Form

    '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

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.Ribbonbar1 = New DevComponents.DotNetBar.RibbonBar
        Me.ButtonItem1 = New DevComponents.DotNetBar.ButtonItem
        Me.SuspendLayout()
        '
        'Ribbonbar1
        '
        Me.Ribbonbar1.AutoOverflowEnabled = True
        Me.Ribbonbar1.ContainerControlProcessDialogKey = True
        Me.Ribbonbar1.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.ButtonItem1})
        Me.Ribbonbar1.Location = New System.Drawing.Point(79, 112)
        Me.Ribbonbar1.Name = "Ribbonbar1"
        Me.Ribbonbar1.Size = New System.Drawing.Size(106, 57)
        Me.Ribbonbar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007
        Me.Ribbonbar1.TabIndex = 0
        '
        'ButtonItem1
        '
        Me.ButtonItem1.Name = "ButtonItem1"
        Me.ButtonItem1.SubItemsExpandWidth = 14
        Me.ButtonItem1.Text = "ButtonItem1"
        '
        'Form2
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(304, 292)
        Me.Controls.Add(Me.Ribbonbar1)
        Me.DoubleBuffered = True
        Me.Name = "Form2"
        Me.Text = "Form2"
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents Ribbonbar1 As DevComponents.DotNetBar.RibbonBar
    Friend WithEvents ButtonItem1 As DevComponents.DotNetBar.ButtonItem
End Class

Was This Post Helpful? 0
  • +
  • -

#4 TheKirk  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 58
  • Joined: 10-February 13

Re: DevComponent Problems in VB.NET

Posted 11 February 2013 - 11:09 AM

Try this:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form2
    Inherits DevComponents.DotNetBar.Office2007Form

    '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

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.SuspendLayout()
        Me.Ribbonbar1 = New DevComponents.DotNetBar.RibbonBar
        Me.ButtonItem1 = New DevComponents.DotNetBar.ButtonItem
        '
        'Ribbonbar1
        '
        Me.Ribbonbar1.AutoOverflowEnabled = True
        Me.Ribbonbar1.ContainerControlProcessDialogKey = True
        Me.Ribbonbar1.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.ButtonItem1})
        Me.Ribbonbar1.Location = New System.Drawing.Point(79, 112)
        Me.Ribbonbar1.Name = "Ribbonbar1"
        Me.Ribbonbar1.Size = New System.Drawing.Size(106, 57)
        Me.Ribbonbar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007
        Me.Ribbonbar1.TabIndex = 0
        '
        'ButtonItem1
        '
        Me.ButtonItem1.Name = "ButtonItem1"
        Me.ButtonItem1.SubItemsExpandWidth = 14
        Me.ButtonItem1.Text = "ButtonItem1"
        '
        'Form2
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(304, 292)
        Me.Controls.Add(Me.Ribbonbar1)
        Me.DoubleBuffered = True
        Me.Name = "Form2"
        Me.Text = "Form2"
        Me.ResumeLayout()

    End Sub
    Friend WithEvents Ribbonbar1 As DevComponents.DotNetBar.RibbonBar
    Friend WithEvents ButtonItem1 As DevComponents.DotNetBar.ButtonItem
End Class

Was This Post Helpful? 0
  • +
  • -

#5 nilesh7136  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 120
  • Joined: 03-January 13

Re: DevComponent Problems in VB.NET

Posted 11 February 2013 - 11:20 AM

Still looks same dude, is there any changes if i haved not install MS Office 2007???
Was This Post Helpful? 0
  • +
  • -

#6 nilesh7136  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 120
  • Joined: 03-January 13

Re: DevComponent Problems in VB.NET

Posted 11 February 2013 - 11:56 AM

View PostTheKirk, on 11 February 2013 - 11:09 AM, said:

Try this:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form2
    Inherits DevComponents.DotNetBar.Office2007Form

    '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

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.SuspendLayout()
        Me.Ribbonbar1 = New DevComponents.DotNetBar.RibbonBar
        Me.ButtonItem1 = New DevComponents.DotNetBar.ButtonItem
        '
        'Ribbonbar1
        '
        Me.Ribbonbar1.AutoOverflowEnabled = True
        Me.Ribbonbar1.ContainerControlProcessDialogKey = True
        Me.Ribbonbar1.Items.AddRange(New DevComponents.DotNetBar.BaseItem() {Me.ButtonItem1})
        Me.Ribbonbar1.Location = New System.Drawing.Point(79, 112)
        Me.Ribbonbar1.Name = "Ribbonbar1"
        Me.Ribbonbar1.Size = New System.Drawing.Size(106, 57)
        Me.Ribbonbar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2007
        Me.Ribbonbar1.TabIndex = 0
        '
        'ButtonItem1
        '
        Me.ButtonItem1.Name = "ButtonItem1"
        Me.ButtonItem1.SubItemsExpandWidth = 14
        Me.ButtonItem1.Text = "ButtonItem1"
        '
        'Form2
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(304, 292)
        Me.Controls.Add(Me.Ribbonbar1)
        Me.DoubleBuffered = True
        Me.Name = "Form2"
        Me.Text = "Form2"
        Me.ResumeLayout()

    End Sub
    Friend WithEvents Ribbonbar1 As DevComponents.DotNetBar.RibbonBar
    Friend WithEvents ButtonItem1 As DevComponents.DotNetBar.ButtonItem
End Class


Now, I have'd install MS Office 2007, but still looks same dude,,, whats wrong there please help,,,
@Nilesh
Was This Post Helpful? 0
  • +
  • -

#7 deery5000  Icon User is offline

  • D.I.C Addict

Reputation: 78
  • View blog
  • Posts: 966
  • Joined: 09-May 09

Re: DevComponent Problems in VB.NET

Posted 12 February 2013 - 02:25 AM

Try making a new project with a form as a test, there could be corruption if you have messed with this multiple times

you do not need office installed and this is the office 2007 look, look in the designer window for the StyleManager, look at thos configurations. Its possible that setting from the StyleManager and the Inherits used on your form is causing a conflict

Oh is this purchased or downloaded version of DotNetBar2.dll


Note:
Your class is for Form2 and your image is showing form1, please ensure you have Inherits DevComponents.DotNetBar.Office2007Form on all forms :)

This post has been edited by deery5000: 12 February 2013 - 02:27 AM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1