rfresh
Active member
- Joined
- Aug 23, 2012
- Messages
- 26
- Programming Experience
- 1-3
I'm trying to programmatic ally change one of the row SizeType properties on my tableLayoutPanel component.
I'm getting the following error:
System.Windows.Forms.TableLayoutRowStyleCollection' does not contain a definition for 'SizeType'
on the .SizeType in line 2 below.
I have this declared at the top of my form:
using System.Windows.Forms.Layout;
I'm not sure what I am still missing?
Thanks for any help.
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
	
		
			
		
		
	
				
			I'm getting the following error:
System.Windows.Forms.TableLayoutRowStyleCollection' does not contain a definition for 'SizeType'
on the .SizeType in line 2 below.
I have this declared at the top of my form:
using System.Windows.Forms.Layout;
I'm not sure what I am still missing?
Thanks for any help.
			
				C#:
			
		
		
		        private void label2_Click(object sender, EventArgs e)
        {
1            TableLayoutRowStyleCollection styles = this.tableLayoutPanel.RowStyles;
2            styles.SizeType = SizeType.Absolute;
        } 
	 
 
		 
 
		 
 
		 
 
		