Results 1 to 3 of 3

Thread: string to form object

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    string to form object

    Hi

    I store a form name in a table and later i retrive the same in string
    and now i want to convert it to form object. how can i do this


    thanks

    ASM

  2. #2
    Fanatic Member
    Join Date
    Feb 2007
    Location
    Eindhoven
    Posts
    828

    Re: string to form object

    I suggest that you store the form object and then access the property of your form instear of storing the form name only.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2004
    Location
    Kolkata, India
    Posts
    290

    Re: string to form object

    My idea is -- change the back color / fore color/ font of form for that
    I store the form name in table. And public function i write in module
    and call it in each form when it is active.

    Code:
     Public Sub ColorScheme(ByRef frm As Form)
            frm.BackColor = Color.FromArgb(233, 106, 69)
            frm.ForeColor = Color.FromArgb(255, 255, 128)
        End Sub

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