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. C#
  4. Forms Slowness

Forms Slowness

Scheduled Pinned Locked Moved C#
8 Posts 3 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
    Syed Shahid Hussain
    wrote on last edited by
    #1

    Hi All, I have created a form and placed an image on its back ground. Now the form controls take much time to load. Is there any way by which we can do this thing quickly. thanks

    Syed Shahid Hussain

    OriginalGriffO 1 Reply Last reply
    0
    • S Syed Shahid Hussain

      Hi All, I have created a form and placed an image on its back ground. Now the form controls take much time to load. Is there any way by which we can do this thing quickly. thanks

      Syed Shahid Hussain

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Pick one: 1) Don't put an image on it's background. 2) If you must, then make it a small one. 3) Don't load the image until all the controls are loaded. 4) Get a faster machine.

      All those who believe in psycho kinesis, raise my hand. My :badger:'s gonna unleash hell on your ass. :badger:tastic!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      S 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Pick one: 1) Don't put an image on it's background. 2) If you must, then make it a small one. 3) Don't load the image until all the controls are loaded. 4) Get a faster machine.

        All those who believe in psycho kinesis, raise my hand. My :badger:'s gonna unleash hell on your ass. :badger:tastic!

        S Offline
        S Offline
        Syed Shahid Hussain
        wrote on last edited by
        #3

        I want to give a background image that is very necessary but in vb application it is working very fast but in c# it takes too much time. I'm using core 2Dou 2.0 GHz. :)

        Syed Shahid Hussain

        OriginalGriffO 1 Reply Last reply
        0
        • S Syed Shahid Hussain

          I want to give a background image that is very necessary but in vb application it is working very fast but in c# it takes too much time. I'm using core 2Dou 2.0 GHz. :)

          Syed Shahid Hussain

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          Then that has to be (pretty much) down to differences in your code, doesn't it? Since VB and C# both use the same .NET framework and runtime, there has to be a significant difference between the two programs. What are you doing in the C# that you aren't in the VB?

          All those who believe in psycho kinesis, raise my hand. My :badger:'s gonna unleash hell on your ass. :badger:tastic!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          S 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Then that has to be (pretty much) down to differences in your code, doesn't it? Since VB and C# both use the same .NET framework and runtime, there has to be a significant difference between the two programs. What are you doing in the C# that you aren't in the VB?

            All those who believe in psycho kinesis, raise my hand. My :badger:'s gonna unleash hell on your ass. :badger:tastic!

            S Offline
            S Offline
            Syed Shahid Hussain
            wrote on last edited by
            #5

            sorry I was talking about VB6. It its loading speed is too fast. And I want to develop an on screen key board. Do u also have any idea about that? Thanks

            Syed Shahid Hussain

            L OriginalGriffO 2 Replies Last reply
            0
            • S Syed Shahid Hussain

              sorry I was talking about VB6. It its loading speed is too fast. And I want to develop an on screen key board. Do u also have any idea about that? Thanks

              Syed Shahid Hussain

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              CodeProject holds a couple of articles on virtual keyboards. I suggest you search and read them. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


              I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
              [The QA section does it automatically now, I hope we soon get it on regular forums as well]


              1 Reply Last reply
              0
              • S Syed Shahid Hussain

                sorry I was talking about VB6. It its loading speed is too fast. And I want to develop an on screen key board. Do u also have any idea about that? Thanks

                Syed Shahid Hussain

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #7

                VB6 I can't help with - I bailed out of VB around Version 2 - but I assume VB6 is native code rather than .NET? If so, then I would expect it to load a lot faster, as there is no large framework to worry about. C# need the framework, so will load slower. Having said that, just how many controls do you have? And what size/format is the image? It may be worth just loading the app without the image and seeing if that speeds up the load enough. If it doesn't then I suspect you may have to go the "put-up-a-splash-screen-so-no-one-notices-it-is-so-slow" route that Adobe tried... See Lucs' answer re the virtual keyboard.

                All those who believe in psycho kinesis, raise my hand. My :badger:'s gonna unleash hell on your ass. :badger:tastic!

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                S 1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  VB6 I can't help with - I bailed out of VB around Version 2 - but I assume VB6 is native code rather than .NET? If so, then I would expect it to load a lot faster, as there is no large framework to worry about. C# need the framework, so will load slower. Having said that, just how many controls do you have? And what size/format is the image? It may be worth just loading the app without the image and seeing if that speeds up the load enough. If it doesn't then I suspect you may have to go the "put-up-a-splash-screen-so-no-one-notices-it-is-so-slow" route that Adobe tried... See Lucs' answer re the virtual keyboard.

                  All those who believe in psycho kinesis, raise my hand. My :badger:'s gonna unleash hell on your ass. :badger:tastic!

                  S Offline
                  S Offline
                  Syed Shahid Hussain
                  wrote on last edited by
                  #8

                  Thanks a lot Friend

                  Syed Shahid Hussain

                  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