Mc balla's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
3 (0 per day)
Joined:
28-May 12
Profile Views:
579
Last Active:
User is offline Aug 18 2012 08:29 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Mc balla has not set their status

Posts I've Made

  1. In Topic: Problem - Dock form at the bottom of another form

    Posted 23 Jul 2012

    View PostDimitriV, on 31 May 2012 - 01:53 AM, said:

    View PostMc balla, on 30 May 2012 - 11:55 AM, said:

    View PostDimitriV, on 28 May 2012 - 03:47 PM, said:

    Well, I can help you with keeping it in the right spot, like this.
    Keep X of the controls at this: Main Form width / 2 - Control width / 2
    Keep the Y at this: Main Form height - Control height.


    Can you give me an example please?

    What's your effort? Until I see what you've tried, I'll give you pointers instead.
    Set the Location property of the Form to a new Point (Main Form.Width / 2 - Me.Width / 2, Main Form.Height - Me.Height)
    (which is basically code anyway :P)


    Okay i cant believe i still have this problem LOL!!!!...Thanks for your reply btw

    form one and to are not "parent"&"child" they are individual
    i want this because if i make form1 a parent the trasparent/opacity will not be enabled
    so...here is what i tryd
    i coded form 1 and two individually like this

    Form1
    ...................................................................................................................

    Public Class Form1
    
        Function centerForm(ByVal Form_to_Center As Form, ByVal Form_Location As Point) As Point
            Dim pLocation As New Point
            pLocation.X = (Me.Left + (Me.Width - Form_to_Center.Width) / 2)
            pLocation.Y = (Me.Top + (Me.Height - Form_to_Center.Height) / 2)
            Return pLocation '// return the Location to the Form it was called from.
        End Function
      
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            AxPlayer1.FileName = ("D:\Prev computer\Video\Music video\Slaughterhouse - My Life (Explicit) ft. Cee Lo Green.mp4")
            AxPlayer1.Play()
        End Sub
    
    
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Form2.Show()
        End Sub
    End Class
    

    ......................................................................................................................


    Form2
    ......................................................................................................................

    Public Class Form2
       
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Me.Location = Form1.centerForm(Me, Me.Location) '// center Form of Main Form.
            Me.BringToFront()
        End Sub
    
    End Class
    
  2. In Topic: Problem - Dock form at the bottom of another form

    Posted 29 May 2012

    View PostDimitriV, on 28 May 2012 - 03:47 PM, said:

    Well, I can help you with keeping it in the right spot, like this.
    Keep X of the controls at this: Main Form width / 2 - Control width / 2
    Keep the Y at this: Main Form height - Control height.


    Can you give me an example please?

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

Mc balla has no profile comments yet. Why not say hello?