C# to VB.Net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mariyana
    New Member
    • Mar 2007
    • 11

    C# to VB.Net

    can anyone help me out in converting the below code to vb.net

    case "organizational Unit":
    tmpNode = new TreeNode((strin g)child.Propert ies["name"].Value,(int)AdI mages.Ou,(int)A dImages.OpenCon tainer);
    tmpItem = new ListViewItem(ne w string[] {
    (string)child.P roperties["name"].Value,
    child.SchemaCla ssName,
    (string)child.P roperties["descriptio n"].Value

    },(int)AdImages .Ou);
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    use C# to vb .net converter
    this

    Comment

    • dip_developer
      Recognized Expert Contributor
      • Aug 2006
      • 648

      #3
      Originally posted by mariyana
      can anyone help me out in converting the below code to vb.net

      case "organizational Unit":
      tmpNode = new TreeNode((strin g)child.Propert ies["name"].Value,(int)AdI mages.Ou,(int)A dImages.OpenCon tainer);
      tmpItem = new ListViewItem(ne w string[] {
      (string)child.P roperties["name"].Value,
      child.SchemaCla ssName,
      (string)child.P roperties["descriptio n"].Value

      },(int)AdImages .Ou);


      Code:
      case "organizationalUnit"
      tmpNode = New TreeNode(CType(child.Properties("name").Value,String), CType(AdImages.Ou,Integer), CType(AdImages.OpenContaine,Integer), r)
      tmpItem = New ListViewItem(New String() {CType(child.Properties("name").Value,String), child.SchemaClassName, CType(child.Properties("description").Value,String)}, CType(AdImages.Ou,Integer))

      Comment

      • mariyana
        New Member
        • Mar 2007
        • 11

        #4
        Thanks a lot friend

        Comment

        Working...