![]()  | 
 
TabControl and VSFlexGrid | 
 
    Post Reply  
   | 
  
| Author | |
   
   Albert1  
   
   Groupie  
   Joined: 01 February 2007 Location: Italy Status: Offline Points: 66  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: TabControl and VSFlexGridPosted: 26 March 2007 at 11:59am  | 
 
| 
   
    
   Hello, 
   
  I get a strange behavior with ComponentOne VSFlexGrid located inside a TabControl. To simulate (VB6 environment) I use a Form with a TabControl, a TextBox and a C1 vsFlexGrid. This is the code: 
 When I run the code, it seems all is working good. When (at run time) I select the second Tab and, simply, click on the vsflexgrid, the child loose its autoresize and shows itself with the original positions and dimensions (top, left, with, height) becoming useless. Someone has found any trick? Thx  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 March 2007 at 1:18am | 
 
| 
   
    Hi, 
You can put VSFlexGrid  to TabControl in design time (for 10.4.* version) or you can put VSFlexGrid   to PictureBox and use this picturebox in InsertItem  call. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   Albert1  
   
   Groupie  
   Joined: 01 February 2007 Location: Italy Status: Offline Points: 66  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 March 2007 at 3:03am | 
 
| 
   
    
   Hi Oleg and thx for the reply.  
   
  I'm using 10.4.2 but I wish to setup layout at run-time. Following your suggestions I created a container for vsFlexGrid. To get all automated (no resize event in a picturebox) I used the Component1 container (C1Elastic) 
 I noticed VSFlexGrid is the only one component that do not resize correctly. For example I tried C1 TrueDBGrid1 and all is OK. Thank you  | 
 |
![]()  | 
 |
   
   Albert1  
   
   Groupie  
   Joined: 01 February 2007 Location: Italy Status: Offline Points: 66  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 March 2007 at 8:54am | 
 
| 
   
    
   I have found another control (I use) that does not autoresize correctly in TabControl. The name of the control is Text Control (from The Imaging Source Europe Gmbh). 
   
  So I have to use Component1 Elastic Control to be sure the client will automatically fit the tab area. I would like to suggest (Codejock) to modify the TabControlPage control to do this job and behave (partially) as C1 Elastic (IMHO).  | 
 |
![]()  | 
 |
   
   yair-edsoft  
   
   Newbie  
   Joined: 14 April 2007 Location: Israel Status: Offline Points: 14  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 14 April 2007 at 11:52am | 
 
| 
   
    Hi, add the Flex Grid to Picture Box it Will Resolve the Problem. 
You can add (in the Picture Box) the C1Elatstic inside the picturebox and then the FlexGrid , in Case u have problems with the resize Event. 
    | 
 |
| 
   
     
     yair
     
   
   | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |