Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRetieve currenlty logged user details Pin
Manju.K.J6-Sep-04 4:43
Manju.K.J6-Sep-04 4:43 
GeneralRe: Retieve currenlty logged user details Pin
Heath Stewart6-Sep-04 9:31
protectorHeath Stewart6-Sep-04 9:31 
GeneralRe: Retieve currenlty logged user details Pin
Manju.K.J7-Sep-04 0:30
Manju.K.J7-Sep-04 0:30 
GeneralRe: Retieve currenlty logged user details Pin
Heath Stewart7-Sep-04 6:24
protectorHeath Stewart7-Sep-04 6:24 
GeneralRe: Retieve currenlty logged user details Pin
Manju.K.J13-Sep-04 1:27
Manju.K.J13-Sep-04 1:27 
QuestionTo Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
Al Gardner6-Sep-04 3:28
Al Gardner6-Sep-04 3:28 
AnswerRe: To Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
mav.northwind6-Sep-04 4:16
mav.northwind6-Sep-04 4:16 
AnswerRe: To Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
Heath Stewart6-Sep-04 9:40
protectorHeath Stewart6-Sep-04 9:40 
You should not base your usage of Dock vs. Anchor on preference, but requirements. Dock and Anchor do two different things, but they can seem similar when you anchor opposing sides. It's the ability to anchor adjecent sides that makes the two unique. If you want a Button to always stay in the lower-right corner, you anchor it to the bottom and right sides. You can't do that with docking. All you can do is dock to the bottom, but that will also work like anchoring it to the left side in addition. What you're left with doing is using a complex hierarchy of controls like the Panel or other container controls to support this. The extra window handles to track - not to mention the extra memory for these controls - is not required.

Also, some container controls allow you to set the padding for docked child controls, but this still doesn't afford you the same level of control for anchoring. You can anchor a control 8 pixels from the left edge of a parent control and 16 pixels from the top, and it will stay there (for example, depending on the anchored sides). With docking, that is much more difficult.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralAutoScroll Puzzle Pin
Paul Griffin6-Sep-04 3:08
Paul Griffin6-Sep-04 3:08 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart6-Sep-04 10:00
protectorHeath Stewart6-Sep-04 10:00 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin6-Sep-04 23:25
Paul Griffin6-Sep-04 23:25 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:27
protectorHeath Stewart7-Sep-04 6:27 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:38
Paul Griffin7-Sep-04 6:38 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:42
protectorHeath Stewart7-Sep-04 6:42 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin8-Sep-04 1:14
Paul Griffin8-Sep-04 1:14 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:46
Paul Griffin7-Sep-04 6:46 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:14
caspernjk6-Sep-04 2:14 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:07
caspernjk6-Sep-04 2:07 
GeneralRe: find the shortest path between two mouse clicks Pin
pxp6-Sep-04 3:54
pxp6-Sep-04 3:54 
GeneralSockets and threads! How to scale well :P (Part II) Pin
6-Sep-04 2:01
suss6-Sep-04 2:01 
GeneralRe: Sockets and threads! How to scale well :P (Part II) Pin
Heath Stewart6-Sep-04 9:53
protectorHeath Stewart6-Sep-04 9:53 
GeneralUsing COM classes Pin
_Magnus_6-Sep-04 1:58
_Magnus_6-Sep-04 1:58 
GeneralRe: Using COM classes Pin
mav.northwind6-Sep-04 2:21
mav.northwind6-Sep-04 2:21 
GeneralRe: Using COM classes Pin
_Magnus_6-Sep-04 2:30
_Magnus_6-Sep-04 2:30 
QuestionFile.Exists question? Pin
jzb6-Sep-04 1:03
jzb6-Sep-04 1:03 

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.