dcsimg
Page 57 of 57 FirstFirst ... 74754555657
Results 2,241 to 2,251 of 2251

Thread: CommonControls (Replacement of the MS common controls)

  1. #2241
    Hyperactive Member
    Join Date
    Apr 2015
    Posts
    416

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Hosam AL Dein View Post
    But , About the issue related to VBCCR CommandButtons and TextBoxes hosted in a user control and being able to click the separately in design mode in IDE , it is the same
    I had the same problem a while ago, but it was solved some weeks ago for me.

    Could you post your project that shows the error?
    I would like to see if it happens here as well.

  2. #2242
    Addicted Member
    Join Date
    Aug 2016
    Posts
    143

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Karl77 View Post
    I had the same problem a while ago, but it was solved some weeks ago for me.

    Could you post your project that shows the error?
    I would like to see if it happens here as well.
    a while ago is older or earlier than some weeks ago?

  3. #2243
    Hyperactive Member
    Join Date
    Apr 2015
    Posts
    416

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by DaveDavis View Post
    a while ago is older or earlier than some weeks ago?
    See post #2117.
    http://www.vbforums.com/showthread.p...=1#post5332087

  4. #2244
    Addicted Member
    Join Date
    Jul 2017
    Posts
    179

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Karl77 View Post
    I had the same problem a while ago, but it was solved some weeks ago for me.

    Could you post your project that shows the error?
    I would like to see if it happens here as well.

    Thanks for your reply karl ,
    I will be wrapping a demo today attached with video as I am testing some scenarios now .

  5. #2245
    Addicted Member
    Join Date
    Jul 2017
    Posts
    179

    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.

  6. #2246
    Hyperactive Member
    Join Date
    Apr 2015
    Posts
    416

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Hosam AL Dein View Post
    I could reproduce the scenario which causes this
    Easy to reproduce, and happens in here the same way.

    While the effect is bothering, it is more a cosmetic issue.
    I lived with it for a long time, and it didn't stopped me to get things done.

    But good to point out the issue!
    And I would appreciate a solution as well.

  7. #2247

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2012
    Posts
    1,173

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Hosam AL Dein View Post
    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 .
    It's a very bad idea to make some code involving the child usercontrol in the host usercontrol inside the UserControl_Initialize() event. The UC Ambient.UserMode property is not meaningful at that place. Please set your code that involves the child usercontrols in the UserControl_ReadProperties()/UserControl_InitProperties().

  8. #2248
    Hyperactive Member
    Join Date
    Apr 2015
    Posts
    416

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    It's a very bad idea to make some code involving the child usercontrol in the host usercontrol inside the UserControl_Initialize() event. The UC Ambient.UserMode property is not meaningful at that place. Please set your code that involves the child usercontrols in the UserControl_ReadProperties()/UserControl_InitProperties().
    Aha.
    Now I know why did it right in my apps.
    Not because of knowledge, I just don't use UserControl_Initialize anywhere in my UCs.
    Except in one of them, and I will correct that immediately.

  9. #2249
    Fanatic Member
    Join Date
    Apr 2015
    Location
    Finland
    Posts
    639

    Re: CommonControls (Replacement of the MS common controls)

    Krool, thank you for these superb usercontrols. In terms of DTPicker there is AllowUserInput, but this property does not 'lock' control fex. like in vb intrinsic combobox locked property does - maintaining control look like 'enabled'. Hence asking is your DTPicker control possible to set 'locked' state, without disabling it? If not, then could you consider adding locked property?

  10. #2250
    Addicted Member
    Join Date
    Aug 2011
    Location
    Palm Coast, FL
    Posts
    235

    Re: CommonControls (Replacement of the MS common controls)

    I need to change the BackColor of a tab control but it has no BackColor property. Is this an accidental omission or is there a technical reason for this?

  11. #2251
    Addicted Member
    Join Date
    Jul 2017
    Posts
    179

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    It's a very bad idea to make some code involving the child usercontrol in the host usercontrol inside the UserControl_Initialize() event. The UC Ambient.UserMode property is not meaningful at that place. Please set your code that involves the child usercontrols in the UserControl_ReadProperties()/UserControl_InitProperties().
    Thanks for your reply krool ,
    This is the first time to know that . I will go on your advice to avoid this issue .

Page 57 of 57 FirstFirst ... 74754555657

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width