Print Page | Close Window

skinFramework when used RibbonBars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=18226
Printed Date: 05 April 2025 at 1:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: skinFramework when used RibbonBars
Posted By: varun
Subject: skinFramework when used RibbonBars
Date Posted: 15 April 2011 at 7:07am
Can any one please help me how to use openFileDialog with the skinFramework when we are using CommandBars i.e, in RibbonMdiForm sample for "ID_FILE_OPEN" click event i want to open openFileDialog to browse a file, but it should also be applied with skinFramework.

I am using CommandBars Control Version 15.0.1
Visual Studio 2010 & C# as code behind language


-------------
V



Replies:
Posted By: Oleg
Date Posted: 15 April 2011 at 8:14am
SkinFramework should automatically handle this dialog.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: varun
Date Posted: 16 April 2011 at 9:21am
Can you provide any sample example through which i can get success.

I am weird about this problem, I cant access openfiledialog or any other dialog boxes.

For ex:
I was created MDI Form from MDI form i have called child forms i.e, frmOptions as below is code snippet through which I can open with ribbon bar effects

                frmOptions = new LSPOptionsBox();
                CommandBars.EnableOffice2007FrameHandle(frmOptions.Handle.ToInt32());
                frmOptions.ShowDialog();

Can you please help to open up OpenFileDialog
In child forms I have provided some datagridview & contextmenustrip, by clicking contextmenustrip button i have to show openFileDialog & saveFileDialog but i cant make it active as commandbar skin effects.
Please help me

I tried as below code correct me here to open with effects:

                OpenFileDialog openFileDialog1 = new OpenFileDialog();
                openFileDialog1.InitialDirectory = strDirectory;
                frmMdi.Instance.CommandBars.EnableOffice2007FrameHandle(this.Handle.ToInt32());
                DialogResult Result = openFileDialog1.ShowDialog(frmMdi.skinFramework);




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net