Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,095 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,814 people online right now. Registration is fast and FREE... Join Now!




Align two picture boxes + About box

 
Reply to this topicStart new topic

Align two picture boxes + About box

B-rad
6 Jun, 2008 - 06:33 PM
Post #1

New D.I.C Head
*

Joined: 6 Jun, 2008
Posts: 3


My Contributions
Hey,
Can anyone tell me how to align the center of two picture boxes?
I want one picture box located underneath the other but have it centered.

also i was just wondering about the VB.net 'AboutBox' tool.
its like a new form but i dont know how to display it when i click the button. it doesn't work like a normal form when by you can use
CODE
normalform.Show()
        Me.Hide()

to display it.
does any one know how to display one?
Cheers
B-rad

User is offlineProfile CardPM
+Quote Post

robertelder
RE: Align Two Picture Boxes + About Box
7 Jun, 2008 - 05:33 AM
Post #2

New D.I.C Head
*

Joined: 5 Jun, 2008
Posts: 30



Thanked: 3 times
My Contributions
B-rad,

I'm using VB2008. The AboutBox seems to work ok... Do you have any specific questions?

Here' how I use it...

I placed this code in Form1 to hide Form1 and show AboutBox1:
CODE

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
                                            Handles Button1.Click
        AboutBox1.Show()
        Me.Hide()
    End Sub


I placed this code in AboutBox1 to show Form1 when AboutBox1 closes:
CODE

    Private Sub AboutBox1_Close(ByVal sender As System.Object, ByVal e As System.EventArgs) _
                                                Handles Me.FormClosing
        Form1.Show()
    End Sub



As for aligning the centers of your pictureboxes... in the design view, click on one of the pictureboxes, then hold down the CTRL key and click on the second box. When they have both been selected, on the top of the IDE you'll find a menu item "Format". Click FORMAT and select ALIGN then CENTERS.

Good luck!

-Rob


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 12:12AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month