Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: save datagrid Pin
rull31-Mar-04 22:57
rull31-Mar-04 22:57 
GeneralRe: save datagrid Pin
bertcox31-Mar-04 23:14
bertcox31-Mar-04 23:14 
GeneralCustomizing .NET TreeNode Pin
Prasad Anand31-Mar-04 17:14
Prasad Anand31-Mar-04 17:14 
GeneralRe: Customizing .NET TreeNode Pin
Heath Stewart31-Mar-04 17:38
protectorHeath Stewart31-Mar-04 17:38 
GeneralMessageBox Pin
DucLinh31-Mar-04 15:41
DucLinh31-Mar-04 15:41 
GeneralRe: MessageBox Pin
Heath Stewart31-Mar-04 17:40
protectorHeath Stewart31-Mar-04 17:40 
QuestionHow to set splitter position Pin
yu-yu31-Mar-04 14:48
yu-yu31-Mar-04 14:48 
AnswerRe: How to set splitter position Pin
Heath Stewart31-Mar-04 17:45
protectorHeath Stewart31-Mar-04 17:45 
Don't waste resources saving the position every time it moves, but rather before the control is disposes (like when the container form is closed, which is also the best time to save any other positions and sizes you want). Some applications will save this data AFTER a change to make sure it is saved in cash of a crash, but don't do it while it's moving. You could, for instance, do this in the handler for the SplitterMoved event. See the documentation for the Splitter class in the .NET Framework SDK for more information.

The property you're looking for is Splitter.SplitPosition, as documented in the .NET Framework SDK. This is the distance (in pixels) between the location of the splitter and the side it's docked to (so if Splitter.Dock is set to DockStyle.Left (default), then SplitPosition set to 100 means it's 100 pixels from the left border of its container).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How to set splitter position Pin
yu-yu1-Apr-04 19:08
yu-yu1-Apr-04 19:08 
Questionwho can do a favor for me? Pin
liu123jian12331-Mar-04 13:44
liu123jian12331-Mar-04 13:44 
AnswerRe: who can do a favor for me? Pin
Colin Angus Mackay31-Mar-04 21:14
Colin Angus Mackay31-Mar-04 21:14 
QuestionReferences and asambling? Pin
Snowjim31-Mar-04 11:46
Snowjim31-Mar-04 11:46 
AnswerRe: References and asambling? Pin
Heath Stewart31-Mar-04 14:33
protectorHeath Stewart31-Mar-04 14:33 
GeneralRe: References and asambling? Pin
Snowjim31-Mar-04 22:17
Snowjim31-Mar-04 22:17 
GeneralRe: References and asambling? Pin
Heath Stewart1-Apr-04 4:03
protectorHeath Stewart1-Apr-04 4:03 
GeneralTape Drive access Pin
Shaun Becker31-Mar-04 9:38
Shaun Becker31-Mar-04 9:38 
GeneralRe: Tape Drive access Pin
Heath Stewart31-Mar-04 9:53
protectorHeath Stewart31-Mar-04 9:53 
GeneralEndless Mouse Move Events Pin
Darryl Borden31-Mar-04 9:24
Darryl Borden31-Mar-04 9:24 
GeneralRe: Endless Mouse Move Events Pin
leppie31-Mar-04 9:49
leppie31-Mar-04 9:49 
GeneralRe: Endless Mouse Move Events Pin
Bryan White31-Mar-04 10:32
Bryan White31-Mar-04 10:32 
GeneralCreateProcess call.... Pin
RB@Emphasys31-Mar-04 8:27
RB@Emphasys31-Mar-04 8:27 
GeneralRe: CreateProcess call.... Pin
Heath Stewart31-Mar-04 8:57
protectorHeath Stewart31-Mar-04 8:57 
GeneralRe: CreateProcess call.... Pin
RB@Emphasys31-Mar-04 9:07
RB@Emphasys31-Mar-04 9:07 
GeneralRe: CreateProcess call.... Pin
Heath Stewart31-Mar-04 9:12
protectorHeath Stewart31-Mar-04 9:12 
GeneralRe: CreateProcess call.... Pin
RB@Emphasys31-Mar-04 9:14
RB@Emphasys31-Mar-04 9:14 

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.