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. Form Loading

Form Loading

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 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.
  • N Offline
    N Offline
    No e
    wrote on last edited by
    #1

    I have a VB6 application I upgraded to .net. The upgrade wizzard added a bunch of code to my forms that I am not sure I fully understand. I am having a heck of a time trying to get my forms to load properly. Can anyone give some advise how best to do it? I have a lot of code that aranges things on the forms and then sizes them but it does not seem to work consistently, the code appears to execute but then the form appears to ignore sizing and such. Any advise or articles that may enlighten me would be appreciated...

    D N 2 Replies Last reply
    0
    • N No e

      I have a VB6 application I upgraded to .net. The upgrade wizzard added a bunch of code to my forms that I am not sure I fully understand. I am having a heck of a time trying to get my forms to load properly. Can anyone give some advise how best to do it? I have a lot of code that aranges things on the forms and then sizes them but it does not seem to work consistently, the code appears to execute but then the form appears to ignore sizing and such. Any advise or articles that may enlighten me would be appreciated...

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      My best advise is to skip the upgrade wizard and rewrite the project. The wizard introduced a bunch of code that, besides amounting to a pile of spaghetti, makes your code very difficult to discuss with other people because pieces of code wind up everywhere. If your code is moving and resizing controls on load, you're more than likely conflicting with the code in your Form's "Windows Forms Designer Generated code" section. As for how to fix that, only stepping through the code and doing a line by line review is going to tell you what you have to do. I don't know of any articles anywhere that will tell you what you have to do to fix the wizard converted code. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      • N No e

        I have a VB6 application I upgraded to .net. The upgrade wizzard added a bunch of code to my forms that I am not sure I fully understand. I am having a heck of a time trying to get my forms to load properly. Can anyone give some advise how best to do it? I have a lot of code that aranges things on the forms and then sizes them but it does not seem to work consistently, the code appears to execute but then the form appears to ignore sizing and such. Any advise or articles that may enlighten me would be appreciated...

        N Offline
        N Offline
        namazikhah
        wrote on last edited by
        #3

        hi, if you want to reset some of you form properties or change them you can go to windows form desirner generated code and in InitializedComponent you will see the properties of each component on your form(they are seperated with comments) then you can chenge them. If you delete a line of code it means that you have reset it! If you like to have a better performance you can use property windows(View>property windows or F4) if you want to reset a property right click on it and then select reset. thats all! have a nice programming day!

        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