Results 1 to 40 of 4199

Thread: CommonControls (Replacement of the MS common controls)

Hybrid View

  1. #1
    Lively Member
    Join Date
    Mar 2012
    Posts
    68

    Re: CommonControls (Replacement of the MS common controls)

    Using listview on some computers I have an incomprehensible situation. Text element is reduced to a certain size, and placed at the end ...
    Name:  listview.JPG
Views: 7619
Size:  9.8 KB
    How can I fix this?

    I use a view=2 'viewlist
    Elements add the following code
    With lvOptions.ListItems
    If .Count = 0 Then
    .Add 1, , strItemOptions1, , 1
    .Add 2, , strItemOptions8, , 2
    .Add 3, , strItemOptions2, , 3
    .Add 4, , strItemOptions3, , 4
    .Add 5, , strItemOptions4, , 5
    .Add 6, , strItemOptions5, , 6
    .Add 7, , strItemOptions9, , 7
    .Add 8, , strItemOptions6, , 8
    .Add 9, , strItemOptions10, , 9
    End If
    End With

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Romeo91 View Post
    Using listview on some computers I have an incomprehensible situation. Text element is reduced to a certain size, and placed at the end ...
    Name:  listview.JPG
Views: 7619
Size:  9.8 KB
    How can I fix this?

    I use a view=2 'viewlist
    Elements add the following code
    Use the 'ColumnWidth' property and set it to a higher value.

  3. #3
    Lively Member
    Join Date
    Mar 2012
    Posts
    68

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Use the 'ColumnWidth' property and set it to a higher value.
    I tried, not help. No response to parameter change. Win XP, but met this and Win7

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Romeo91 View Post
    I tried, not help. No response to parameter change. Win XP, but met this and Win7
    I have tried to replicate and I was only able to replicate it when setting the 'ColumnWidth' in Form_Load, but I could resolve it by placing a 'DoEvents' before setting the 'ColumnWidth'. I am not sure why this is necessary.

    But please confirm that this solves your issue - for the moment.

  5. #5
    Lively Member
    Join Date
    Mar 2012
    Posts
    68

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    I have tried to replicate and I was only able to replicate it when setting the 'ColumnWidth' in Form_Load, but I could resolve it by placing a 'DoEvents' before setting the 'ColumnWidth'. I am not sure why this is necessary.

    But please confirm that this solves your issue - for the moment.
    On both my machines problem exist in the IDE, but no in compiled-exe. In IDE doevents not help.
    Tomorrow check on other computers, as I remember that the problems encountered in the project compiled, but something I doubt

    ***********

    If I use the ColumnWidth property to compile the project, on the contrary it leads to any machine to the problem of reducing the text to the same species, regardless of the ColumnWidth.
    If the property is not used, it appears not all machines
    Last edited by Romeo91; Mar 23rd, 2014 at 11:05 PM.

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,728

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Romeo91 View Post
    On both my machines problem exist in the IDE, but no in compiled-exe. In IDE doevents not help.
    Tomorrow check on other computers, as I remember that the problems encountered in the project compiled, but something I doubt

    ***********

    If I use the ColumnWidth property to compile the project, on the contrary it leads to any machine to the problem of reducing the text to the same species, regardless of the ColumnWidth.
    If the property is not used, it appears not all machines
    Does it work when setting the ColumnWidth not in the Form_Load event? For instance in a CommandButton_Click event instead?

  7. #7
    Lively Member
    Join Date
    Mar 2012
    Posts
    68

    Re: CommonControls (Replacement of the MS common controls)

    Quote Originally Posted by Krool View Post
    Does it work when setting the ColumnWidth not in the Form_Load event? For instance in a CommandButton_Click event instead?
    If property ColumnWidth is used in the event CommandButton_Click it works correctly

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