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. Visual Basic
  4. Question about objects and forms

Question about objects and forms

Scheduled Pinned Locked Moved Visual Basic
questioncsharpperformancehelp
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.
  • S Offline
    S Offline
    sa_runner
    wrote on last edited by
    #1

    I've been writing an app (desktop) that has information that needs to be passed between forms. I'd like to use an object to move the information about the forms, but it didn't seem too feasible. I did some research online and most people say to use a 'global' module that holds the variables that are common amongst the forms, but there are trade-offs. However they (the articles I've read) won't specify the trade-offs. Is it a performance issue that is caused by doing this? Is there a way to move an object from form to form cleanly? I'm just curious as to this community's thoughts on the subject. If this needs to move to another forum area, please feel free. I placed it here because I develop in VB.Net 2k5. Thanks in advance.

    W 1 Reply Last reply
    0
    • S sa_runner

      I've been writing an app (desktop) that has information that needs to be passed between forms. I'd like to use an object to move the information about the forms, but it didn't seem too feasible. I did some research online and most people say to use a 'global' module that holds the variables that are common amongst the forms, but there are trade-offs. However they (the articles I've read) won't specify the trade-offs. Is it a performance issue that is caused by doing this? Is there a way to move an object from form to form cleanly? I'm just curious as to this community's thoughts on the subject. If this needs to move to another forum area, please feel free. I placed it here because I develop in VB.Net 2k5. Thanks in advance.

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      I would say that the trade-off isn't in performance but in maintainability. In my point of view, this is a modelling problem. Have a look at this article for example: Building an MVP Framework for .NET. Part 1: The Basics of MVC and MVP[^]

      The need to optimize rises from a bad design

      S 1 Reply Last reply
      0
      • W Wendelius

        I would say that the trade-off isn't in performance but in maintainability. In my point of view, this is a modelling problem. Have a look at this article for example: Building an MVP Framework for .NET. Part 1: The Basics of MVC and MVP[^]

        The need to optimize rises from a bad design

        S Offline
        S Offline
        sa_runner
        wrote on last edited by
        #3

        Thank you! This was very helpful.

        W 1 Reply Last reply
        0
        • S sa_runner

          Thank you! This was very helpful.

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          You're welcome.

          The need to optimize rises from a bad design. My articles[^]

          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