• Recent Posts

  • Meta

  • Tags

    #ziplib .net getfilename .net no titlebar 7-zip adding a splash screen in visual basic.net adding textbox autocomplete addition adjusttokenprivileges adware application filename application position applications path audio library autocomplete autocomplete combobox avi mpg basic math bass.dll bass sound system beep benchmark data calculator cdrom tray change unix to windows directory exists disable beep on enter doevents excel file exists getinputstate high cpu usage linq mcisendstring no doevents open webpage pinging play mp3 play wave scroll textbox shell stop beep on enter textbox vb ping visual studio windows mci
  • Updated: USB using Visual Basic.NET and VB 6.0

    By admin | March 4, 2010

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
    Loading ... Loading ...
     

     


     

    Update: I changed the title and some other things because they might have mislead thinking that this article gives you the in’s and out of USB programming.

    The purpose of this post is simply to let you know of some codes/librairies available to help with usb programming like detecting when a usb device has been added/removed, which the .net based class helps with, ect…

       

    __________________________

       

    Visual Basic 6.0; VB 5.0

    The first library is for Visual Basic 5 and 6.0 and is provided by Intel (Intel is the main inventer of USB as well) and includes various bas/modules for use in your applications. I’ve had this link and files on my vbcodesource.com page for years but now that I found a .net library that can do alittle something with usb devices I figured it would be worth making a post for both of them. BTW, these  VB 6.0 USB modules do Much more than the below .net library.

        

       

    Click here for the Main Intel page with the downloads and tutorial…

       

    Visual Basic.NET Compatible Class Library

    Strolling through some of the latest updates at thecodeproject.com I noticed someone made a USB library using C# for detecing the attachment and detachment of usb devices. He provides the source code, compiled class, and a demo app with the usb library in action. If you simply want the class to make a reference to, then download the source code version. Then under the Bin/Release directory you will see the ‘USBClassLibrary.Dll’ which is what you want to make a reference to.

        

       

    Click here for the main USB Library page…

       

    __________________________

       

    Although I don’t provide any examples or anything, hopefully this will at least give you a nice jump start on getting your USB basics taken care of. Have Fun!

      

                   Jason

     


     

    Topics: Uncategorized | No Comments »

    “How Do I” Videos for Visual Studio 2010 and Release Candidate Available

    By admin | February 10, 2010

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
     

     


     

    As expected Microsoft is already starting to release some new videos related to VB 2010 and will continue to add new video’s/codes to highlight new features in the new IDE/Framework. Also, Release Candidate1 of Visual Studio 2010 has been released. Check out this link if you want to check out RC1.

    Below are some highlights from the Microsoft HowDoI post…

    —————-

    If you haven’t seen these yet, various members of the languages team have released some How Do I videos on Visual Studio 2010 including new language features in Visual Basic 10 and C# 4.

    1. How Do I: Use Autoimplemented Properties in Visual Basic?
    2. How Do I: Use Implicit Line Continuation in Visual Basic 10?
    3. How Do I: Use Highlight References in the Visual Studio 2010 IDE?
    4. How Do I: Use Code Snippets in the Visual Studio 2010 IDE?
    5. How Do I: Use Generate from Usage in Visual Studio 2010?
    6. How Do I: Enhance Performance in the Visual Studio 2010 IDE when Editing VB Code?
    7. How Do I: Step with The Debugger in Visual Studio 2010?
    8. How Do I: Use Named and Optional Parameters in C# 4.0?
    9. How Do I: Use COM Interop and Office in C# 4.0?

    Also make sure to check out the VS 2010 code samples and walkthroughs.

    Enjoy!

    —————-

    If you want to check them out, goto this link to the main post page. Take care!

                Jason

     


     

    Topics: Uncategorized | No Comments »

    Some Free Training and Tutorials from AppDev

    By admin | October 13, 2009

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
     

      I’ve posted on this site before some free tutorials/training courses from AppDev and now they are offering three more for free. I’m fairly sure that these have not been posted here before. The three free tutorials they are offering right now is Not directly related to VB.NET. They are more in-line with ASP.NET and Visual Studio, Sharepoint, ect… Either way it may be worth it for you to check them out. All you really have to do is login/signup for your account and download.

    ———————-

     

    Free ASP.NET and AJax Training – Download Page

    Basic Overview…

    Start learning Microsoft® ASP.NET or AJAX with award-winning training from AppDev! Your free training is taken directly from our actual courses, and features step-by-step presentations and code walkthroughs by our Microsoft MVP and expert instructors. Most courses also include extras like:
    aHands-on lab exercises aSample Code aPrintable courseware aPre/post exams

     

    ———————-

     

    Free Visual Studio 2008 Training – Download Page

    Basic Overview…

    Start learning Microsoft® Visual Studio® 2008 with award-winning training from AppDev! Your free training is taken directly from our actual courses, and features step-by-step presentations and code walkthroughs by our Microsoft MVP and expert instructors. Most courses also include extras like:
    aHands-on lab exercises aSample Code aPrintable courseware aPre/post exams

     

    ———————-

     

    Free Sharepoint Training – Download Page

    Basic Overview…

    Start learning Microsoft® SharePoint® 2007 with award-winning training from AppDev! Your free training is taken directly from our actual courses, and features step-by-step presentations and code walkthroughs by our Microsoft MVP and expert instructors. Most courses also include extras like:
    aHands-on lab exercises aSample Code aPrintable courseware aPre/post exams

     

    ———————-

     

    Thats about it for now. I have NOT seen any of these tutorials so I don’t know how good/bad the content is. If you watch them feel free to leave a comment with your opinion about the courses. Take Care…

                Jason

    Topics: Uncategorized | No Comments »

    Check out the new VB.NET and .NET Framework version 4.0!

    By admin | September 23, 2009

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
     

      Microsoft has had available for alittle while now a beta of their Visual Studio suite which I think is being called: Visual Studio 2010. Below is a simple overview of DotNET 4.0 Beta…

     Get low cost Computer and Electronics Here!

    Everything you want for your computer and more at Newegg.com.

     ———————

    Overview

     The Microsoft .NET Framework 4 provides the following new features and improvements:    

     ———————

    Click Here for the Framework 4.0 Beta1 ONLY Download Page… - Check further down if you want both the Framework and Visual Studio.NET 2010 Beta1.

     Note: It should be noted that the 4.0 download size can be anywhere from 76.7MB to 380.5MB, depending on whats the computers already has installed. .NET 4.0 will be similar to 3.5 in that it will contain full 2.0 and 3.0, and 3.5 support via a single download.

    ———————

     Visual Studio .NET 2010 Beta1

      If your more interested in Visual Studio then check out Microsofts overview and click on the download links below..

       

     

    Brief Description

    Microsoft Visual Studio 2010 and the .NET Framework 4 are the next generation of Microsoft development tools. They work together to accelerate the process of turning vision into reality for the developer. Visual Studio 2010 Professional has been engineered to support the development of applications for Windows, the Web, and Office.

        

    Overview

    Visual Studio 2010 and the .NET Framework 4 mark the next generation of developer tools from Microsoft. Designed to satisfy the latest requirements of developers, Visual Studio delivers key innovations in the following areas:


    Enabling emerging trends

     

     

    Every year the industry develops new technologies and new trends. With Visual Studio 2010, Microsoft delivers tooling and framework support for the latest innovations in application architecture, development, and deployment.

    Inspiring developer delight

    Ever since the first release of Visual Studio, Microsoft has set the bar for developer productivity and flexibility. Visual Studio 2010 continues the tradition by significantly improving the experience for all software development roles.

    Riding the next generation platform wave

    Microsoft continues to invest in the market-leading operating system, productivity applications, and server platforms to deliver increasing customer value. With Visual Studio 2010, customers will have the tooling support that is required to create amazing solutions around these technologies.

    For more information about Visual Studio 2010 and the .NET Framework 4, visit the Microsoft Visual Studio 2010 Web site.

    ——————–

    Note: Microsoft has setup a couple different ways to download. The first is download via a ‘Web Install’ and the other is a ISO feature via a 2 Part download.

    **Download links below**

    Click Here to goto the Download Page for Web Install…

    Click Here to goto the Download Page for the ISO based downloads…

    ———————

      Remember that all of these downloads are considered Beta1 and therefore you should not make use in production based programming. Youcan, and probably will run into some problems, quirks, and even outright errors. If so, it would be helpful to send the info to Microsoft.

    Have Fun!

           Jason

    Topics: - (.All VB), - (.NET 05/08 Only), - (.NET All + 05/08), - .All VB (Related to All) | No Comments »

    More Microsoft “How Do I” Video Updates and Service Pack 1 for 2008

    By admin | August 29, 2008

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 3 out of 5)
    Loading ... Loading ...
     

      Just wanted to mention that Microsoft officially launched the RTM version Service Pack 1 for Visual Studio 2008 a couple weeks ago. It includes many fixes and some other features and improvements. WPF (Windows Presentation Foundation) performance has been greatly increased as well. Click Here to check out the Service Pack for VB 2008.

        

    Also Microsoft has been adding new How Do I videos for Visual Basic 2008 the past couple of months it appears. Its definitely worth checking out. It looks like Microsoft added many newer videos working with Excel and Microsoft Office and services. Linq and data-based programming looks to be updated as well. Remember that MSDN has many 2005 based videos as well. Anyways, Click Here if you want to check out the full list of MSDN’s “How Do I” video series. Have Fun!

        

              Jason

    Topics: - (.NET 05/08 Only), - (.NET All + 05/08), - .All VB (Related to All) | No Comments »

    Textbox Manipulation in VB and .NET – Using API

    By admin | July 21, 2008

    Click Star to Rate Post
    1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 4.6 out of 5)
    Loading ... Loading ...
     


      This is a basic article on how to do various textbox manipulating that isn't exposed in your normal VB or VB.NET textbox like Page Left or Scroll to the Edge (That I am aware of anyways).

    Note: These codes are basically taken from a example I made at my vbcodesource.com site for VB.NET that shows how to do lots and lots of various textbox based manipulating. Just go to http://www.vbcodesource.com/ under the Visual Basic.NET - Examples page.

    So in Part #1 of this article I will present some codes that will accomplish what is outlined below to a textbox control...

       

    Page Left

    Page Right

    Line Left

    Line Right

    Left Edge

    Right Edge

          

    _________________________________

       

    To accomplish these features I will use the tried and true Windows API. Specifically the SendMessage Function is used. Below is the declaration for VB Classic and VB.NET

       

    Visual Basic 6.0

        

    'Used to Send Messages to the control.

    Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal winHandle As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

         

    Visual Basic.NET 2002/2003/2005/2008

        

    '

    Used to Send Messages to the control.

    Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal winHandle As Int32, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As Int32) As Int32

        

    _________________________________

        

    Now for some Constants...

       

    Private Const WM_HSCROLL = &H114

    Private Const WM_VSCROLL = &H115

    Private Const SB_LINERIGHT = 1

    Private Const SB_LINELEFT = 0

    Private Const SB_PAGERIGHT = 3

    Private Const SB_PAGELEFT = 2

    Private Const SB_RIGHT = 7

    Private Const SB_LEFT = 6

       

    _________________________________

         

    Now all thats really needed is the textbox you want to send messages to and calling the sendmessage api with the right combination of contants to perform the intended function.

        

    _________________________________

       

    NOTE: If your using VB 5.0 or VB 6.0 then change some small things below...

       

    Change - txtControl.Handle.ToInt32   to   txtControl.hWnd

    Change - Unless your getting the SendMessage functions return value then remove the parentheses which are the ( and ) characters.

       

    Thats basically the only changes that are needed.

       

    _________________________________

       

    Page Left / Page Right

        

    '

    'Move the position pageleft.

    SendMessage(txtControl.Handle.ToInt32, WM_HSCROLL, SB_PAGELEFT, 0)

        

    '

    'Move the position pageright.

    SendMessage(txtControl.Handle.ToInt32, WM_HSCROLL, SB_PAGERIGHT, 0)

        

    Line Left / Line Right

       

    '

    'Move the position left.

    SendMessage(txtControl.Handle.ToInt32, WM_HSCROLL, SB_LINELEFT, 0)

       

    '

    'Move the position right.

    SendMessage(txtControl.Handle.ToInt32, WM_HSCROLL, SB_LINERIGHT, 0)

        

    Left Edge / Right Edge

        

    '

    'Move the position to the left edge.

    SendMessage(txtControl.Handle.ToInt32, WM_HSCROLL, SB_LEFT, 0)

         

    '

    'Move the position to the right edge.

    SendMessage(txtControl.Handle.ToInt32, WM_HSCROLL, SB_RIGHT, 0)

      

       

    _________________________________

       

      

      Thats basically all for Part #1. These 6 features do not have native VB or VB.NET codes and therefore the API's are used. As you can see though its pretty simple to add..

        

    Part #2 will go over: Page Up/Page Down, Line Up/Line Down, and Top Edge/Bottom Edge.

        

    Till then, Have fun!

      

                Jason

       

    Topics: - (.5.0/6.0), - (.NET 05/08 Only), - (.NET All + 05/08), - .All VB (Related to All) | No Comments »

    « Previous Entries