I spent a lot of time to solve this problem but it seem to worst.First time I have been tried to crated an ActiveX control and then laid down a ComboBox to the UserControl area.When ActiveX control have set to Flat style my program will set the inner combo's size more larger than UserControl's size that will make it seem to not have border. It's seem to OK, but the problem of use ActiveX control that is VB does not support to create a lot of Dynamic ActiveX Controls.When I try to do like:
Dim i As Integer
On Error GoTo trap
For i = 1 To 1000
_"control" & i
If Err.Number = 743 Then
Debug.Print "Error 743 loading control #" & i
program will come to error.I found something about Error 743 at
It tell me that VB cannot do like that.However I must do somethings like laying down a lot of controls,because my work is creating an ActiveX Control that is like a SpreadSheet which can insert a control(Combo, CheckBox, CommandButton) in to each cell.
If I use an ActiveX control and let it's appearance to Flat Style I will cannot put a lot of Controls in to my SpreadSheet, so I try to use MSWLess.ocx as Microsoft's instruction but I don't know how to set WLCombo in to Flat Style. Have any API function that can do that.
I don't know why Microsoft had been protect Appearance Property of ComboBox,that is not not enough,there are a lot of things in VB ,for example trap an event,also confuse and have no encapsulation.If we solve those problems we must use API Functions and Messaging that will can make the program have a lot of mistake.
However,Would you like to tell me about Setting ComboBox to Flat style(especially WLCombo)?