Results 1 to 6 of 6

Thread: Create a FOrm on the fly

  1. #1

    Thread Starter
    Addicted Member Buy2easy.com's Avatar
    Join Date
    Jul 2002
    Posts
    200

    Create a FOrm on the fly

    is there a way in vb.net that i can save the a;; the form information in a txt file and then while the program is running get the info from the txt file and use it to create a form...If anyone understands what i am asking let me know how i can do it...Thanks

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Do you mean the form code? Like you could do in VB6 with VBScript? Or do you mean just the form name and load it from the string?

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    it'd evolve a lot of code but it's perfectly possible
    \m/\m/

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If you want the whole form code then maybe you could work out some kind of custom XML serializer to write/read it from a file. If you mean just load the form by name then that is much easier.

  5. #5

    Thread Starter
    Addicted Member Buy2easy.com's Avatar
    Join Date
    Jul 2002
    Posts
    200
    say that i want to save all the information for things like labels,pictureboxes,textboxes,ect.....in a text file and then at run time read from the text file and get the information that was saved then create a form to match that information....how would i do that?

  6. #6
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Have you tried serialization?

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