Click here to Skip to main content
15,891,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple selection listbox Pin
ChandraRam10-Mar-08 1:34
ChandraRam10-Mar-08 1:34 
Questionhow can we change the input locale programmatically using C# Pin
g_hemanth1710-Mar-08 0:22
g_hemanth1710-Mar-08 0:22 
GeneralRe: how can we change the input locale programmatically using C# Pin
ChandraRam10-Mar-08 1:29
ChandraRam10-Mar-08 1:29 
QuestionRe: how can we change the input locale programmatically using C# Pin
g_hemanth1710-Mar-08 18:09
g_hemanth1710-Mar-08 18:09 
QuestionFormBorderStyle set to None with Context Menu on taskbar? Pin
lordkaile10-Mar-08 0:22
lordkaile10-Mar-08 0:22 
GeneralSplitcontainer SplitterDistance increases in every time Pin
AndrusM10-Mar-08 0:09
AndrusM10-Mar-08 0:09 
GeneralRe: Splitcontainer SplitterDistance increases in every time Pin
LongRange.Shooter10-Mar-08 8:51
LongRange.Shooter10-Mar-08 8:51 
GeneralRe: Splitcontainer SplitterDistance increases in every time Pin
AndrusM11-Mar-08 7:53
AndrusM11-Mar-08 7:53 
Thank you.

I changed setting to hold persent and added following code to resize method. Every time I re-open the form, Splitter moves up by a number of pixels. So top area becomes smaller and smaller until reaches to minimum height.
How to fix this ?
I have simple form containing ToolStrip and single horizontal splitter with DockStyle set to Fill. Top spitter are contains DataGridView and nbottom area contains multiline TextBox both with DockStyle set to Fill.



    protected override void OnResize(EventArgs e) {<br />
      if (Settings != null && Settings.SplitterDistance > 0m &&<br />
                Settings.SplitterDistance < 100m)         splitContainer1.SplitterDistance = (int)(Settings.SplitterDistance * (decimal)splitContainer1.Height / 100m);<br />
<br />
      base.OnResize(e);<br />
    }


Andrus

GeneralRe: Splitcontainer SplitterDistance increases in every time Pin
LongRange.Shooter11-Mar-08 16:56
LongRange.Shooter11-Mar-08 16:56 
GeneralRe: Splitcontainer SplitterDistance increases in every time Pin
AndrusM12-Mar-08 2:40
AndrusM12-Mar-08 2:40 
GeneralRe: Splitcontainer SplitterDistance increases in every time Pin
henkiepl22-Sep-10 21:02
henkiepl22-Sep-10 21:02 
QuestionAdd,Amend data from DataGridView Pin
Krazy Programmer9-Mar-08 23:45
Krazy Programmer9-Mar-08 23:45 
GeneralRe: Add,Amend data from DataGridView Pin
LongRange.Shooter13-Mar-08 5:01
LongRange.Shooter13-Mar-08 5:01 
Generalnumeric validation problem Pin
Miss Maheshwari9-Mar-08 23:27
Miss Maheshwari9-Mar-08 23:27 
GeneralRe: numeric validation problem Pin
Xmen Real 9-Mar-08 23:36
professional Xmen Real 9-Mar-08 23:36 
GeneralRe: numeric validation problem Pin
Miss Maheshwari9-Mar-08 23:40
Miss Maheshwari9-Mar-08 23:40 
GeneralRe: numeric validation problem Pin
N a v a n e e t h9-Mar-08 23:43
N a v a n e e t h9-Mar-08 23:43 
GeneralRe: numeric validation problem Pin
Miss Maheshwari9-Mar-08 23:49
Miss Maheshwari9-Mar-08 23:49 
GeneralRe: numeric validation problem Pin
N a v a n e e t h9-Mar-08 23:52
N a v a n e e t h9-Mar-08 23:52 
GeneralRe: numeric validation problem Pin
Miss Maheshwari10-Mar-08 0:01
Miss Maheshwari10-Mar-08 0:01 
GeneralRe: numeric validation problem Pin
Anthony Mushrow10-Mar-08 0:04
professionalAnthony Mushrow10-Mar-08 0:04 
Generalsaving files from database Pin
Icarus1239-Mar-08 22:41
Icarus1239-Mar-08 22:41 
GeneralRe: saving files from database Pin
Vasudevan Deepak Kumar9-Mar-08 22:47
Vasudevan Deepak Kumar9-Mar-08 22:47 
GeneralRe: saving files from database Pin
Icarus1239-Mar-08 22:54
Icarus1239-Mar-08 22:54 
GeneralRe: saving files from database Pin
Christian Graus9-Mar-08 23:28
protectorChristian Graus9-Mar-08 23:28 

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.