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. Visual Basic
  4. Please help with conversion into an interface

Please help with conversion into an interface

Scheduled Pinned Locked Moved Visual Basic
helpcsharptutorial
1 Posts 1 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.
  • E Offline
    E Offline
    eatwork
    wrote on last edited by
    #1

    Hi, I was wondering if anyone knows how to convert a DataGridColumnStyle type to an interface type. I am converting some code from C# to VB.net and this one error is hanging up my progress. The code in C# works: commonCol=col as ICommonColumnStyle; But whenI try to convert it to VB.net: commonCol=Ctype(col, ICommonColumnStyle) It gives me a runtime error saying that the specified cast is not valid. I have tried try commonCol = Ctype(col, ICommonColumnStyle) catch commonCol = Nothing end try that will eliminate the error, but the problem of col never being converted exists, it will always set commonCol = nothing and I need it to convert the value. Any ideas on this would be greatly appreciated. Thank you very much and have a good one!! eatwork

    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