Results 1 to 5 of 5

Thread: GroupBox not hiding in some users

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2024
    Posts
    3

    GroupBox not hiding in some users

    Hi
    I did a front end application where some GroupBoxes are put to "invisible" in some cases. Executed in many computers, in half of them all is ok (the development one included ) and in others the Groupbox stay visible.
    I also tried modifying the "left" position to put them out of the sight of the user with the same result, in the same computers it does not work the GroupBox.visible=false, the GroupBox.left also doesn't work.
    All other features work fine, forms, control.backcolor, etc.
    Any ideas in what to check?
    Thanks in advance.
    C.

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,212

    Re: GroupBox not hiding in some users

    You need to post the relevant code. We have no idea what your code does. Also, explain what case the groupboxes should be invisible.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2024
    Posts
    3

    Re: GroupBox not hiding in some users

    Hi we4dbt:
    Based on a user selection in a Gridview, which determines a "type" of the selection that make some groups of controls irrelevants (TextBoxes and ComboBoxes), so i want to hide them. I grouped the different "types" of required controls in some 20 Groupboxes, and only 2 or three are to be seen by the user according to the item selected in the gridvies
    They are in a 'Tab' so the command used to make them visible or far away on the right side ( both lines are for test, if one works, the other is not necessary is:

    For i As Integer = 0 To GBS.Count - 1
    'TabControl1.TabPages(0).Controls.Item(GBS(i)).Visible = GBSVis(i)
    TabControl1.TabPages(0).Controls.Item(GBS(i)).Left = GBSlLeft(i)
    TabControl1.TabPages(0).Controls.Item(GBS(i)).Top = GBSTop(i)
    Next

    Where GBS(i) has the Groupbox names, GBSVis the visibility (True/false) for each, the GBSTop() the .Top of each.

    As I said, it works perfect in some users, and not in others.

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,212

    Re: GroupBox not hiding in some users

    When you post code always wrap it code tags so the code keeps its formatting, just click the "#" and insert the code

    Code:
    For i As Integer = 0 To GBS.Count - 1
        'TabControl1.TabPages(0).Controls.Item(GBS(i)).Visible = GBSVis(i)
        TabControl1.TabPages(0).Controls.Item(GBS(i)).Left = GBSlLeft(i)
        TabControl1.TabPages(0).Controls.Item(GBS(i)).Top = GBSTop(i)
    Next
    There is nothing in that code that's machine specific. Which makes me think that code is not the problem.

    Have personally tested this issue on these other machine or have users reported the problem to you?
    Are you sure all the machines are running the same version of them program?

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2024
    Posts
    3

    Re: GroupBox not hiding in some users

    Thanks.
    I was reported and i connected remotely to verify.
    Yes the version was the last one.
    I also checked that the NET framework version installed in my pc and in theirs was the same.

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