Free Programming Website

Free Programming Website www.sourcecodehub.com

Tuesday, October 30, 2012

VB Service Pack Downloads

Microsoft has been pretty good about releasing service packs for its products that includes all the previous fixes and security updates. Below are some links to get Service Packs for most versions of the DotNET Framework.
  
—————————————————————————
    
Service Pack 6 for Visual Basic 6.0
Highlights: Service Pack 6 for Visual Basic 6.0 provides the latest updates to Visual Basic 6.0. It is recommended for all users of Visual Basic 6.0.



Download Page…
  

Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual Source Safe 6.0d

Highlights: Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual Source Safe 6.0d provides the latest updates to these products. It is recommended for all users of Visual Basic 6.0, Visual C++ 6.0 and Visual Source Safe 6.0.


Download Page…

      
     
Microsoft .NET Framework 1.0 Service Pack 3
Highlights: The primary focus of Microsoft .NET Framework 1.0 Service Pack 3 (SP3) is improved security. In addition, the service pack includes roll-ups of all reported customer issues found after the release of the Microsoft .NET Framework 1.0. Of particular note, SP3 provides better support for consuming WSDL documents, Data Execution prevention and protection from security issues such as buffer overruns.SP3 also provides support for Windows XP Service Pack 2 to provide a safer, more reliable experience for customers using Windows XP.


Download Page…
   






Microsoft .NET Framework 1.1 Service Pack 1



Highlights: The primary focus of Microsoft .NET Framework 1.1 Service Pack 1 (SP1) is improved security. In addition, the service pack includes roll-ups of all reported customer issues found after the release of the Microsoft .NET Framework 1.1. Of particular note, SP1 provides better support for consuming WSDL documents, Data Execution prevention and protection from security issues such as buffer overruns.SP1 also provides support for Windows XP Service Pack 2 to provide a safer, more reliable experience for customers using Windows XP.


Download Page…
  


Visual Studio® 2005 Express Editions Service Pack 1

Highlights: This download installs Service Pack 1 for Microsoft® Visual Studio® 2005 Express Editions. Fixes in this Service Pack include stability and security enhancements made in many areas of the product. A comprehensive list of hotfixes requested by customers since the release of Visual Studio® 2005 and included in this Service Pack can be found by following the appropriate link under Related Resources on this page. Download Page…  Microsoft .NET Framework 2.0 Service Pack 1 (x64)Highlights: Microsoft .NET Framework 2.0 Service Pack 1 provides cumulative roll-up updates for customer reported issues found after the release of Microsoft .NET Framework 2.0. In addition, this release provides security improvements, and prerequisite feature support for .NET Framework 3.0 Service Pack 1, and .NET Framework 3.5.Download Page…
  
Microsoft .NET Framework 2.0 (2005) Service Pack 1 (x86)
Highlights: Microsoft .NET Framework 2.0 Service Pack 1 provides cumulative roll-up updates for customer reported issues found after the release of Microsoft .NET Framework 2.0. In addition, this release provides security improvements, and prerequisite feature support for .NET Framework 3.0 Service Pack 1, and .NET Framework 3.5.


Download Page…
  
Microsoft .NET Framework 2.0 (2005) Service Pack 1 Update for Vista
Highlights: During the development of Windows Vista, several key investments were made to vastly improve overall quality, security, and reliability from previous versions of Windows. While we have made tremendous investments in Windows Vista to ensure backwards compatibility, some of the system enhancements, such as User Account Control, changes to the networking stack, and the new graphics model, make Windows Vista behave differently from previous versions of Windows. These investments impact Visual Studio 2005. The Visual Studio 2005 Service Pack 1 Update for Windows Vista addresses areas of Visual Studio impacted by Vista enhancements.



Download Page…
      
Microsoft® Visual Studio® 2005 Team Suite Service Pack 1
Highlights: This download installs Service Pack 1 for Microsoft® Visual Studio® 2005 Standard, Professional, Team Editions.


Download Page…
   
Microsoft .NET Framework 3.0 Service Pack 1


Highlights: Microsoft .NET Framework 3.0 Service Pack 1 provides cumulative roll-up updates for customer reported issues found after the release of Microsoft .NET Framework 3.0. In addition, this release provides security improvements, and prerequisite feature support for Microsoft .NET Framework 3.5.


Download Page… 
    
Visual Studio 2008 (.NET 3.5) Service Pack 1This download installs Visual Studio 2008 Service Pack 1 (SP1) and the .NET Framework 3.5 SP1. SP1 addresses issues that were found through a combination of customer and partner feedback, as well as internal testing. These service packs offer Visual Studio and .NET Framework users improvements in responsiveness, stability and performance.

Download Page…
   

 —————————————————————————
   
 Thats all of the Service Pack downloads for now. If I missed any please send a feedback message on what I missed. :)

   

FREE Visual basic IDE Downloads

The purpose of this page is to provide information on getting and downloading Integrated Developer Environments based around Visual Basic.NET programming.
             
————————————————————
           
SharpDevelop: Free VB.NET/C# IDE alternative to Microsofts Express Edition IDE’s.
  This FREE, Open Source IDE has been around for awhile now and has come a LONG ways. It is still being updated and improved. It is called: #Develop (pronounced SharpDevelop). IT is a Free OpenSource based Integrated Developer Editor that is entirely written in C# and even the source code is available for download. The IDE supports programming in Visual Basic.NET And in C#. There are some Very nice and unique features implemented in this IDE and I suggest you go here and check them out. Below are some of the features they highlight…
            
  • Forms designer for C#, VB.NET and Boo
  • Code completion for C#, VB.NET and Boo (including Ctrl+Space support)
  • Integrated NUnit support plus code coverage (NCover)
  • Integrated debugger
  • Code Analysis with FxCop
  • Refactoring support
  • Multi-framework support (.NET 1.1 and 2.0, Mono, Compact Framework)
  • XML Editing (source and tree view) with XPath search
  • Parser-based code converter (C# to VB.NET / Boo and more)
  • Compile C#, VB.NET & Boo code in the IDE out-of-the-box
  • Code AutoInsert (Alt+Ins)
  • Xml documentation preview
  • Setup projects supported with Windows Installer XML (WiX)
  • Subversion integration
  • Open source, LGPL licensed
  •           
      There is a Feature Tour you can take here if you want to see them all. They also have a page that compares Microsofts FREE Express Edition VB and C# IDE’s to the Sharp Develop IDE. Below is a small portion of the list…
                           
                              
    Feature SharpDevelop 2.1 Visual Studio Express Editions
    Code auto-completion Yes Yes
    Code syntax highlighting Yes Yes
    Windows Forms Designer Yes Yes
    Web Forms Designer No Provided with Visual Web Developer
    Code Coverage Yes No
    Unit Testing Yes No
    Languages Supported C#, VB.NET, Boo C#, C++, VB.NET, J#
                      
    You can check out the complete comparison at this link. 
       
      Anyways, just head on over to the main site page at this link to view all the available info or go to this link if you want to download.
            
    ————————————————————
            
    Visual Basic 2008 Express Edition

      The so-called Express Edition IDEs from Microsoft began with Visual Studio 2005 and became VERY popular. Microsoft has updated the Express Edition to their latest 2008 versions of VS.NET.
     One of the biggest negatives in my opinion is that the Express Editions do NOT support add-ins (Unless thats changed for the new version?). That is quite unfortunate. There are other limitations as well. I am hoping that Microsoft will do a promotion similar to the 2005 versions by giving away the Standard Edition of Visual Studio for those that checks out there resources and give feedback. Visual Studio 2005/2008 Standard edition DOES support Add-ins and x64 (64 Bit) development. I haven’t heard anything concrete on a promotion like that yet.
      The download link below will also have C#, C++, Visual Web Developer, SQL Server, and C++ Express Editions you can download as well. They have a Web Install option or a Offline install option. The Web Install option will download a small download manager and will control the download and installation. Offline installation will allow you to download the complete file to your computers hard drive.
      Below is a small excerp from Microsoft on the Expression Editions…
    Simple…

  • Design Windows Presentation Foundation (WPF) applications with built-in designer support
  • Create rich Windows applications
  • Integrate 2D and 3D graphics, integration of audio and video controls
  • Add cool effects
  • Create data-enabled applications with the lightweight SQL Server Compact Edition or powerful client/server applications with SQL Server 2005 Express Edition 
  • Build applications using LINQ (Language Integrated Query) which adds data querying capabilities for SQL Server, XML, and objects to Visual Basic
  • Develop quickly with IntelliSense support for the latest Visual Basic enhancements

  •  WebInstall – Download Overview Page

     WebInstall – Direct Download
       
     Offline Install Page - Download Entire ISO: Its worth noting that the offline install will be a ISO image that you burn to a DVD disk. Microsoft does have info on how to take care of that. It appears to contain ALL versions of Express and will not just let you pick the VB version? So keep that in mind.
                     
    ————————————————————
                   
    Visual Web Developer 2005 Express
          
  • Provides everything you need to begin building Web applications out of the box.
  • Create great looking and easy-to-use Web applications using an intuitive, WYSIWYG, drag-and-drop user interface designer.
  • Take advantage of more than 60 new reusable controls and hundreds of reusable code snippets to reduce the time needed to create engaging, interactive Web applications.
  • Use Master Pages to manage a consistent site layout in one place.
  • Let IntelliSense give you fast access to methods and libraries for use within your applications.
  • Common Tasks and Smart Tags place commonly accessed Web building functionality one click away.
  •           
    Click here to check out the overview webpage.
                     
    ————————————————————
             
    Visual Basic 5.0 CCE
                   
      This is actually a very old IDE that Microsoft had available as a Free download around the time VB 5.0 was being released. Its called the VB 5.0 Control Creation Edition. Unfortunately though, this IDE will ONLY create Custom Control based projects. But if your into Classic VB then this IDE could be very useful. Its actually pretty hard to find this download anymore. I haen’t seen it at Microsofts download site in a long time. Thankfully i’ve held onto it the past few years.
    Click Here to Download
                    
    ————————————————————
                    
        
      Well, hopefully this page will be of some use. I will add/update whenever changes or updates related to Free IDEs take place. Anyways, Have Fun :)
      

    Sending SMTP Email with Advanced Features in Visual Basic.NET | Part 1 – Adding Multiple Attachments

    This is Part 1 of ‘Sending Email with Advanced Features’ which will show how you can send an email message and add not just one attachment, but pretty much as many attachments as you want. If you haven’t already, I recommend you check out this article I made on the basics of setting up and sending email using the System.NET.Mail SMTP feature in the DotNET Framework. The code i’m using is compatible with Visual Basic .NET 2005, VB 2008, and VB.NET 2010 since i’m using the classes under the System.NET.Mail namespace which is made available in the .NET 2.0, .NET 3.0, .NET 3.5, and the .NET 4.0 Frameworks. I am using SMTP and a Google GMail account to send the email message.

    First of all to get started you will want a instance of a few classes. Below are the ones you’ll need to setup…

    • System.Net.Mail.SmtpClient
    • System.Net.Mail.MailMessage
    • System.Net.Mail.Attachment

    Below are the variables I am using for the classes above…

    'The Simple Mail Tranfer Protocol client with the Host and Port number to use. You will
    'want to change these settings to what you need to use. The host, smtp.gmail.com and port
    'will work if you have a gmail account.
    Dim smtp As New System.Net.Mail.SmtpClient("smtp.gmail.com", 587)
     
     
    'This will contain the actual message data to send.
    Dim eMailmessage As New System.Net.Mail.MailMessage
     
     
    'Will contain the attachment info to send with the message.
    Dim attachToMsg As System.Net.Mail.Attachment

    Now that the main dimension code is done its time to setup your mail message.

    'Use Secure Socket Layer to Encrypt the connection for sending the mail. This needs
    'be set to "True".
    smtp.EnableSsl = True
     
    'Setup the gmail host.
    smtp.Credentials = New System.Net.NetworkCredential("gmailLoginName@gmail.com", "gmailLoginPassword")

    You can now set the email’s Body/Text, Subject, From/Sender, and Recipient.
    eMailmessage.Subject = "Check out my attachments!"
     
    eMailmessage.Body = "I hope you got all of my attachments in this email!"
     
    eMailmessage.From = New Mail.MailAddress("you@hotmail.com, "Jason")
     
    eMailmessage.To.Add("ToPerson@yahoo.com)

    Now before you send your email to the recipient, its time to setup and add more than a single attachment to your message. As you will see adding more than 1 attachment to your message is easy. I am using a OpeFileDialog to open a dialog window to select multiple files. Once the Dialog’s Open button is clicked then I will add all of the Filenames that was selected in the Open Dialog object.

    'Create a openDialog object to be able to select a attachment to the mail message.
    Dim openDLG As New OpenFileDialog
     
    'openDLG.AddExtension = True
    openDLG.ReadOnlyChecked = True
    openDLG.Multiselect = True
    openDLG.Title = "Select the file(s) you want added to the message..."
    openDLG.Filter = "All Files (*.*)|*.*"
     
    If openDLG.ShowDialog = Windows.Forms.DialogResult.OK Then
     
        For Each item As String In openDLG.FileNames
     
            'Create a new System.NET.Mail.Attachment class instance for each file.
            attachToMsg = New System.Net.Mail.Attachment(item)
     
            'Then add the attachment to your message. You have to do this everytime you run the code
            'above.
            eMailmessage.Attachments.Add(attachToMsg)
     
        Next
     
        Msgbox "I have finished adding all of the selected files! You can do more if you want!"
     
    End If

    As you can see, adding multiple attachments to an email is very simple. Now all thats left to do is send your message to your recipient(s).

    'When you are done with setting up your email and add your attachments then you just need
    'to send your message.
    smtp.Send(eMailmessage)

    Thats all there is to it! Do remember though that attachment sizes can add up very quickly. Before fully sending your email, it has to upload every file you attached to the message. So just remember that it could take awhile before its sent to the smtp server for processing. I advise you to use the smtp.SendAsync method to send your email since it will execute the resources for sending the email on a new thread seperate from your applications thread. Otherwise you will have to wait for the mail process to complete before you can continue using your application. I plan on adding a couple more parts in the near future. I plan on showing how to use a class I found that will easly convert rtf code to html code that allows you to use a richtextbox for the body of the email message and make it so the email will look very similar to how it looked and was formatted in the richtextbox control. I also plan on showing how to send an email with Alternative Views so that way you can send your email with different formats like Plain Text and Html and so on which allows the mail reader to pick which view would be best. Anyways, Have Fun!

    Visual Studio 2012 RC1 (Visual Basic 11-2012) – plus Two Free 2010 EBooks

    Update: June 5th, 2012 – Microsoft has now updated the release to Visual Studio 2012 RC1 (Release Candidate 1). The main links below will take you to the VS 2012 download pages.
    Original info Below…
    Microsoft released the latest version of Visual Basic/Visual Studio 2011 as a Beta download a while back. If your interested, below are the basic requirements to run the beta. Also below is the webpage to download the the web-installer or Visual Studio .ISO image which will include all of the major languages like VB 2011, C#, ect… Below that is the link to get your two free ebooks based on Visual Studio 2010: One is: Moving to Visual Studio 2010 and the other is: Programming Windows Phone 7. They have been available for quite a while but I figured I would link to them anyways.
    Here is the main page to download either the web installer or the complete ISO image.
    System Requirements
    Supported Operating Systems•Windows 7 (x86 and x64)
    •Windows 8 Consumer Preview (x86 and x64)
    •Windows Server 2008 R2 (x64)
    •Windows Server 8 Beta (x64)

    Supported Architectures
    •32-bit (x86)
    •64-bit (x64)

    |
    Hardware Requirements•1.6 GHz or faster processor
    •1 GB of RAM (1.5 GB if running on a virtual machine)
    •10 GB of available hard disk space
    •5400 RPM hard drive
    •DirectX 9-capable video card running at 1024 x 768 or higher display resolution

    Yep you probably guessed it. Doesn’t look like neither Vista or Windows XP is going to be able to use, at least the Beta version. Which is a shame for me because I use Vista 64 and like it over all the Microsoft operating systems.
    Beta Links below….

    Click here for the 2011 Beta Professional Edition
    Click here for the 2011 Beta Express Editions
    Click here for the 2011 Beta Standalone Download Page
    ________________________________________
    Click here to get the Free E-book – Why Upgrade to Visual Studio 2010
    Why upgrade to Visual Studio 2010?
    For a limited time, you can download two free e-books from Microsoft Press: Moving to Visual Studio 2010 and Programming Windows Phone 7. Moving to Visual Studio 2010 takes you through the new features and characteristics of Visual Studio 2010 as compared to previous versions of Visual Studio, including Visual Studio.NET 2003, Visual Studio 2005, and Visual Studio 2008.
    Click here to get the Free E-book – Microsoft Press EBook – Programming Windows Phone 7
    Overview - Develop your first applications for Windows Phone 7 using Microsoft XNA and Silverlight—expertly guided by award-winning author Charles Petzold. This book is a gift from the Windows Phone 7 team and Microsoft Press to the programming community.

    Sending SMTP Email with Advanced Features in Visual Basic.NET | Part 2 – Include Alternate eMail Views

    This is Part 2 of the Sending Email using SMTP with Advanced Features series. The first series went over how to add multiple attachments to an email message for someone to download when they view your email. I suggest you check that article out at this web link. Also for the basics of sending Smtp emails you really should check out the article here.
    This article will show how to send your email message with Alternative Views. For instance you can send an HTML based email message and also include a Plain Text Only version in the same email. This can help ensure that the recipient(s) can view your email in case the email provider or client software only supports Text based emails and so on. All you need to do is make your html based message and the plain text only message, then add those views to the email message using the AlternateView class.
    Note: I do want to mention that these series of articles only work with Visual Basic.NET 2005, VB 2008, Visual Basic 2010 and Higher since I am using the class libraries under the System.NET.Mail namespace, which wasn’t added until .NET framework 2.0 and higher which of course includes version 3.5, and DotNet 4.0 (VB 2005, VB 2008, and VB2010).
    First of all to get started you will want an instance of a couple classes. I am using the same gmail based codes I used in the first advanced article for this series.
    • System.Net.Mail.SmtpClient
    • System.Net.Mail.MailMessage

    Here starts the code.
    'The Simple Mail Tranfer Protocol client with the Host and Port number to use. You will
    'want to change these settings to what you need to use. The host, smtp.gmail.com and port
    '587 will work if you use a gmail account.
    Dim smtp As New System.Net.Mail.SmtpClient("smtp.gmail.com", 587)
     
    'This will contain the actual message data to send.
    Dim eMailmessage As New System.Net.Mail.MailMessage
     
    'Used to setup the eMail as an html view.
    Dim htmlView As AlternateView
     
    'Used to setup the mail to have a plain text view.
    Dim plainTextView As AlternateView
     
    'Will temporarily hold the text for the html message view.
    Dim theHtmlMessage As String
     
    'This variable will temporarily hold the plain text format view.
    Dim thePlainMessage As String

    Now you need to setup your credentials and the Secure Sockets Layer (SSL) property. The Secure Sockets Layer, or Ssl property, is to be set to True for many smtp (Simple Mail Transfer Protocol) providers. It is required for Googles Gmail, Microsofts Hotmail, Office Live Mail, and even Yahoo mail.
    'Use Secure Socket Layer to Encrypt the connection for sending the mail. This needs
    'be set to "True".
    smtp.EnableSsl = True
     
    'Setup the gmail host.
    smtp.Credentials = New System.Net.NetworkCredential("gmailLoginName@gmail.com", "gmailLoginPassword")

    Now setup the basics of your email like the recipient(s), subject, and so on…
    eMailmessage.Subject = "Check out my email message!"
     
    eMailmessage.From = New Mail.MailAddress("you@hotmail.com, "Jason")
     
    eMailmessage.To.Add("ToPerson@yahoo.com)

    The next code is the contents of your email message. One will be the body content for the html format view, and the other is the contents for the text based view.
    theHtmlMessage = "<strong>This is Html!</strong><br/><br/><u>This is Html as well!</u>"
     
    thePlainMessage = "This is only plain text! No html formatting!"

    Now that both the plain text and html message is in a string variable its time to add them to the AlternateView Class as a string itself using the CreateAlternateViewFromString function.
    'Setup the mail message as an html view.
    Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString(theHtmlMessage, _
        Nothing, MediaTypeNames.Text.Html)
     
    eMailmessage.AlternateViews.Add(htmlView)
     
    'Setup the mail message as an plain text view.
    Dim plainTextView As AlternateView = AlternateView.CreateAlternateViewFromString(thePlainMessage, _
        Nothing, MediaTypeNames.Text.Plain)
     
        eMailmessage.AlternateViews.Add(plainTextView)

    As you can see, its quite easy to setup your mail message to have available alternate views. Just simply use the CreateAlternateViewFromString function and pass your message as html in one view and plain text in the other view. Now all thats really left is to send your email message to the recipient that you specified in the earlier source code.
    'When you are done with setting up your email and your alternate view, then you just need
    'to send your message.
    smtp.Send(eMailmessage)

    _______________________________

    Thats all there is to it! So, after its all said and done, go ahead and get quite creative with your email messages using html, but always remember that it would be a good idea to also create a basic text email in case the persons mail client doesn’t support html so the recipients can still view your email message. Thats all for Part 2. I’m not exactly sure about Part 3 but it will probably go over sending your email messages to muliple recipients and carbon copys (cc) to other recipients as well. Have Fun!

    Advanced Textbox Manipulation in Visual Basic and VB.NET | Part 2

    This is Part Two of the Advanced Textbox Control Manipulation series. If you haven’t already you should check out Part 1 of this series. That article showed how to use the SendMessage API call to make a Textbox control Page Left, Page Right, Line Left, Line Right, Left Edge, and go to the Right Edge of the contents. This Part 2 post will show how to add the functionality that is outlined below…

    Page UP
    Page Down
    Line UP
    Line Down
    Top Edge
    Bottom Edge

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

    _________________________________

    To accomplish these features I will use the Windows API for most tasks. Specifically the Send Message Function is used. Below is the declaration for Visual Basic 6.0 (same for VB 5.0 as well) and VB.NET. All versions of .NET is supported, even the latest VB 2005, VB 2008, and Visual Basic 2010 versions. You shouldn’t have to change anything from the DotNet codes in this article.

    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, VB 2005, VB 2008 and Visual Basic 2010
    '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…

    Visual Basic 6.0…
    Private Const EM_SCROLL = &HB5
     
    Private Const SB_PAGEDOWN = 3
     
    Private Const SB_PAGEUP = 2
     
    Private Const SB_LINEUP = 0
     
    Private Const SB_LINEDOWN = 1
     
    Private Const SB_BOTTOM = 7
     
    Private Const SB_TOP = 6

    Visual Basic.NET through VB 2008 and VB 2010…
    Private Const EM_SCROLL As Int32 = &HB5
     
    Private Const SB_PAGEDOWN As Int32 = 3
     
    Private Const SB_PAGEUP As Int32 = 2
     
    Private Const SB_LINEUP As Int32 = 0
     
    Private Const SB_LINEDOWN As Int32 = 1
     
    Private Const SB_BOTTOM As Int32 = 7
     
    Private Const SB_TOP As Int32 = 6

    _________________________________

    Now all thats really needed is to call the sendmessage api with the right combination of constants to perform the intended function on your textbox control.

    _________________________________

    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 UP / Page Down
    'Move the cursor position up one page.
    SendMessage(txtControl.Handle.ToInt32, EM_SCROLL, SB_PAGEUP, 0)
     
     
    'Move the cursor position down one page.
    SendMessage(txtControl.Handle.ToInt32, EM_SCROLL, SB_PAGEDOWN, 0)

    Line UP / Line Down
    'Move up by one line.
    SendMessage(txtControl.Handle.ToInt32, EM_SCROLL, SB_LINEUP, 0)
     
     
    'Move down by one line.
    SendMessage(txtControl.Handle.ToInt32, EM_SCROLL, SB_LINEDOWN, 0)

    Go to Top Edge / Go to Bottom Edge
    'The will make the textbox scroll to the top without moving the cursor.
    SendMessage(txtControl.Handle.ToInt32, EM_SCROLL, SB_TOP, 0)
     
     
    'This will make the textbox scroll to the bottom without moving the cusor.
    SendMessage(txtControl.Handle.ToInt32, EM_SCROLL, SB_BOTTOM, 0)

    Below is another method of scrolling the textbox to the Top and Bottom. But this WILL move the caret from its current position. The API method will NOT change the caret position. So using the code below depends on whether your ok with the cursor changing positions or not.

    Scroll to Top with Cursor / Scroll to Bottom with Cursor
    '
    'Scroll the textbox to the Top.
    '
    'Set the cursor to the first character in the textbox which will be at the top of the
    'control.
    TextBox1.SelectionStart = 0
    '
    'Make the textbox scroll to the actually caret postition.
    TextBox1.ScrollToCaret
    '
    '
    'Scroll the textbox to the Bottom.
    '
    'Set the cursor to the last character in the textbox which will be at the bottom of the
    'control.
    TextBox1.SelectionStart = TextBox1.TextLength
    '
    'Make the textbox scroll to the actual caret postition.
    TextBox1.ScrollToCaret

    _________________________________

    These 6 features can really add alittle extra control to your custom notepad program, wordpad program, or any program I guess. As you can see its pretty simple to add. Thats all for Part #2. Have fun!