Results 1 to 11 of 11

Thread: Eeeee Help... VB6 Control in VB.net

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    7

    Arrow Eeeee Help... VB6 Control in VB.net

    I hv VB6 Activex controls and when I upgrade the source in VB.net I get an error VB.net cannot upgrade activex controls developed in previous versions

    Now I am also not able to use the compliled controls in VB.net although I can refer them in the reference , I have the control displaced in solution explorer but I donot find the control in the tools

    Has anyone of you tried using the VB6 OCX control in VB.net after refering

    If you have a solution , your response shall be highly appreciated

    Cheers

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Either A) Dont upgrade as if it works in VB6..whats the point
    or
    B) Find either a .NEt version of the control or see if their is some kind of .NET equivilant

    what is the ocx you are trying to use?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    7

    vb6 control used

    Hey man, Thanks for your prompt reply which is highly appreciated

    The control used is from http://www.pscode.com/vb/scripts/Sho...30137&lngWId=1

    Try using it and see if you find it in the tools bar

    Though there is no error , how do we start using it in vb.net after refering it

    Do you have any idea of developing using XP style in win 9x , win2x , although using manifest file in WinXP would do
    kiran kumar T

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    here is a link to the manifest..
    http://www.planet-source-code.com/vb...=175&lngWId=10

    I am searching for a .NET control to do this for any windows version..so far found a acouple non-free ones..trying to find you a free one...hold on..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I didnt find jack... give it some time and I am sure we will see more of this type of controls scecifically for .NET.

    As far as why it doesnt work, it is becuase .NET throws out ActiveX and doesnt support it anymore. .NET is a whole new ball game.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    7

    Microsoft upgrade issues

    If you see the microsoft upgrade issue site http://msdn.microsoft.com/vbasic/tec.../vbupgrade.asp it clearly states user controls source code cannot be upgraded but you can use the same in vb.net.

    Microsoft do have to come up with usercontrol upgrade option

    I fail to understand the controls donot work in vb.net although they have mentioned in above

  7. #7
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    perhaps I should rephrase..yes you can still use ActiveX but it creates more over-head as it creates yet another dll wrpaper to access the ACtiveX and jsut really isnt encouraged or supported.

    At any rate, did you try removing the control reference and re-adding manually in VS .NET?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  8. #8

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    7

    I figured it out

    I figured it out,

    Select Tools, Customise toobox and then select the activex componet

    But................ lots of errors using the controls. Its not advisable to use the activex controls developed from vb6 to vb.net , I feel its always recomended to generate it a fresh in vb.net

    any takers...

    by the way have anyone of you found good vb.net activex controls
    kiran kumar T

  9. #9
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: I figured it out

    Originally posted by tkiran
    by the way have anyone of you found good vb.net activex controls
    What do you mean? VB.NET controls or ActiveX controls?

  10. #10

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    7

    Controls User

    activex controls developed in vb.net

  11. #11
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    You cannot develop ActiveX controls in VB.NET!!
    VB.NET does not use COM (or ActiveX whatever you like to call it).

    The controls developed in VB.NET are using the .NET Framework, and will only run on machines with the .NET framework installed.
    However, if you develop a .NET control, you can use it in VB6, because .NET can create a COM wrapper. It is still depending on the .NET framework though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width