MDI form ribbon problem

Topics related to the Krypton Ribbon.

Moderators: Phil Wright, Chris Porter

MDI form ribbon problem

Postby bjfeilmeier » Fri Jun 01, 2012 9:27 am

Hello,

I have a weird problem. I have a MDI form with a Krypton Ribbon on top. The ribbon looks great and works perfectly except that for some reason when I open 2 or more docs, then close them, I get a weird toolbar above the Krypton ribbon (see attached image). Has anyone else seen this? Any ideas on how to fix it?

Thanks!

Brad
Attachments
KryptonRibbonWeirdBar.png
KryptonRibbonWeirdBar.png (42.66 KiB) Viewed 892 times
bjfeilmeier
 
Posts: 3
Joined: Fri Jun 01, 2012 9:18 am

Re: MDI form ribbon problem

Postby Hobbes » Sun Jun 03, 2012 1:27 am

Try using the ribbon on a krypton form not a standard windows form, see if that helps
Hobbes
 
Posts: 29
Joined: Sun Nov 21, 2010 9:29 am

Re: MDI form ribbon problem

Postby bjfeilmeier » Thu Jun 07, 2012 11:59 am

Thanks for the reply Hobbes. I took your advice and switched to the Krypton Form and everything worked great until I realized that the MDI form will not show correctly (it says it's loaded and I can open/close it, but the richtextbox control or form is not seen). So the question is: do I have to use a Krypton Form for my MDI child also?

Below is the code I'm using to create the new MDI child:

Code: Select all
    Private Sub NewFile()
        childFormsCount += 1
        Dim childForm As New fEditor
        childForm.Text = "Unsaved Document " & childFormsCount
        childForm.MdiParent = Me
        childForm.Show()
    End Sub


This worked fine using the standard VS forms. This is getting to be a lot of rewriting and I'm thinking about asking for my money back. What's your thoughts?

Thanks again!
bjfeilmeier
 
Posts: 3
Joined: Fri Jun 01, 2012 9:18 am

Re: MDI form ribbon problem

Postby bjfeilmeier » Thu Jun 07, 2012 1:16 pm

Hi Hobbes, this is going to sound stupid, but I figured out the problem. Turns out that the Krypton form comes with a panel that I didn't notice that was hiding the MDI area. Once I deleted the panel, everything was fine. I'm only posting this in case someone else runs into this issue (and hopefully will be smarter than me and delete the panel without having to read this post :lol: ).

Thanks again for your help!
bjfeilmeier
 
Posts: 3
Joined: Fri Jun 01, 2012 9:18 am

Re: MDI form ribbon problem

Postby Hobbes » Fri Jun 08, 2012 10:48 pm

sorry just now read your post about the mdi and krypton forms, was gonna say to delete the panel, but you found that out already.

Cheers, glad it works better for you.
Hobbes
 
Posts: 29
Joined: Sun Nov 21, 2010 9:29 am

Re: MDI form ribbon problem

Postby Jjavierrg » Thu Jun 28, 2012 6:19 pm

Try to add into your MDI Parent form a MenuStrip and set it to .visible = false.

That works for me!
Jjavierrg
 
Posts: 6
Joined: Wed Aug 04, 2010 7:11 pm


Return to Krypton Ribbon

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron