Click here to Skip to main content
15,920,632 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adjust speaker balance Pin
Polymorpher16-Dec-06 19:54
Polymorpher16-Dec-06 19:54 
GeneralRe: Adjust speaker balance Pin
Polymorpher17-Dec-06 18:50
Polymorpher17-Dec-06 18:50 
QuestionCenter Group box on form load Pin
hkinser916-Dec-06 17:01
hkinser916-Dec-06 17:01 
AnswerRe: Center Group box on form load Pin
Are Jay16-Dec-06 17:44
Are Jay16-Dec-06 17:44 
GeneralRe: Center Group box on form load Pin
hkinser916-Dec-06 17:53
hkinser916-Dec-06 17:53 
GeneralRe: Center Group box on form load Pin
The ANZAC16-Dec-06 21:54
The ANZAC16-Dec-06 21:54 
GeneralRe: Center Group box on form load Pin
Are Jay17-Dec-06 20:19
Are Jay17-Dec-06 20:19 
GeneralRe: Center Group box on form load Pin
The ANZAC19-Dec-06 10:20
The ANZAC19-Dec-06 10:20 
Ok, i've come up with this:

Dim y As Integer = Me.Bounds.Height / 2 - Me.GroupBox1.Height / 2<br />
       Dim x As Integer = Me.Bounds.Width / 2 - Me.GroupBox1.Width / 2<br />
       Me.GroupBox1.Location = New Point(x, y)


This will center your control, in this case, a groupbox within the forms client area. However ther may be one drawback (depending on how you see it). If you have a docked menu at the top of your form, the control will center itself between the bottom of the form and the menu. I'm guessing the same goes for any docked menu on any side. Other than that, i think this works quite well.

Posted by The ANZAC

Questionimport data from .csv file to oracle Pin
montu337716-Dec-06 15:25
montu337716-Dec-06 15:25 
QuestionSoftware to attach with winlogon.exe Pin
Mekong River16-Dec-06 15:18
Mekong River16-Dec-06 15:18 
AnswerRe: Software to attach with winlogon.exe Pin
Thomas Stockwell17-Dec-06 4:46
professionalThomas Stockwell17-Dec-06 4:46 
GeneralRe: Software to attach with winlogon.exe Pin
Mekong River29-Dec-06 15:29
Mekong River29-Dec-06 15:29 
AnswerRe: Software to attach with winlogon.exe Pin
Dave Kreskowiak17-Dec-06 6:03
mveDave Kreskowiak17-Dec-06 6:03 
GeneralRe: Software to attach with winlogon.exe Pin
Mekong River29-Dec-06 15:32
Mekong River29-Dec-06 15:32 
QuestionEvent hander of multiple buttons Pin
tbryce31116-Dec-06 14:31
tbryce31116-Dec-06 14:31 
AnswerRe: Event hander of multiple buttons Pin
Guffa16-Dec-06 15:41
Guffa16-Dec-06 15:41 
GeneralRe: Event hander of multiple buttons Pin
tbryce31117-Dec-06 4:56
tbryce31117-Dec-06 4:56 
GeneralRe: Event hander of multiple buttons Pin
Dave Kreskowiak17-Dec-06 6:15
mveDave Kreskowiak17-Dec-06 6:15 
AnswerRe: Event hander of multiple buttons Pin
Guffa17-Dec-06 9:14
Guffa17-Dec-06 9:14 
AnswerRe: Event hander of multiple buttons Pin
Thomas Stockwell17-Dec-06 4:49
professionalThomas Stockwell17-Dec-06 4:49 
QuestionLoad Values from registry into checkedlistbox Pin
guayony16-Dec-06 8:17
guayony16-Dec-06 8:17 
QuestionRe: Load Values from registry into checkedlistbox Pin
Are Jay16-Dec-06 19:43
Are Jay16-Dec-06 19:43 
QuestionChange Button Name, and Image When Button is Clicked [modified] Pin
Skullie8416-Dec-06 6:38
Skullie8416-Dec-06 6:38 
AnswerRe: Change Button Name, and Image When Button is Clicked Pin
The ANZAC16-Dec-06 10:48
The ANZAC16-Dec-06 10:48 
GeneralRe: Change Button Name, and Image When Button is Clicked Pin
Skullie8418-Dec-06 3:55
Skullie8418-Dec-06 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.