Article ID: 170162
Article Last Modified on 5/13/2003
Dim WithEvents x as VBControlExtender
Private Sub Form_Load ()
Set x = Controls.Add ("Project1.Usercontrol1", "XX")
x.Visible = True
End Sub
object.ColWordWrapOption (Index) = integer
Part Description
----------------------------------------------------
object An object expression that evaluates to a Hierarchical
FlexGrid control.
Index Long. The number of the column to get or set word wrap
on. The value must be in the range of -1 to Cols - 1.
Setting this value to -1 selects all columns.
integer A numeric expression that determines how words will wrap,
as shown in settings.
object.ColWordWrapOptionBand (BandNumber, BandColIndex) = integer
Part Description
----------------------------------------------------
object An object expression that evaluates to a Hierarchical
FlexGrid control.
BandNumber Long. The number of the band to get or set word wrap on.
The value must be in the range of 0 to Bands - 1.
BandColIndex Long. The number of the column to get or set word wrap
on. This optional parameter defaults to -1, indicating
all columns in the band. Valid values are -1 to Cols -1.
integer A numeric expression that determines how words will wrap,
as shown in settings.
object.ColWordWrapOptionBand (BandNumber, BandColIndex) = integer
Part Description
---------------------------------------------------------------
object An object expression that evaluates to a
Hierarchical FlexGrid control.
BandNumber Long. The number of the band to get or set
word wrap on. The value must be in the range
of 0 to Bands - 1.
BandColIndex Long. The number of the column to get or set
word wrap on. This optional parameter
defaults to -1, indicating all columns in the
band. Valid values are -1 to Cols -1.
integer A numeric expression that determines how
words will wrap, as shown in settings.
object.ColWordWrapOptionFixed(index) = integer
Part Description
----------------------------------------------------
object An object expression that evaluates to a Hierarchical
FlexGrid control.
index Long. The number of the column to get/set word wrap on.
This optional parameter defaults to -1. Valid values are
-1 to Cols -1.
Integer A numeric expression that determines how words will wrap,
as shown in settings.
object.ColWordWrapOptionFixed(index) = integerThe ColWordWrapOptionFixed property syntax has these parts:
Part Description
------------------------------------------------------------------
object An object expression that evaluates to a
Hierarchical FlexGrid control.
index Long. The number of the column to get/set
word wrap on. This optional parameter
defaults to -1. Valid values are -1 to Cols
-1.
integer A numeric expression that determines how
words will wrap, as shown in settings.
object.ColWordWrapOptionHeader(BandNumber, BandColIndex) = integerThe ColWordWrapOptionHeader property syntax has these parts:
Part Description
--------------------------------------------------------------------
object An object expression that evaluates to a
Hierarchical FlexGrid control.
BandNumber Long. The number of the band to get/set word
wrap on. The value must be in the range of 0
to Bands - 1.
BandColIndex Long. The number of the column to get/set
word wrap on. This optional parameter
defaults to -1 indicating all column headers
in the band. Valid values are -1 to Cols -1.
integer A numeric expression that determines how
words will wrap, as shown in settings.
Constant Value Description
------------------------------------------------------------
flexSingleLine 0 (Default) Displays text on a
single line only.
flexWordBreak 1 The lines are automatically
broken between words.
flexWordEllipsis 2 Truncates text that does not
fit in the rectangle and adds
ellipsis.
flexWordBreakEllip 3 Breaks words between lines and
sis adds ellipsis if text doesn't
fit in the rectangle.
With MSHFlexGrid1
If .ColIsVisible(1) Then .ColWidth(1) = 0
If .RowIsVisible(1) Then .RowHeight(1) = 0
End With
Constant Value Description
---------------------------------------------------------------
flexGridDashes 4 Dashed Lines. Sets line style
between cells to dashed lines.
flexGridDots 5 Dotted Lines. Sets line style
between cells to dotted lines.
Private Sub Command1_Click()
' Only the current control's Font will be affected.
DataRepeater1.RepeatedControl.FontName = "Courier"
End Sub
Public Property Get FontName() As String
FontName = txtProductName.Font.Name
End Property
Public Property Let FontName(ByVal newFontName As String)
txtProductName.Font.Name = newFontName
End Property
Private Sub Form_Load()
With TabStrip1
.Style = tabFlatButtons
.Separators = True
End With
End Sub
Private Sub DataReport_Error(ByVal JobType As _
MSDataReportLib.AsyncTypeConstants, ByVal Cookie As Long, _
ByVal ErrObj As MSDataReportLib.RptError, ShowError As Boolean)
Select Case ErrObj.ErrorNumber
Case rptErrPrinterInfo ' 8555
MsgBox "A printing error has occurred. " & _
"You may not have a Printer installed."
ShowError = False
Exit Sub
Case Else ' handle other cases here.
ShowError = True
End Select
End Sub
object.SelPrint(lHDC As Long, [vStartDoc])
Part Description
-----------------------------------------------------
object An object expression that evaluates to a
RichTextbox control.
lHDC Long. The device context of the device you
plan to use to print the contents of the
control.
vStartDoc Boolean. Specifies the behavior of the
control regarding startdoc and enddoc printer
control operations, as shown in settings.
Constant Value Description
---------------------------------------------------------------
True -1 (Default) The control retains its
original behavior and sends startdoc
and enddoc commands to the printer.
False 0 The control doesn't send startdoc and
enddoc commands, but sends only
startpage and endpage commands to the
printer.
Constant Value Description
--------------------------------------------------------------
tbrStandard 0 (Default) Standard toolbar.
tbrFlat 1 Flat. The borders of a button
dynamically appear when the cursor
hovers over the button.
Private Sub Form_Load ()
Controls.Add "Excel.Application", "MyExcelApp")
End Sub
MSHFlexGrid1.FontBand(1).Name = "Arial"
Dim ft As New StdFont ft.Name = "Arial" Set MSHFlexGrid1.FontBand(1) = ft
Private Sub DHTMLPage_Load()
ImageList1.ListImages.Add , , LoadPicture("C:\Winnt\winnt.bmp")
End Sub
Private Sub Command1_Click()
If Not TreeView1.Nodes(10).Visible Then
TreeView1.Nodes(10).EnsureVisible
End If
End Sub
170164
: INFO: VB 6.0 Readme Part 1: Important Issues - Read First!
170163
: INFO: VB 6.0 Readme Part 2: Data Access/Databinding Issues
170161
: INFO: VB 6.0 Readme Part 4: Language Issues
170160
: INFO: VB 6.0 Readme Part 5: Samples Issues
190046
: INFO: VB 6.0 Readme Part 6: Wizard Issues
170158
: INFO: VB 6.0 Readme Part 7: Error Message Issues
189539
: INFO: VB 6.0 Readme Part 8: WebClass Designer Issues
190249
: INFO: VB 6.0 Readme Part 9: DHTML Page Designer Issues
170154
: INFO: VB 6.0 Readme Part 10: Extensibility Issues
170157
: INFO: VB 6.0 Readme Part 11: Miscellaneous Issues
170156
: INFO: VB 6.0 Readme Part 12: Transaction Server (MTS) Issues
191792
: INFO: VB 6.0 Readme Part 13: Dictionary Object
191791
: INFO: VB 6.0 Readme Part 14: Visual Component Manager
191790
: INFO: VB 6.0 Readme Part 15: Application Performance Explorer
Keywords: kberrmsg kbinfo kbtophit kbpagedesigner kbreadme kbctrl kbdhtml KB170162