Results 1 to 1 of 1

Thread: Frustrated with simple things in .Net? :)

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Frustrated with simple things in .Net? :)

    Here is a library that contains a bunch of functions to make the transition from VB6 to VB.Net easier...

    It contains fully framework compatible versions of 'legacy' VB6 functions like Asc(), Chr(), Val() and so forth but without the need to resort to using the deprecated Microsoft.VisualBasic namespace. Trust me its cool.

    In order to use this helpful library you MUST remove the legacy namespace...
    Project Menu...Properties...Imports...Click Microsoft.VisualBasic from the list...Remove...Apply...Ok.



    Here is the code and the compiled version (see attachments)...

    If you want to access the functions easily I suggest you do the following...

    If you use the source code directly:
    Copy the VBridge.vb file into your project folder and add it to the solution.

    Else if you want to use the compiled DLL directly:
    Copy the DLL (out of the zip file) onto your HDD (preferably the system directory so it can be seen by all your future projects too). Then Solution Explorer...References (right click)...Add Reference...browse to the DLL and select it.


    Then add...
    VB Code:
    1. Imports VBridge.VBridge
    ...to your own code so you can access the functions immediately.



    If anyone has any problems with this let me know (give FULL details please) and I'll revise it ASAP.


    You should regard this as a gentle introduction to .Net from a VB6 coder's point of view. Once you get the hang of .Net you should stop using this library and code your own procedures, this way you will get a stronger understanding of how things work. I wrote this to ease the frustration often felt by new .Net coders
    Attached Files Attached Files
    I don't live here any more.

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