Click here to Skip to main content
15,912,329 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding and removing differences from List compared to another list Pin
#realJSOP1-Feb-10 23:22
professional#realJSOP1-Feb-10 23:22 
Questionsql instances and a deuced connection Pin
reza assar1-Feb-10 10:27
reza assar1-Feb-10 10:27 
AnswerRe: sql instances and a deuced connection Pin
Rutvik Dave1-Feb-10 10:39
professionalRutvik Dave1-Feb-10 10:39 
QuestionC1Flexgrid datetime picker background color Pin
Member 13252301-Feb-10 10:26
Member 13252301-Feb-10 10:26 
Questionsetup and deployment Pin
reza assar1-Feb-10 10:15
reza assar1-Feb-10 10:15 
QuestionHow to hide a network connection from the user and run that connection using C# code Pin
CoderForEver1-Feb-10 9:29
CoderForEver1-Feb-10 9:29 
AnswerRe: How to hide a network connection from the user and run that connection using C# code Pin
PIEBALDconsult1-Feb-10 15:07
mvePIEBALDconsult1-Feb-10 15:07 
GeneralRe: How to hide a network connection from the user and run that connection using C# code Pin
CoderForEver1-Feb-10 19:05
CoderForEver1-Feb-10 19:05 
QuestionWhich ones are free databases? Pin
Aseem Sharma1-Feb-10 5:40
Aseem Sharma1-Feb-10 5:40 
AnswerRe: Which ones are free databases? [modified] Pin
Covean1-Feb-10 5:49
Covean1-Feb-10 5:49 
GeneralRe: Which ones are free databases? Pin
vivasaayi1-Feb-10 6:47
vivasaayi1-Feb-10 6:47 
AnswerRe: Which ones are free databases? Pin
PIEBALDconsult1-Feb-10 8:13
mvePIEBALDconsult1-Feb-10 8:13 
GeneralRe: Which ones are free databases? Pin
Luc Pattyn1-Feb-10 8:15
sitebuilderLuc Pattyn1-Feb-10 8:15 
AnswerRe: Which ones are free databases? Pin
Daniel Grunwald1-Feb-10 23:02
Daniel Grunwald1-Feb-10 23:02 
QuestionHide row in Tablelayoutpanel in c# Pin
anoopkamboj1-Feb-10 4:36
anoopkamboj1-Feb-10 4:36 
AnswerRe: Hide row in Tablelayoutpanel in c# Pin
Not Active1-Feb-10 4:40
mentorNot Active1-Feb-10 4:40 
AnswerRe: Hide row in Tablelayoutpanel in c# Pin
Dave Kreskowiak1-Feb-10 6:15
mveDave Kreskowiak1-Feb-10 6:15 
AnswerRe: Hide row in Tablelayoutpanel in c# [modified] Pin
Gerry Schmitz1-Feb-10 12:19
mveGerry Schmitz1-Feb-10 12:19 
Use SizeType.Absolute with a value of 0F (for the RowStyle) to hide a particular row. For example, if you had 3 rows and wanted to alternately hide and show the middle row, you could use the following:

// Hide middle row.
this.tableLayoutPanel1.RowStyles[ 0 ] = new RowStyle( SizeType.Percent, 50f );
this.tableLayoutPanel1.RowStyles[ 1 ] = new RowStyle( SizeType.Absolute, 0F );
this.tableLayoutPanel1.RowStyles[ 2 ] = new RowStyle( SizeType.Percent, 50F );

// Show middle row.
this.tableLayoutPanel1.RowStyles[ 0 ] = new RowStyle( SizeType.Percent, 20f );
this.tableLayoutPanel1.RowStyles[ 1 ] = new RowStyle( SizeType.Percent, 20F );
this.tableLayoutPanel1.RowStyles[ 2 ] = new RowStyle( SizeType.Percent, 20F );

(Note that the "Percent" styles don't actually need to add to 100. The individual values are relative to the "total" of all the percents, so each row in the end winds up using 1/3 of the panel).

(Also, you should group the controls on the "hidden row" in some way so you can collectively disable them so they don't get focus when hidden via tabbing).

modified on Monday, February 1, 2010 6:26 PM

QuestionLanguage of ColorDialog(ColorEditor) and FontDialog in PropertyGrid [modified] Pin
akamper1-Feb-10 3:30
akamper1-Feb-10 3:30 
QuestionSSHA how to encode a string in C#. Pin
AWriter1-Feb-10 2:35
AWriter1-Feb-10 2:35 
AnswerRe: SSHA how to encode a string in C#. Pin
Not Active1-Feb-10 3:53
mentorNot Active1-Feb-10 3:53 
AnswerRe: SSHA how to encode a string in C#. Pin
AWriter1-Feb-10 5:52
AWriter1-Feb-10 5:52 
GeneralRe: SSHA how to encode a string in C#. Pin
Garth J Lancaster1-Feb-10 10:30
professionalGarth J Lancaster1-Feb-10 10:30 
GeneralRe: SSHA how to encode a string in C#. Pin
AWriter1-Feb-10 21:17
AWriter1-Feb-10 21:17 
GeneralRe: SSHA how to encode a string in C#. Pin
Garth J Lancaster2-Feb-10 0:20
professionalGarth J Lancaster2-Feb-10 0:20 

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.