Results 1 to 3 of 3

Thread: Findcontrol in pocket framework

  1. #1

    Thread Starter
    Hyperactive Member beasty1711's Avatar
    Join Date
    Mar 2001
    Posts
    418

    Findcontrol in pocket framework

    Is there a method that replicates the findcontrol action within the pocket framework?

    i want to pass a control to a public function but using a string value.

    any ideas??


    cheers

    Pete
    "...They even have the internet on computers..." :- Homer Simpson

    "Second Place is First Looser" :- No Fear

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Findcontrol in pocket framework

    I guess I don't understand the problem. What is in the string?
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Hyperactive Member beasty1711's Avatar
    Join Date
    Mar 2001
    Posts
    418

    Re: Findcontrol in pocket framework

    the string is just the name of the control that i want to pass through to another class eg:

    so somthing like
    VB Code:
    1. Private Sub Hello()
    2. dim strComboName as string = text1.text
    3.  
    4. PopulateDropDowns(text1.text)
    5. End sub
    6.  
    7. Private Sub PopulateDropDowns(byval objCombo as ComboBox)
    8. 'Do stuff
    9.  
    10. End Sub

    i would normall do something like

    PopulateDropDowns(me.FindControl(text1.text)) which would find the combo and actually pass the control
    "...They even have the internet on computers..." :- Homer Simpson

    "Second Place is First Looser" :- No Fear

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