Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Windows application certain GUI elements do not work / display as expected

Windows application certain GUI elements do not work / display as expected

Scheduled Pinned Locked Moved .NET (Core and Framework)
sysadminhelptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johan Hakkesteegt
    wrote on last edited by
    #1

    Hi, I have developed a windows application that is used on a bunch of PC's on our network. I distribute it with click-once deployment. On a couple of PC's certain GUI elements do not display / work as expected. For example, one of the forms contains a DataGridView, that has been set to not allow adding new rows. On one of the PC's mentioned however, the new row is visible, it does allow adding new rows. On another PC a form's title and a label on a StatusBar do not display at all. Has anyone else ever come across this phenomenon ? Where should I look to fix this ? Any help appreciated. Regards, Johan

    My advice is free, and you may get what you paid for.

    L 1 Reply Last reply
    0
    • J Johan Hakkesteegt

      Hi, I have developed a windows application that is used on a bunch of PC's on our network. I distribute it with click-once deployment. On a couple of PC's certain GUI elements do not display / work as expected. For example, one of the forms contains a DataGridView, that has been set to not allow adding new rows. On one of the PC's mentioned however, the new row is visible, it does allow adding new rows. On another PC a form's title and a label on a StatusBar do not display at all. Has anyone else ever come across this phenomenon ? Where should I look to fix this ? Any help appreciated. Regards, Johan

      My advice is free, and you may get what you paid for.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Is it "a datagridview" that displays said behaviour, or do all dgvs in the application show the extra row? If there's only one form in your app that's using the dgv, I'd try to write a small app to reproduce the behaviour to confirm it using the minimal code. If it is "one" control that is misbehaving, then the problem is probably in handling the control, not the control itself. I'd be checking the application for any constructs to swallow exceptions. Different ways of displaying a control, yes, that I would expect - since there have been multiple versions of the common controls, with flat controls introduced later.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      J 1 Reply Last reply
      0
      • L Lost User

        Is it "a datagridview" that displays said behaviour, or do all dgvs in the application show the extra row? If there's only one form in your app that's using the dgv, I'd try to write a small app to reproduce the behaviour to confirm it using the minimal code. If it is "one" control that is misbehaving, then the problem is probably in handling the control, not the control itself. I'd be checking the application for any constructs to swallow exceptions. Different ways of displaying a control, yes, that I would expect - since there have been multiple versions of the common controls, with flat controls introduced later.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        J Offline
        J Offline
        Johan Hakkesteegt
        wrote on last edited by
        #3

        Hi Eddy,

        Eddy Vluggen wrote:

        ...I'd try to write a small app to reproduce the behaviour to confirm it using the minimal code.

        Thanks, I will try that

        Eddy Vluggen wrote:

        If it is "one" control that is misbehaving, then the problem is probably in handling the control, not the control itself. I'd be checking the application for any constructs to swallow exceptions.

        I will check this. As the behavior is not happening on other PCs though, could it be possible that one PC (or .net framework) handles events and such in a different manner / order than another ?

        Eddy Vluggen wrote:

        Different ways of displaying a control, yes, that I would expect - since there have been multiple versions of the common controls, with flat controls introduced later.

        Again, could that be dependent on the .net framework version ? Regards, Johan

        My advice is free, and you may get what you paid for.

        L 1 Reply Last reply
        0
        • J Johan Hakkesteegt

          Hi Eddy,

          Eddy Vluggen wrote:

          ...I'd try to write a small app to reproduce the behaviour to confirm it using the minimal code.

          Thanks, I will try that

          Eddy Vluggen wrote:

          If it is "one" control that is misbehaving, then the problem is probably in handling the control, not the control itself. I'd be checking the application for any constructs to swallow exceptions.

          I will check this. As the behavior is not happening on other PCs though, could it be possible that one PC (or .net framework) handles events and such in a different manner / order than another ?

          Eddy Vluggen wrote:

          Different ways of displaying a control, yes, that I would expect - since there have been multiple versions of the common controls, with flat controls introduced later.

          Again, could that be dependent on the .net framework version ? Regards, Johan

          My advice is free, and you may get what you paid for.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Johan Hakkesteegt wrote:

          could it be possible that one PC (or .net framework) handles events and such in a different manner / order than another ?

          Highly unlikely, as it would break a lot of applications.

          Johan Hakkesteegt wrote:

          could that be dependent on the .net framework version

          There's a change in NET 4.5 for resizing[^], but haven't seen anything specific in the other "what's new" articles. Even if there's a manifest saying to use the "new" common controls, I would not expect very different behaviour - a different look, yes, but changing the behaviour breaks existing apps. There's a list on the versions here[^].

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups