C# and casting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SS

    C# and casting

    I have a strig which represents an object.
    I have 3 Browser objects on my form and each one has a unique name in the
    form
    I want to say:

    String CurrentBrowser
    CurrentBrowser. Navigate(.....)

    how can I convert CurrentBrowser (String) into a WebBrowser Object (in C#)

    Thx

    SQ


  • Frank Oquendo

    #2
    Re: C# and casting

    SS wrote:
    [color=blue]
    > how can I convert CurrentBrowser (String) into a WebBrowser Object
    > (in C#)[/color]

    Activator.Creat eInstance

    --
    There are 10 kinds of people. Those who understand binary and those who
    don't.


    (Pull the pin to reply)


    Comment

    • r. krommenhoek

      #3
      Re: C# and casting


      "Frank Oquendo" <frankopin@acad x.com> wrote in message
      news:#RGCtewsDH A.2388@TK2MSFTN GP12.phx.gbl...[color=blue]
      > SS wrote:
      >[color=green]
      > > how can I convert CurrentBrowser (String) into a WebBrowser Object
      > > (in C#)[/color]
      >
      > Activator.Creat eInstance
      >
      > --
      > There are 10 kinds of people. Those who understand binary and those who
      > don't.[/color]

      It would be nice if you give information about it's format before U use a
      digit...

      ;-)
      greetz Renske.
      [color=blue]
      >
      > http://code.acadx.com
      > (Pull the pin to reply)[/color]


      Comment

      • Daisy

        #4
        Re: C# and casting

        "r. krommenhoek" <r.krommenhoek@ hccnet.nl> wrote in message
        news:uyGN62xsDH A.4056@TK2MSFTN GP11.phx.gbl...[color=blue][color=green]
        > > There are 10 kinds of people. Those who understand binary and those who
        > > don't.[/color]
        >
        > It would be nice if you give information about it's format before U use a
        > digit...[/color]

        Wouldn't be very funny then, no? ;-P
        --
        Daisy The Cow
        Now playing: Rank 1 - Airwave (ATB Mix)


        Comment

        • Stefano \WildHeart\ Lanzavecchia

          #5
          Re: C# and casting

          > There are 10 kinds of people. Those who understand binary and those who[color=blue]
          > don't.[/color]

          There are three kinds of people. Those who can count and those who cannot.
          ;-)
          --
          WildHeart'2k3


          Comment

          Working...