Content Supported by Sourcelens Consulting
VERSION 5.00
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form frmHFlex
Caption = "Hierarchical FlexGrid Bound to Shape (No Editing)"
ClientHeight = 4710
ClientLeft = 570
ClientTop = 6885
ClientWidth = 6555
LinkTopic = "Form1"
ScaleHeight = 4710
ScaleWidth = 6555
Begin VB.CommandButton cmdBind
Caption = "Bind Control to Data Environment"
Height = 330
Left = 90
TabIndex = 0
Top = 75
Width = 4725
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid hfxDE
Height = 3450
Left = 75
TabIndex = 1
Top = 570
Width = 6360
_ExtentX = 11218
_ExtentY = 6085
_Version = 393216
_NumberOfBands = 1
_Band(0).Cols = 2
End
End
Attribute VB_Name = "frmHFlex"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdBind_Click()
ReShape
Me.MousePointer = vbHourglass
With hfxDE
.DataMember = "Customers"
Set .DataSource = deNwind
End With
Me.MousePointer = vbDefault
End Sub
Private Sub Form_Resize()
With hfxDE
.Width = frmHFlex.Width - 300
.Height = frmHFlex.Height - hfxDE.Top - 500
End With
End Sub