Visual Basic Classic
--
Questions
--
Followers
Top Experts
Does anyone know if there are known issues with this dll? Â I'm using version 1.1.0.3.
I would be willing to try a different combobox control if someone could reccomend one. Â I cannot get the vb combobox to work for me. Â It will not dropdown and do autocomplete. Â I cannot get the onchange event to work properly either, which I also need.
Thanks in advance!!
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Other then that I would reccomend a search on www.pscode.com as I am sure there will be something on there you may find of use :) with regards to an auto complete combo box or something to that extent :)
I hope this is of some use to you, just I have not got much time so will wait and see if there are any other replys, other then that I will post back later and have a look around :)
Option Explicit
Private Sub Combo1_Change()
  Debug.Print "Combo1_Change", Combo1.Text
End Sub
Private Sub Combo1_KeyPress(KeyAscii As Integer)
  Dim i         As Long
  Dim iNewStart     As Integer
  Dim strTemp      As String
  'Figure out the string prefix to search for
  If Combo1.SelStart = 0 Then
   strTemp = Combo1.Text & Chr(KeyAscii)
  Else
   strTemp = Left(Combo1.Text, Combo1.SelStart) & Chr(KeyAscii)
  End If
  i = cboFindString(strTemp)
  If i <> -1 Then
   Combo1.Text = Combo1.List(i)
   'Set the text selection appropriately
   'for the suggested match
   Combo1.SelStart = Len(strTemp)
   Combo1.SelLength = Len(Combo1.List(i)) - Len(strTemp)
   KeyAscii = 0
  End If
End Sub
Private Function cboFindString(sFind As String) As Long
  Dim i         As Long
  cboFindString = -1 'default(no match)
  For i = 0 To Combo1.ListCount - 1
   If InStr(1, Combo1.List(i), sFind, vbTextCompare) = 1 Then
     cboFindString = i
     Exit Function
   End If
  Next
End Function
'-------------------------
I use the VbAccelerator ComboBoxEx with SSubTmr6.Dll and I don't have any memory leaks although I did have a problem with Font Picker style crashing. In the version I use here I have removed all the Font/Color/Drive Picker styles. There are bugs or should I say unexpected behaviour in the AutoComplete code so that needed some tweaking. Other than that I have been using the control for 2 years.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Do you have any idea how I can find where it is trying to reference this memory (the area of code)
I use this subclassing in a Suite of over 40 commercial controls and it works great. This DLL is used by many programmers and I doubt there is a problem here. It would more likely be something in the control.
Are you sure thre isn't something else in your project that could be causing this. Try creating a new project with just the ComboEx and SSubTmr6.DLL, populate it with a few items and see if it still has a problem.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
It is probably something else. Â I just can't imagine what would be causing this. Â I've checked to make sure every instance of objects I create are closed and set to nothing when I'm done with them. Â Is there anything else you can think of that would be causing this?
I'm using the onchange event a lot. Â Have you used that any. Â I'm really grasping at straws here. Â I'm sure it is something just small, but I really don't even know where to look.
Thanks for you help so far.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=43911&lngWId=1
I know I suggested pscode.com already but that may help you with regards to the auto complete part :
Also take a look at the search I did :
http://www.pscode.com/vb/scripts/BrowseCategoryOrSearchResults.asp?txtCriteria=combobox&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&lngWId=1&optSort=Alphabetical
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=41733&lngWId=1
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=15080&lngWId=1
If you are not looking specifically for code and you still really want to use a control / component to do this for you with regards to the combo box then please let me know !

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp6/default.aspx
Not sure if doing the udpate will help you at all with regards to the problem you are experiencing with the comctl32.dll and it crashing.
Just a thought though :)
Other then that I will sit back and see what other suggestions are made to try and help you out with your problem. Sorry I cant be of more help / use to you !
However I must admit danaseman's suggestion with regards to trying out a new project and just adding the combobox with minimal coding ie only having the code you require to test to see if it works without anything else that is not required is a good idea !!
Kind regards
Gecko

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Before you begin
 This control is binary compatible and requires that you have comctl32.dll version 4.70 or higher to work. This is usually installed with Internet Explorer 3.x. Control also requires OleGuids.tlb (Only required when editing in VB). Make sure you have these installed before using the control. You can download the required files from the Runtimes section in Resources. Source code is saved in Visual Basic 6.0 and Control is compiled with Visual Basic 6.0 with Service Pack 3 installed.
From this site :
http://www.vbcodemagician.dk/resources/vcdtp.htm
So maybe that will help you with regards to your problem ;)

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
When the button is clicked to open the form, I am doing:
form2.field1 = field1.text
form2.field2 = field2.text
form1.show 1
When the form is activating, I am doing nothing!! Â I've commented out all my code.
When the form is unloaded, I am doing:
unload form2
set form2 = nothing
If I go between form1 and form2 like 5 times, it will crash
Unhandled exception at 0x7178460f in VB6.EXE: 0xC0000005: Access violation reading location 0xffff0435.
This is the value in the call stack that it goes to: >Â Â Â Â Â Â comctl32.dll!7178460f() Â Â Â Â Â Â
This is my entire call stack
>Â Â Â Â Â Â comctl32.dll!7178460f() Â Â Â Â Â Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e152e6()      Â
      USER32.DLL!77e15362()      Â
      SSubTmr6.dll!2e8c4ca7()      Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e14398()      Â
      USER32.DLL!77e14925()      Â
      comctl32.dll!71798328()      Â
      comctl32.dll!7179839c()      Â
      comctl32.dll!717987a9()      Â
      comctl32.dll!71796b29()      Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e152e6()      Â
      USER32.DLL!77e15362()      Â
      SSubTmr6.dll!2e8c4ca7()      Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e14764()      Â
      USER32.DLL!77e15a40()      Â
      NTDLL.DLL!77fa15ef()      Â
      MSVBVM60.DLL!66102f01()      Â
      MSVBVM60.DLL!66051fb3()      Â
      vbalCbEx6.ocx!25a42880()      Â
      MSVBVM60.DLL!660522b4()      Â
      MSVBVM60.DLL!6605271b()      Â
      MSVBVM60.DLL!66052931()      Â
      MSVBVM60.DLL!6608ae91()      Â
      VB6.EXE!004135c8()      Â
      VB6.EXE!0041352e()      Â
      VB6.EXE!004132b2()      Â
      VB6.EXE!0041b177()      Â
      VB6.EXE!0041a805()      Â
      VB6.EXE!0041a573()      Â
      VB6.EXE!0041a5f8()      Â
      VB6.EXE!0041a3c9()      Â
      VB6.EXE!00410a98()      Â
      VB6.EXE!004108cf()      Â
      VB6.EXE!0041151a()      Â
      VB6.EXE!0041850c()      Â
      VB6.EXE!00444d24()      Â
      03260694()     Â
      VB6.EXE!00444cfd()      Â
      VB6.EXE!00406301()      Â
      VB6.EXE!00406173()      Â
      VB6.EXE!0042edc8()      Â
      VB6.EXE!00403a60()      Â
      VB6.EXE!0040588d()      Â
      VB6.EXE!00419e34()      Â
      VB6.EXE!004052ab()      Â
      VB6.EXE!00406eed()      Â
      VB6.EXE!00403a60()      Â
      VB6.EXE!0040588d()      Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e14398()      Â
      USER32.DLL!77e14925()      Â
      USER32.DLL!77e1ce0f()      Â
      USER32.DLL!77e26321()      Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e152e6()      Â
      USER32.DLL!77e15362()      Â
      VB6.EXE!00404abd()      Â
      VB6.EXE!0042e5f4()      Â
      VB6.EXE!00403a60()      Â
      VB6.EXE!0040588d()      Â
      USER32.DLL!77e12ca8()      Â
      USER32.DLL!77e12dc5()      Â
      USER32.DLL!77e1577d()      Â
      VB6.EXE!0042f5c9()      Â
      MSO97RT.DLL!3078d224()      Â
      MSO97RT.DLL!306c3498()      Â
      0824448b()     Â
Not sure if this will mean any more to you than it does to me.
I think it is something in this control. Â I will check out the pscode site to see if I can find something there.
Thanks

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Visual Basic Classic
--
Questions
--
Followers
Top Experts
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.