Used Tablet PC
Results 1 to 8 of 8

Thread: VB6 code to save ink

  1. #1
    kman Guest

    Default VB6 code to save ink

    Does anyone have sample code for saving and retrieving ink in a visual basic 6 app?

  2. #2
    fswitz Guest

    Default

    There are a number of samples for saving Ink included in the TabletPC SDK in VB.

    Also, check out Building TabletPC Applications by Jarrett/Su from Microsoft Press. Great resource, but all the samples are in C#.

    What are your requirements? Database? native ISF?

  3. #3
    kman Guest

    Default

    Unless I'm looking at a different SDK the only samples I found in VB6 were Ink Collection, Ink Erase,Ink Recognition, and Character Auto Completion.

    My requirements are to collect Ink in an access application and to be able to save to the database as well as retrieve the ink from the application and diplay it.

    I have already checked out the book, but as you metioned all the samples are in .Net. The do have one chapter on Designing apps for non .Net environments, but they only discuss design considerations, no samples.




  4. #4
    fswitz Guest

    Default

    Kman,

    http://www.tabletpcdeveloper.com/userarea/default.aspx

    Hello InkWorld has a document, How-To for saving and displaying ink to an Access Database. The source is in C#, but if you have any trouble converting to VB, just re-post and we can give you a hand.

    A google group search should bring up a number of VB6 samples as well as some VBA using Access Forms using Ink.

    Developing for the Tablet with .NET has some advantages. Since all the tablets are CLR ready.

    Hope this helps,


  5. #5
    kman Guest

    Default

    When you sent the last message I had already downloaded that project and was going thru it. It was very well written, hat's off to the author.

    But I still have a couple of problems. I can't get the visual Studio.NET on my computer due to lack of space. Also I am not familiar with C#, so I am not sure how to translate the code to VB.

    Any assistance in converting the code to VB would be greatly appreciated.


  6. #6
    fswitz Guest

    Default

    Kman,

    Thanks for the kind reply, I am the author. :)

    Understand the space problems with .NET. Tell you what I can do, give me a day to install VB6 on my development machine. There are a couple C# to VB converters, if I get stuck. Send me via e-mail and attach your access database , I'll create a simple form that will get ink in and out for you.

    In the meantime, you may want to do a search for the C# 2
    VB converters. They are not perfect , but they can get about 90% of the work done. The final 10% is the fun stuff. [8D]

    If we run into any problems, we'll know where to get some help.

    fritz-switzer@attbi.com

  7. #7
    kman Guest

    Default

    Fritz,

    The database you had in your example would be good enough for me.

    Thanks

    Kman

  8. #8
    fswitz Guest

    Default

    Kman,

    Just got VB6 loaded and will take a look at the conversion from C# with the Hello InkWorld Access database.

    I hadn't really paid that much attention to the lack of samples in VB6 included with the SDK until tonite. (4 out of 18) Seems to this author that the development base being as large as it is for VB6'ers there could be some effort in providing a greater selection of examples for VB6. I know that the "long-term" direction is toward .NET but that's a big crowd to turn your back on. IMHO. Although, throughout the SDK , many samples in C#, VB.NET, and VB6.0 do exist.

    I'd be interested in hearing from other VBSixers what their take is on the issue C++/VB6 development plans for Tablets vs. .NET.

    Maybe Spencer could provide some thoughts since he's more involved with VB than I.

    fritz

Similar Threads

  1. Can one use a Tablet PC to write code?
    By crippledcoder in forum General Tablet PC Discussion
    Replies: 5
    Last Post: 03-10-2008, 10:25 AM
  2. Does anyone have the part-code for the docking s
    By mattbunce in forum General Tablet PC Discussion
    Replies: 23
    Last Post: 02-28-2005, 01:11 AM
  3. Writing code with a pen
    By tqc in forum General Tablet PC Discussion
    Replies: 8
    Last Post: 12-09-2004, 03:47 AM
  4. "Writing" code
    By somasipper in forum General Tablet PC Discussion
    Replies: 3
    Last Post: 10-07-2004, 05:26 AM
  5. Can someone please explain to me what the Code M
    By Rob Yale in forum General Tablet PC Discussion
    Replies: 3
    Last Post: 03-24-2003, 03:10 PM

Bookmarks

Posting Permissions

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