Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11
    Addicted Member
    Join Date
    Jul 2017
    Posts
    233

    Re: CommonControls (Replacement of the MS common controls)

    I could reproduce the scenario which causes this problem and it is such a strange and tricky .

    https://www.youtube.com/watch?v=IaxZ...ature=youtu.be

    I was limited to 15 minutes of recording so , there is an uncompleted test result at the end of the video but it should be enough to make the point clear for now .

    Summary for video :

    The scenario :

    1- Add a new user control
    2- Place normal textbox or any VB6 intrinsic controls in the user control .
    3- Place any VBCCR control in the user control
    4- In the UserControl_Initialize event , add these lines of code .

    Lets say you used a VB intrinsic Textbox and a VBCCR CommandButtonW . Add these lines

    Code:
    text1.text="Hello"
    commandbuttonw1.caption ="Hello"
    5- The problem happens
    6 - Uncomment the code , The problem now disappears .
    7 - Put the following code in the same event
    Code:
    Dim s as string
    s= "Hello , I prove that not all code causes the problem , It is only for the code that draws an item in the user control"
    8 - With this previous case , the problem does not happen .

    More details and tests are found in the video for tests on the ComCtlsDemo project

    Thanks everybody for your help and sorry for bad English .
    Last edited by Hosam AL Dein; Mar 13th, 2019 at 04:48 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