Results 1 to 40 of 200

Thread: [VB6] ActiveX CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11
    Fanatic Member Mith's Avatar
    Join Date
    Jul 2017
    Location
    Thailand
    Posts
    540

    ComboBoxW text replacing bug

    I found a bug at the ComboBoxW control using the style "dropdowncombo", all other control properties are "Standard".

    I get different results for the text property when using this code:

    Code:
          cboMS.Text = "C:\test_"
          cboMS.AddItem "C:\test_1"
          cboMS.AddItem "C:\data"
    
          cboVBCCR.Text = "C:\test_"
          cboVBCCR.AddItem "C:\test_1"
          cboVBCCR.AddItem "C:\data"
    Name:  ComboBoxW.png
Views: 3487
Size:  8.9 KB

    The command .AddItem "C:\test_1" replaces the text "C:\test_" in the editbox!
    AddItem should extend the dropdown-list but not replace the text in the editbox.

    When i manually change the text in the editbox to "C:\test_" and open the dropdown-list the text will be changed back to "C:\test_1" again without clicking on the first item in the dropdown-list!

    Any idea how to get the same behavior as the original MS controls?
    Last edited by Mith; Dec 8th, 2023 at 11:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width