Print Page | Close Window

skinFramework don't allow to center the screen.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: .NET WinForms
Forum Description: Topics related to Codejock .NET Windows Forms products
URL: http://forum.codejock.com/forum_posts.asp?TID=14243
Printed Date: 29 April 2024 at 7:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: skinFramework don't allow to center the screen.
Posted By: boss_mex
Subject: skinFramework don't allow to center the screen.
Date Posted: 07 May 2009 at 5:31pm
hi
I'm doing an application and i need a little window to accept user and passoword. I'm using SkinFramework, I had one problem the window is not in the center of the screen I had used the property form.startposition = centerscreen . I thought i was doing something wrong, but the sample "Skin SDI Sample" (that is installed when I installed codejock) shows the same problem.

        public frmMain()
        {

            skinFramework = new AxXtremeSkinFramework.AxSkinFramework();
            ((System.ComponentModel.ISupportInitialize)(skinFramework)).BeginInit();
            this.Controls.Add(skinFramework);
            ((System.ComponentModel.ISupportInitialize)(skinFramework)).EndInit();

            skinFolder = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\..\\..\\..\\..\\Vb\\SkinSDISample\\Styles\\";

            skinFramework.LoadSkin(skinFolder + "Le5", "Normalblue.ini");

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

        }

----------------------------------------------------------------------

I'm using version  12.1.1 whit visual sutdio 2008.
I noticed that if  I put the code after "InitializeComponent();" the form is showed in the center, but controls that are not codejock are in standard colors.
There is any solution for this problem.




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