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. C#
  4. simple translation form vb to c#

simple translation form vb to c#

Scheduled Pinned Locked Moved C#
csharpcomgame-devhelp
3 Posts 2 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
    nelsonpaixao
    wrote on last edited by
    #1

    i m creating a bot for a browser game, i really in the start yet so, i enter the page and i need to pass password and username etc so i found that code in vb but i cant find the translation i so thing i missing a assembly case its really simple ... wb.documents.all("username").value = "qwerty1" wb.documents.all("password").value = "qwerty2" wb.documents.all("submit").value = click ... thanks :laugh: wb is WebBrowser object

    nelsonpaixao@yahoo.com.br trying to help & get help

    C 1 Reply Last reply
    0
    • N nelsonpaixao

      i m creating a bot for a browser game, i really in the start yet so, i enter the page and i need to pass password and username etc so i found that code in vb but i cant find the translation i so thing i missing a assembly case its really simple ... wb.documents.all("username").value = "qwerty1" wb.documents.all("password").value = "qwerty2" wb.documents.all("submit").value = click ... thanks :laugh: wb is WebBrowser object

      nelsonpaixao@yahoo.com.br trying to help & get help

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There are online converters that will do this. If you can't do it yourself, then perhaps you need to understand C# better instead of just copying and pasting code from the web ? Replace the () with [] and put a ; at the end. That is all. Except I am not sure that the last line will work, in VB or C#, unless click is a variable that's already defined.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      N 1 Reply Last reply
      0
      • C Christian Graus

        There are online converters that will do this. If you can't do it yourself, then perhaps you need to understand C# better instead of just copying and pasting code from the web ? Replace the () with [] and put a ; at the end. That is all. Except I am not sure that the last line will work, in VB or C#, unless click is a variable that's already defined.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

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

        () or [] doesn´t matter, like i said before i am missing a assembly, i cant find it i used value propriety before, to pass values to db for exemple ... sql_cmd.Parameters.Add("@my_season", SqlDbType.Int).Value = season; ... but i cant find the assembly to value propriety this case in order to pass values to site login page :doh:

        nelsonpaixao@yahoo.com.br trying to help & get help

        modified on Wednesday, July 29, 2009 7:20 PM

        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