1. How can I add a new column
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "ColumnName" End With |
2. How can I add multiple columns
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True With .Columns .Add "Column 1" .Add "Column 2" End With End With |
3. How can I change/rename the column's name
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("ColumnName").Caption = "NewName"
End With
|
4. How can I use HTML format in column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> <fgcolor=0000FF>Col</fgcolor>umn"
End With
|
5. How can I insert an icon to column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add("ColumnName").HeaderImage = 1
End With
|
6. How can I insert an icon to column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> Column <img>1</img> Icon"
End With
|
7. Can I displays a custom size picture to column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.set_HTMLPicture("pic1","c:\exontrol\images\zipdisk.gif")
.HeaderHeight = 48
.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> Column <img>pic1</img> Picture"
End With
|
8. Is there any option to align the header to the left and the data to the right
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Left").Alignment = EXCOMBOBOXLib.AlignmentEnum.LeftAlignment
With .Columns.Add("Right")
.Alignment = EXCOMBOBOXLib.AlignmentEnum.RightAlignment
.HeaderAlignment = EXCOMBOBOXLib.AlignmentEnum.RightAlignment
End With
With .Items
.CellCaption(.AddItem("left"),1) = "right"
End With
End With
|
9. Can I disable sorting a column, when the user clicks the column's header, or drag it to the sort bar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Unsortable").AllowSort = False
.Columns.Add "Sortable"
End With
|
10. How can I hide the searching column
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .MarkSearchColumn = False .Columns.Add "Column 1" .Columns.Add "Column 2" .Items.AddItem End With |
11. How can I show or hide a column
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Hidden").Visible = False
End With
|
12. How can I change the column's width
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.ColumnAutoResize = False
.Columns.Add("Column 1").Width = 64
.Columns.Add("Column 2").Width = 128
End With
|
13. How can I show both scrollbars
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
14. How can I assign checkboxes for the entire column
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
.Items.AddItem 0
.Items.AddItem 1
.Items.AddItem 2
End With
|
15. How can I assign a check box for a cell
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column 1" With .Items .AddItem 0 .CellHasCheckBox(.AddItem(1),0) = True .AddItem 2 End With End With |
16. How can I assign a different background color for the entire column
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.MarkSearchColumn = False
.Columns.Add("Column 1").Def(EXCOMBOBOXLib.DefColumnEnum.exCellBackColor) = 255
.Columns.Add "Column 2"
.Items.AddItem 0
.Items.AddItem 1
.Items.AddItem 2
End With
|
17. How can I show the control's grid lines
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .MarkSearchColumn = False .DrawGridLines = EXCOMBOBOXLib.GridLinesEnum.exAllLines .Columns.Add "Column 1" .Columns.Add "Column 2" .Items.AddItem 0 .Items.AddItem 1 .Items.AddItem 2 End With |
18. How can I draw grid lines only for visible items
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .MarkSearchColumn = False .DrawGridLines = -2 .Columns.Add "Column 1" .Columns.Add "Column 2" .Items.AddItem 0 .Items.AddItem 1 .Items.AddItem 2 End With |
19. Can I display multiple icons to the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.Columns.Add("Column 1").HTMLCaption = "1<img>1</img> 2 <img>2</img>..."
End With
|
20. Can I change the height of the header bar
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .HeaderHeight = 32 End With |
21. Can I change the font to display the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.HeaderHeight = 34
.Columns.Add("Column 1").HTMLCaption = "<font Tahoma;14>Column</font> 1"
End With
|
22. Is there any option to change the color for the grid lines
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "" .DrawGridLines = EXCOMBOBOXLib.GridLinesEnum.exAllLines End With |
23. Does your control support partial-check ( three states ) feature for each column
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
With .Columns.Add("P1")
.Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
.PartialCheck = True
End With
With .Columns.Add("P2")
.Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
.PartialCheck = True
End With
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
End With
End With
|
24. Why child items are not shown
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.Columns.Add "Column 1"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
End With
End With
|
25. Is there any option to bold the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HeaderBold = True
End With
|
26. How can I bold only a portion of the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HTMLCaption = "<b>Col</b>umn 1"
End With
|
27. Is there any option to make italic the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HeaderItalic = True
End With
|
28. How can I apply an italic font only a portion of the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HTMLCaption = "<i>Col</i>umn 1"
End With
|
29. How can I underline the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HeaderUnderline = True
End With
|
30. How can I get underlined only a portion of column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HTMLCaption = "<u>Col</u>umn 1"
End With
|
31. How can I apply an strikeout font only a portion of the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HTMLCaption = "<s>Col</s>umn 1"
End With
|
32. Can I make strikeout the column's header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column 1").HeaderStrikeOut = True
End With
|
33. How can I change the position of the column
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add "Column 1"
.Columns.Add("Column 2").Position = 0
End With
|
34. How do I change the "All", "Blanks" or/and "NonBlanks" caption in the drop down filter window
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column").DisplayFilterButton = True
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAll,"new name for (All)")
End With
|
35. Can I remove the "All", "Blanks" and "NonBlanks" items in the drop down filter window
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column").DisplayFilterButton = True
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAll,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarBlanks,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarNonBlanks,"")
End With
|
36. How can I change the "Filter For" caption in the column's drop down filter window
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column").DisplayFilterButton = True
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarFilterForCaption,"new caption")
End With
|
37. Is there any option to remove the tooltip when the cursor hovers the column's drop down filter window
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("Column").DisplayFilterButton = True
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarFilterTitle,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarPatternFilterTitle,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarTooltip,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarPatternTooltip,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarFilterForTooltip,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDateTooltip,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDateTitle,"")
End With
|
38. The "IsBlank" caption shown in the control's filterbar when I select "Blanks" or "NonBlanks" items in the column's drop down filter window
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarIsBlank,"Is Empty")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarIsNonBlank,"Is Not Empty")
.ApplyFilter
End With
|
39. Can I change the AND string in the filter bar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column 1")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
With .Columns.Add("Column 2")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exNonBlanks
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAnd," & ")
.ApplyFilter
End With
|
40. Can I change the OR string in the filter bar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column 1")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
With .Columns.Add("Column 2")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exNonBlanks
End With
.FilterCriteria = "%0 or %1"
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarOr," | ")
.ApplyFilter
End With
|
41. Can I change the NOT string in the filter bar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column 1")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
With .Columns.Add("Column 2")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exNonBlanks
End With
.FilterCriteria = "not %0 or %1"
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarNot," ! ")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarIsNonBlank," ! IsBlank")
.ApplyFilter
End With
|
42. Can I filter for values using OR - NOT , instead AND operator
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column 1")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
With .Columns.Add("Column 2")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
With .Columns.Add("Column 3")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.FilterCriteria = "%0 or not %1 and %2"
.ApplyFilter
End With
|
43. Can I change the "Date:" caption when the column's drop down filter window is shown
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDate,"Range")
.ApplyFilter
End With
|
44. How can I filter the items that are between an interval/range of dates
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
.ApplyFilter
End With
|
45. The drop down filter window displays a "to" string between two datem when I filter dates. Can I change that
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDateTo,"->")
.ApplyFilter
End With
|
46. Can I change the "Today" caption being displayed in the drop down calendar, when I filter for dates
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDateTodayCaption,"Azi")
.ApplyFilter
End With
|
47. How can I change the name of the months in the drop down calendar window, being displayed when I filter items between dates
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDateMonths,"Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre")
.ApplyFilter
End With
|
48. How can I change the name of the week days in the drop down calendar window, being displayed when I filter items between dates
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarDateWeekDays,"Du Lu Ma Mi Jo Vi Si")
.ApplyFilter
End With
|
49. How can I change the "Checked" caption in the drop down filter window, when I filter for checked items
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exCheck
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarChecked,"with check on")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarUnchecked,"with check off")
End With
|
50. How can I change the "IsChecked/IsUnchecked" caption in the control's filter bar, when I filter for checked items
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exCheck
.Filter = 0
End With
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarIsChecked,"Check_On")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarIsUnchecked,"Check_Off")
.ApplyFilter
End With
|
51. How do I change visual appearance of the +/- ( expand/collapse ) buttons
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.HasButtons = EXCOMBOBOXLib.ExpandButtonEnum.exWPlus
.Columns.Add "Column"
With .Items
h = .AddItem("Root 1")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,0,"Child"
End With
End With
|
52. Can I use my own icons for the +/- ( expand/collapse ) buttons
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.HasButtons = EXCOMBOBOXLib.ExpandButtonEnum.exCustom
.set_HasButtonsCustom(0,1)
.set_HasButtonsCustom(1,2)
.Columns.Add "Column"
With .Items
h = .AddItem("Root 1")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,0,"Child"
End With
End With
|
53. Can I change the style or type for the hierarchy lines
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.HasLines = EXCOMBOBOXLib.HierarchyLineEnum.exThinLine
.Columns.Add "Column"
With .Items
h = .AddItem("Root 1")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,0,"Child"
End With
End With
|
54. Can I hide the hierarchy lines
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.HasLines = EXCOMBOBOXLib.HierarchyLineEnum.exNoLine
.Columns.Add "Column"
With .Items
h = .AddItem("Root 1")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,0,"Child"
End With
End With
|
55. How can I show the control's grid lines only for added/visible items
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .MarkSearchColumn = False .DrawGridLines = -2 .Columns.Add "Column 1" .Columns.Add "Column 2" .Items.AddItem 0 .Items.AddItem 1 .Items.AddItem 2 End With |
56. How can I show only the vertical scroll bar
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .ColumnAutoResize = True .Columns.Add 1 .Columns.Add 2 End With |
57. How can I display the column's filter
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("").DisplayFilterButton = True
End With
|
58. How can I can I select programmatically "Blanks/NonBlanks" option in the column's drop down filter
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
59. How can I can I filter programmatically given a specified pattern using wild characters like * or
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exPattern
.Filter = "0*"
End With
.Items.AddItem 0
.Items.AddItem "00"
.Items.AddItem 1
.Items.AddItem "11"
.ApplyFilter
End With
|
60. How can I can I filter programmatically the items based on a range/interval of dates
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterDate = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exDate
.Filter = "1/1/2001 to 1/1/2002"
End With
.Items.AddItem "1/1/2001"
.Items.AddItem "2/1/2002"
.ApplyFilter
End With
|
61. How can I can I filter programmatically the items based on some numerichal rules
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exNumeric
.Filter = "> 0 <= 1"
End With
.Items.AddItem 0
.Items.AddItem 1
.Items.AddItem 2
.ApplyFilter
End With
|
62. How can I can I programmatically filter the checked items
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exCheck
.Filter = 0
End With
.Items.AddItem 0
With .Items
.CellState(.AddItem(1),0) = 1
End With
.Items.AddItem 2
.ApplyFilter
End With
|
63. How can I can I programmatically filter for items with a specified icon assigned
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exImage
.Filter = 1
End With
With .Items
.CellImage(.AddItem("Image 1"),0) = 1
.CellImage(.AddItem("Image 1"),0) = 1
.CellImage(.AddItem("Image 2"),0) = 2
.CellImage(.AddItem("Image 3"),0) = 3
End With
.ApplyFilter
End With
|
64. How do I filter for items that match exactly the specified string
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exFilter
.Filter = "Item 1"
End With
.Items.AddItem "Item 1"
.Items.AddItem "Item 2"
.Items.AddItem "Item 3"
.ApplyFilter
End With
|
65. Is there any way to get listed only visible items in the drop down filter window
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAll,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarBlanks,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarNonBlanks,"")
With .Columns.Add("P1")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = EXCOMBOBOXLib.FilterListEnum.exVisibleItems
End With
With .Columns.Add("P2")
.DisplayFilterButton = True
.DisplayFilterPattern = False
End With
With .Items
h = .AddItem("R1")
.CellCaption(h,1) = "R2"
.CellCaption(.InsertItem(h,0,"Cell 1.1"),1) = "Cell 1.2"
.CellCaption(.InsertItem(h,0,"Cell 2.1"),1) = "Cell 2.2"
End With
End With
|
66. How can I get ride/hide of the "Filter For" field
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.DisplayFilterPattern = False
End With
End With
|
67. I have a hierarchy and I need to filter only parent items that match, including thier childs
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.FilterInclude = EXCOMBOBOXLib.FilterIncludeEnum.exItemsWithChilds
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exFilter
.Filter = "R1"
End With
With .Items
h = .AddItem("R1")
.InsertItem h,0,"C1"
.InsertItem h,0,"C2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"C1"
.InsertItem h,0,"C2"
End With
.ApplyFilter
End With
|
68. I have a hierarchy and I need to filter only root items that match, without thier childs
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.FilterInclude = EXCOMBOBOXLib.FilterIncludeEnum.exRootsWithoutChilds
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exFilter
.Filter = "R1"
End With
With .Items
h = .AddItem("R1")
.InsertItem h,0,"C1"
.InsertItem h,0,"C2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"C1"
.InsertItem h,0,"C2"
End With
.ApplyFilter
End With
|
69. I have a hierarchy and I need to filter only root items that match, with thier childs
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.FilterInclude = EXCOMBOBOXLib.FilterIncludeEnum.exRootsWithChilds
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exFilter
.Filter = "R1"
End With
With .Items
h = .AddItem("R1")
.InsertItem h,0,"C1"
.InsertItem h,0,"C2"
.ExpandItem(h) = True
h = .AddItem("R2")
.InsertItem h,0,"C1"
.InsertItem h,0,"C2"
End With
.ApplyFilter
End With
|
70. How do I remove the control's border
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Appearance = EXCOMBOBOXLib.AppearanceEnum.None2 End With |
71. How do change the visual appearance for the control's header bar, using EBN
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" End With |
72. How do I hide the control's header bar
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .HeaderVisible = False End With |
73. How do I sort a column by numbers
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("desc").SortType = EXCOMBOBOXLib.SortTypeEnum.SortNumeric
With .Items
.AddItem 1
.AddItem 5
.AddItem 10
.SortChildren 0,0,False
End With
End With
|
74. By default, the column gets sorted as strings, so how do I sort a column by dates
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("desc").SortType = EXCOMBOBOXLib.SortTypeEnum.SortDate
With .Items
.AddItem "1/1/2001"
.AddItem "1/2/2002"
.AddItem "1/3/2003"
.SortChildren 0,0,False
End With
End With
|
75. By default, the column gets sorted as strings, so how do I sort a column by date and time
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("desc").SortType = EXCOMBOBOXLib.SortTypeEnum.SortDateTime
With .Items
.AddItem "1/1/2001 11:00"
.AddItem "1/1/2001 10:10"
.AddItem "1/3/2003"
.SortChildren 0,0,False
End With
End With
|
76. By default, the column gets sorted as strings, so how do I sort a column by time only
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("desc").SortType = EXCOMBOBOXLib.SortTypeEnum.SortTime
With .Items
.AddItem "11:00"
.AddItem "10:10"
.AddItem "12:12"
.SortChildren 0,0,False
End With
End With
|
77. How do I perform my own/custom sort, using my extra numbers
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("desc").SortType = EXCOMBOBOXLib.SortTypeEnum.SortUserData
With .Items
.CellData(.AddItem(0),0) = 2
.CellData(.AddItem(1),0) = 1
.CellData(.AddItem(2),0) = 0
.SortChildren 0,0,False
End With
End With
|
78. How do I perform my own/custom sort, using my extra strings
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add("desc").SortType = EXCOMBOBOXLib.SortTypeEnum.SortUserData
With .Items
.CellData(.AddItem("A"),0) = "C"
.CellData(.AddItem("B"),0) = "B"
.CellData(.AddItem("C"),0) = "A"
.SortChildren 0,0,False
End With
End With
|
79. How do I sort ascending a column, and put the sorting icon in the column's header
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column" With .Items .AddItem "Item 3" .AddItem "Item 1" .AddItem "Item 2" End With .Columns.Item(0).SortOrder = EXCOMBOBOXLib.SortOrderEnum.SortAscending End With |
80. How do I sort descending a column, and put the sorting icon in the column's header
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column" With .Items .AddItem "Item 1" .AddItem "Item 2" .AddItem "Item 3" End With .Columns.Item(0).SortOrder = EXCOMBOBOXLib.SortOrderEnum.SortDescending End With |
81. How do I put a picture on the control's background
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
82. How do I put a picture on the control's left top corner
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
83. How do I put a picture on the control's right top corner
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
84. How do I put a picture on the control's center top side
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
85. How do I put a picture on the control's center left bottom side
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
86. How do I put a picture on the control's center right bottom side
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
87. How do I resize/stretch a picture on the control's background
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
88. How do I put a picture on the center of the control
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True End With |
89. How do I disable sorting the columns when clicking the control's header
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .SortOnClick = EXCOMBOBOXLib.SortOnClickEnum.exNoSort .Columns.Add "1" .Columns.Add "2" End With |
90. How do I disable sorting a specified column when clicking its header
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add "1"
.Columns.Add("NoSort").AllowSort = False
End With
|
91. How do I perform my own sorting when user clicks the column's header
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .SortOnClick = EXCOMBOBOXLib.SortOnClickEnum.exUserSort .Columns.Add "Column" .Items.AddItem "Item 1" .Items.AddItem "Item 2" End With |
92. How do I use my own icons for checkbox cells
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.set_CheckImage(EXCOMBOBOXLib.CheckStateEnum.Unchecked,1)
.set_CheckImage(EXCOMBOBOXLib.CheckStateEnum.Checked,2)
.Columns.Add("Check").Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
With .Items
.AddItem "Check 1"
.CellState(.AddItem("Check 2"),0) = 1
End With
End With
|
93. How do I use my own icons for my radio buttons
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0" & _
"/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1" & _
"/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qO" & _
"x3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
.set_RadioImage(0,1)
.set_RadioImage(1,2)
.Columns.Add("Radio").Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasRadioButton) = True
With .Items
.AddItem "Radio 1"
.CellState(.AddItem("Radio 2"),0) = 1
.AddItem "Radio 3"
End With
End With
|
94. How do I change the control's background color
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .BackColor = Color.FromArgb(200,200,200) End With |
95. How do I change the control's foreground color
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .ForeColor = Color.FromArgb(120,120,120) .Columns.Add "Column" .Items.AddItem "item" End With |
96. How do I change the control's background / foreground color on the locked area
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.CountLockedColumns = 1
.ForeColorLock = Color.FromArgb(240,240,240)
.BackColorLock = Color.FromArgb(128,128,128)
.ColumnAutoResize = False
.Columns.Add("Locked").Width = 128
.Columns.Add("Un-Locked 1").Width = 128
.Columns.Add("Un-Locked 2").Width = 128
.Columns.Add("Un-Locked 3").Width = 128
With .Items
.CellCaption(.AddItem("locked"),1) = "unlocked"
End With
End With
|
97. How do lock / fix some columns to the control, so I can see them all the time, event if I scroll the columns
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.CountLockedColumns = 1
.BackColorLock = Color.FromArgb(240,240,240)
.ColumnAutoResize = False
.Columns.Add("Locked").Width = 128
.Columns.Add("Un-Locked 1").Width = 128
.Columns.Add("Un-Locked 2").Width = 128
.Columns.Add("Un-Locked 3").Width = 128
With .Items
.CellCaption(.AddItem("locked"),1) = "unlocked"
End With
End With
|
98. Is there any option to specify the height of the items, before adding them
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .DefaultItemHeight = 32 .Columns.Add "Column" .Items.AddItem "One" .Items.AddItem "Two" End With |
99. How do I disable the full-row selection in the control
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .FullRowSelect = False .Columns.Add "Column" .Items.AddItem "One" .Items.AddItem "Two" End With |
100. How can I programmatically change the column where incremental searching is performed
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.Columns.Add "Column 1"
.Columns.Add "Column 2"
With .Items
.CellCaption(.AddItem("Item 1"),1) = "SubItem 1"
End With
.SearchColumnIndex = 1
End With
|
101. How can I enable multiple items selection
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column" .Items.AddItem 0 .Items.AddItem 1 .Items.AddItem 2 End With |
102. How can I scroll columns one by one, not pixel by pixel
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.ColumnAutoResize = False
.Columns.Add("1").Width = 128
.Columns.Add("2").Width = 128
.Columns.Add("3").Width = 128
.Columns.Add("4").Width = 128
.Columns.Add("5").Width = 128
End With
|
103. I have FullRowSelect property on False, how do I select a column
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .FullRowSelect = False End With |
104. How do I edit a cell
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column" .Items.AddItem "Item 1" .Items.AddItem "Item 2" End With |
105. Is there any option to select an item using the right button of the mouse (rclick)
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column" .Items.AddItem "Item 1" .Items.AddItem "Item 2" End With |
106. How do I specify the indentation of the child items relative to their parents
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.Indent = 11
.Columns.Add "Column"
With .Items
h = .AddItem("Root 1")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem h,0,"Child"
End With
End With
|
107. How do I specify the column where the tree lines / hierarchy are shown
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.TreeColumnIndex = 1
.Columns.Add "Column 1"
.Columns.Add "Column 2"
With .Items
h = .AddItem("Root 1.1")
.CellCaption(h,1) = "Root 1.2"
.CellCaption(.InsertItem(h,0,"Child 1.1"),1) = "Child 1.2"
.CellCaption(.InsertItem(h,0,"Child 2.1"),1) = "Child 2.2"
.ExpandItem(h) = True
h = .AddItem("Root 2.1")
.CellCaption(h,1) = "Root 2.2"
.CellCaption(.InsertItem(h,0,"Child 1.1"),1) = "Child 1.2"
End With
End With
|
108. I can't scroll to the end of the data. What can I do
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .ScrollBySingleLine = True .DrawGridLines = -2 .Columns.Add "Column" With .Items .ItemHeight(.AddItem(0)) = 13 End With With .Items .ItemHeight(.AddItem(1)) = 26 End With With .Items .ItemHeight(.AddItem(2)) = 36 End With With .Items .ItemHeight(.AddItem(3)) = 48 End With End With |
109. How can I change the control's font
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Font.Name = "Tahoma" .Columns.Add "Column" End With |
110. How do I get ride of the rectangle arround focused item
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .ShowFocusRect = False .Columns.Add "Column" .Items.AddItem 0 .Items.AddItem 1 End With |
111. How do I change the colors for the selected item
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .SelBackColor = Color.FromArgb(0,0,0) .Columns.Add "Column" .Items.AddItem 0 .Items.AddItem 1 End With |
112. How do I change the visual appearance effect for the selected item, using EBN
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" .GetOcx().SelBackColor = &H1000000 .SelForeColor = Color.FromArgb(0,0,0) .ShowFocusRect = False .Columns.Add "Column" .Items.AddItem 0 .Items.AddItem 1 End With |
113. How do I assign a database to your control, using ADO, ADOR or ADODB objects
| Visual Basic / NET |
|---|
Dim rs
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.ColumnAutoResize = False
rs = CreateObject("ADOR.Recordset")
With rs
.Open "Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Exontrol\ExTree\Sample\VB\SAMPLE." & _
"MDB",3,3
End With
.DataSource = rs
End With
|
114. I have FullRowSelect property on False, how do I force the user to select cells only in a specified column
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FullRowSelect = False
.Columns.Add "Column 1"
.Columns.Add "Column 2"
With .Items
.CellCaption(.AddItem("Item 1"),1) = "SubItem 1"
End With
End With
|
115. It seems that the control uses the TAB key, is there any way to avoid that
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .UseTabKey = False End With |
116. I have a picture on the control's background, the question is how do I draw selection as semi-transparent
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column" .Items.AddItem "Item 1" .Items.AddItem "Item 2" End With |
117. How do I change the header's foreground color
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Columns.Add "Column 1" .Columns.Add "Column 2" .Items.AddItem "Item 1" End With |
118. How do select only a portion of text when the control starts editing a cell
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .SelStart = 1 .SelLength = 1 .Columns.Add "Column" .Items.AddItem "Item 1" .Items.AddItem "Item 2" End With |
119. How do I change the height of the control's filterbar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FilterBarHeight = 32
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
120. How do I change the foreground color of the control's filterbar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FilterBarForeColor = Color.FromArgb(255,0,0)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
121. How do I change the background color of the control's filterbar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FilterBarBackColor = Color.FromArgb(240,240,240)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
122. Can I apply an EBN skin to the control's filter bar so I can change its visual appearance
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn"
.GetOcx().FilterBarBackColor = &H1000000
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
123. How do I change the font of the control's filterbar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FilterBarFont.Size = 20
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
124. How do I filter programatically the control
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exPattern
.Filter = "Item*"
End With
.Items.AddItem "Item 1"
.Items.AddItem ""
.Items.AddItem "Item 2"
.ApplyFilter
End With
|
125. How do I enlarge the drop down filter window
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FilterBarDropDownHeight = "-320"
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterBarDropDownWidth = "-320"
End With
.Items.AddItem "Item 1"
.Items.AddItem "Item 2"
End With
|
126. How do I show alternate rows in different background color
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .BackColorAlternate = Color.FromArgb(240,240,240) .Columns.Add "Column" With .Items .AddItem "Item 1" .AddItem "Item 2" .AddItem "Item 3" .AddItem "Item 4" .AddItem "Item 5" End With End With |
127. How do I call your x-script language
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Template = "Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`" End With |
128. How do I call your x-script language
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
With .ExecuteTemplate("Columns.Add(`Column`)")
.HeaderStrikeOut = True
.HeaderBold = True
End With
End With
|
129. How do I enable the incremental search feature within a column
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.AutoSearch = True
With .Columns
.Add("exStartWith").AutoSearch = EXCOMBOBOXLib.AutoSearchEnum.exStartWith
.Add("exContains").AutoSearch = EXCOMBOBOXLib.AutoSearchEnum.exContains
End With
With .Items
.CellCaption(.AddItem("text"),1) = "another text"
End With
With .Items
.CellCaption(.AddItem("text"),1) = "another text"
End With
End With
|
130. How do I disable the control
| Visual Basic / NET |
|---|
With AxComboBox1 .MinHeightList = 304 .ColumnAutoResize = True .Enabled = False End With |
131. How do I search case sensitive, using your incremental search feature
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.AutoSearch = True
.ASCIILower = ""
With .Columns
.Add("exStartWith").AutoSearch = EXCOMBOBOXLib.AutoSearchEnum.exStartWith
.Add("exContains").AutoSearch = EXCOMBOBOXLib.AutoSearchEnum.exContains
End With
With .Items
.CellCaption(.AddItem("text"),1) = "another text"
End With
With .Items
.CellCaption(.AddItem("text"),1) = "another text"
End With
End With
|
132. How do I disable expanding or collapsing an item when user double clicks it
| Visual Basic / NET |
|---|
Dim h
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.Indent = 13
.Columns.Add "Column 1"
With .Items
h = .AddItem("Root")
.InsertItem h,0,"Child 1"
.InsertItem h,0,"Child 2"
.ExpandItem(h) = True
End With
End With
|
133. How do I change the caption being displayed in the control's filter bar
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.FilterBarCaption = "your filter caption"
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter
End With
|
134. How do I show the tooltip quicker
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.ToolTipDelay = 1
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
135. How do I let the tooltip being displayed longer
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.ToolTipPopDelay = 10000
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
136. How do I disable showing the tooltip for all control
| Visual Basic / NET |
|---|
With AxComboBox1
.MinHeightList = 304
.ColumnAutoResize = True
.ToolTipDelay = 0
.Columns.Add("t |