Ticket Q102452
Visible to All Users

customize MainForm Navigation

created 17 years ago

Hi Support Team,
I'm trying out the eXpressApp Framework. Great stuff. After reading the thread on customizing the MainForm to prevent the "Edit Model" menu from showing up, I decided to give it a try, using VS 2008, visual basic. After copying the following code:
Shared Sub application_CreateCustomTemplate(ByVal sender As Object, _
                                ByVal e As CreateCustomTemplateEventArgs)
        If e.Context.Name = TemplateContext.ApplicationWindow.Name Then
            e.Template = New DevExpress.ExpressApp.Win.CustomTemplates.MainForm
        End If
    End Sub
I recieve an error on the line
e.Template = New DevExpress.ExpressApp.Win.CustomTemplates.MainForm
For some reason the " .CustomTemplates. " is throwing an error. Do I need to have a different
Namespace or perhaps an import setup. I've basically taken the normal Windows Forms Applicaton Project Template
and tried out your code without having performed any other modifications to the project.
What I am actually wanting to eventually do is change the outlook style navbar to the SkinExplorerBarView style.
Thanks in advance for your help.
Lars

Show previous comments (2)

    Hi Dennis,
    thanks for your effort. I actually did stumble across your HowTo article, though I couldn't figure out where to paste the code ie. in which module and which .vb file (I'm a newbie to vb .net and programming for that matter). I would appreciate it if you could point me in the right direction.
    As to your sample app, I'll give it a try right away tomorrow morning.
    Thanks again
    Lars

    Dennis Garavsky (DevExpress) 17 years ago

      Hi Lars,
      Thank you for the feedback. You need to add a new controller into the windows forms application project of your solution. Then paste the code within this controller. Please let me know in case of any difficulty.
      Thanks,
      Dennis

        Hi Dennis,
        thanks for the help. I'll give it a try as an alternative. Your posted solution worked fine.
        Thanks again
        Lars

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.