How to fix position of form built with skincrafter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muddasirmunir
    Contributor
    • Jan 2007
    • 284

    How to fix position of form built with skincrafter

    I had download the trial version of skin crafter www.skincrafter.com and want to use it with vb6.

    I am facing some problem, I had a MDI form and some child forms, I want my child form to be somewhere in the center of the screen, but when i place the form in the center it first comes some where else on the screen for a split of seconds and then come to the center, which looks too odd.

    To show you exacltly how its happen, please see a very small video

    Store your photos and videos online with secure storage from Photobucket. Available on iOS, Android and desktop. Securely backup your memories and sign up today!


    If you want to see my sample code , you can download it from

    Ziddu has a lot of history which the website had been well known for multiple times. In this article, we are to share the history behind our domain.


    How can i place the form accurately so its wont look odd? Did this problem is due to my graphic card or system is slow etc or something else?
    Last edited by Niheel; May 24 '10, 06:47 AM. Reason: grammar, punctuation, readability, please ready bytes guidelines on posting questions
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    Without looking at your form or your code, it is a real simple matter to make your form come up in the center of the screen... in design view set its startupposition property to center owner or center screen...

    Comment

    • muddasirmunir
      Contributor
      • Jan 2007
      • 284

      #3
      Originally posted by vb5prgrmr
      Without looking at your form or your code, it is a real simple matter to make your form come up in the center of the screen... in design view set its startupposition property to center owner or center screen...



      Good Luck
      When i set the property startupposition i got error "Invalid Property Value"

      Comment

      • vb5prgrmr
        Recognized Expert Contributor
        • Oct 2009
        • 305

        #4
        >in design view set its startupposition property to center owner or center screen...

        Comment

        • muddasirmunir
          Contributor
          • Jan 2007
          • 284

          #5
          Originally posted by vb5prgrmr
          >in design view set its startupposition property to center owner or center screen...
          I set the property to center but as soon as i change the property at desing time i am getting error "Invalid Property Value" , i donot know why?

          Comment

          • vb5prgrmr
            Recognized Expert Contributor
            • Oct 2009
            • 305

            #6
            Is it a mdi child form? It must be as I just checked... I was thinking you were talking about your parent MDI form and not the child. (Well I guess that is what I get for thinking... :) )

            Okay, so you want to have the mdi child show up in the center of the mdi parent...
            Code:
            Option Explicit
            
            Private Sub Form_Load()
            Me.Left = (MDIForm1.ScaleWidth / 2) - (Me.Width / 2)
            Me.Top = (MDIForm1.ScaleHeight / 2) - (Me.Height / 2)
            
            End Sub


            Good Luck

            Comment

            Working...