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. Web Development
  3. Convert C# to VB code

Convert C# to VB code

Scheduled Pinned Locked Moved Web Development
csharpdesignhelp
3 Posts 3 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.
  • C Offline
    C Offline
    Chiari
    wrote on last edited by
    #1

    Hi all, I really need to convert the C# code below into VB. If possible can advise me where is the most approriate place to place this portion of code. The code is to wire the parent datagrid for the ItemCreated event and ItemDataBound event. Please help me. private void InitializeComponent() { this.load += new System.EventHandler(this.Page_Load); this.dgRegion.ItemCreated += new DataGridItemEventHandler(dgRegion_ItemCreated); this.dgRegion.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.dgRegion_ItemDataBound); } Thanks in advance, Chiari

    J S 2 Replies Last reply
    0
    • C Chiari

      Hi all, I really need to convert the C# code below into VB. If possible can advise me where is the most approriate place to place this portion of code. The code is to wire the parent datagrid for the ItemCreated event and ItemDataBound event. Please help me. private void InitializeComponent() { this.load += new System.EventHandler(this.Page_Load); this.dgRegion.ItemCreated += new DataGridItemEventHandler(dgRegion_ItemCreated); this.dgRegion.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.dgRegion_ItemDataBound); } Thanks in advance, Chiari

      J Offline
      J Offline
      jjrdk
      wrote on last edited by
      #2

      This is just code to bind event handlers. VB does this by itself. I believe the way to do it would be to use: Handles Page.Load Handles dgRegion.ItemCreated Handles dgRegion.ItemDataBound for the respective methods.

      1 Reply Last reply
      0
      • C Chiari

        Hi all, I really need to convert the C# code below into VB. If possible can advise me where is the most approriate place to place this portion of code. The code is to wire the parent datagrid for the ItemCreated event and ItemDataBound event. Please help me. private void InitializeComponent() { this.load += new System.EventHandler(this.Page_Load); this.dgRegion.ItemCreated += new DataGridItemEventHandler(dgRegion_ItemCreated); this.dgRegion.ItemDataBound += new System.Web.UI.WebControls.DataGridItemEventHandler(this.dgRegion_ItemDataBound); } Thanks in advance, Chiari

        S Offline
        S Offline
        Srinu_ss5
        wrote on last edited by
        #3

        http://www.carlosag.net/Tools/CodeTranslator/Default.aspx This might help u. Check it Srinu

        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