Click here to Skip to main content
15,886,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: Select Grid Cell value Pin
Mazdak17-Jan-04 2:28
Mazdak17-Jan-04 2:28 
GeneralRe: Select Grid Cell value Pin
Ashraf Alsadiq17-Jan-04 2:42
Ashraf Alsadiq17-Jan-04 2:42 
Questionhow can i save this? Pin
Peter Reiter16-Jan-04 23:03
Peter Reiter16-Jan-04 23:03 
AnswerRe: how can i save this? Pin
Mazdak17-Jan-04 0:29
Mazdak17-Jan-04 0:29 
AnswerRe: how can i save this? Pin
Corinna John17-Jan-04 6:34
Corinna John17-Jan-04 6:34 
GeneralWindows Application Screen Resolution problem Pin
koosala16-Jan-04 18:13
koosala16-Jan-04 18:13 
GeneralRe: Windows Application Screen Resolution problem Pin
Mazdak16-Jan-04 19:27
Mazdak16-Jan-04 19:27 
GeneralRe: Windows Application Screen Resolution problem Pin
Heath Stewart16-Jan-04 19:40
protectorHeath Stewart16-Jan-04 19:40 
In addition to what Mazdak was talking about, you can also make use of the Dock property that most of the controls expose. Effective docking can help decrease those problems. If you're not starting with a clean surface, though, pay close attention to the order in which controls are added to the container's (ex: Form) Controls collectoin. They must be added in reverse order. For instance, if you have the "explorer layout" like so:
+-+---+
| |   |
| |   |
+-+---+
, you'll want a TreeView, Panel (to further dock additional controls), or some other control set to <cod>DockStyle.Left, then a splitter, then another control with DockStyle.Fill. The order in which these are added are in reverse of how I mentioned them:
Controls.AddRange(new Control[]
{
  panel2,
  splitter1,
  panel1
});
When you add these controls to the designer for the first time (i.e., on a "clean surface"), add them in the order that I first mentioned above. VS.NET automatically adds the most recently added control as the first control in the array above.

Just play around with docking a little bit. Anchoring to opposing sides is also helpful but while docking and anchoring share some behavior in common, they are also used to solve distinct problems (they are most like each other when anchoring against opposing and adjacent sides, but docking can't move a control relative to adjacent sides).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Windows Application Screen Resolution problem Pin
leppie17-Jan-04 7:05
leppie17-Jan-04 7:05 
GeneralRe: Windows Application Screen Resolution problem Pin
je_gonzalez17-Jan-04 8:40
je_gonzalez17-Jan-04 8:40 
GeneralRe: Windows Application Screen Resolution problem Pin
leppie17-Jan-04 9:26
leppie17-Jan-04 9:26 
GeneralRe: Windows Application Screen Resolution problem Pin
je_gonzalez17-Jan-04 9:33
je_gonzalez17-Jan-04 9:33 
QuestionWho can help me about this question? Pin
Feelyn200816-Jan-04 15:24
Feelyn200816-Jan-04 15:24 
AnswerRe: Who can help me about this question? Pin
Colin Angus Mackay16-Jan-04 15:53
Colin Angus Mackay16-Jan-04 15:53 
GeneralRe: Who can help me about this question? Pin
je_gonzalez16-Jan-04 17:02
je_gonzalez16-Jan-04 17:02 
GeneralRe: Who can help me about this question? Pin
Forrest Feather17-Jan-04 9:43
Forrest Feather17-Jan-04 9:43 
AnswerRe: Who can help me about this question? Pin
je_gonzalez16-Jan-04 17:18
je_gonzalez16-Jan-04 17:18 
GeneralRe: Who can help me about this question? Pin
Daniel Turini17-Jan-04 5:03
Daniel Turini17-Jan-04 5:03 
GeneralRe: Who can help me about this question? Pin
je_gonzalez17-Jan-04 8:57
je_gonzalez17-Jan-04 8:57 
GeneralDatagrid and c# Pin
caheo16-Jan-04 14:08
caheo16-Jan-04 14:08 
GeneralRe: Datagrid and c# Pin
Heath Stewart16-Jan-04 19:29
protectorHeath Stewart16-Jan-04 19:29 
QuestionEditboxes show unknown chars as ?? Pin
Anonymous16-Jan-04 14:02
Anonymous16-Jan-04 14:02 
AnswerRe: Editboxes show unknown chars as ?? Pin
LiquidKnight16-Jan-04 14:06
LiquidKnight16-Jan-04 14:06 
AnswerRe: Editboxes show unknown chars as ?? Pin
Heath Stewart16-Jan-04 19:22
protectorHeath Stewart16-Jan-04 19:22 
GeneralGive name to table from stored procedure Pin
laphijia16-Jan-04 8:29
laphijia16-Jan-04 8:29 

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.