You are viewing our Forum Archives. To view or take place in current topics click here.
Visual Basic Source code list
Posted:

Visual Basic Source code listPosted:

noxxprodigy
  • Ladder Climber
Status: Offline
Joined: Oct 21, 201013Year Member
Posts: 358
Reputation Power: 13
Status: Offline
Joined: Oct 21, 201013Year Member
Posts: 358
Reputation Power: 13
Visual Studio 2010 Source code
Application Samples
These samples show how to create various types of applications and use the project, user and assembly tasks. There are stored in the Applications Samples directory.
AppEvents: Demonstrates the application events accessed through the Project Designer
ClickOnce: Deploys and updates an application using ClickOnce
ConsoleApps: Demonstrates simple input and output using the console window.
Environment: Demonstrates the use of several classes that provide environment information.
Excel: Demonstrates how to use Visual Basic to start Excel, create a workbook from a template, update cells in a worksheet that then populate graphs in the workbook, and perform other tasks
Game: Demonstrates the My feature, object-oriented programming, and drawing.
Logging: Uses the My.Application.Log object to log information to files and event logs.
Multithread: Shows two different ways to implement multithreaded tasks.
MyResources: Demonstrates the My.Settings and My.Resources objects.
PowerPoint: Demonstrates how to start PowerPoint, create a blank presentation, add a slide and content, print slides, save your changes, and exit PowerPoint from within a Visual Basic application.
PrintformSample: Demonstrates use of the Print Preview Functionality.
SendMail: Shows how to send email over SMTP using classes in the System.Web.Mail namespace
TCPRemoting: Shows how to use the .NET Framework remoting architecture. It uses XML configuration files to specify available objects and server location information
Client
RemoteHost
ThreadUIUpdate: Shows how to update the user interface when data is supplied from a different thread.
UpgradeSample: Shows an application in Visual Basic 6.0 and how that application might be upgraded to Visual Basic 2010
UserInfo: Provides an overview of the My.User object and the Login Form template. It implements a simple custom authentication

Data Samples
Database related samples are stored here.
CreateDB: Shows how to execute SQL statements from code to create a database, a table, a stored procedure, and a view
CustomDataControls: Demonstrates how to use your own controls with the Data Source window
DataComboBox: Shows how to bind data to ComboBox and DataGridView controls
DataSearch: Demonstrates how to display a subset of data from within your database
DataValidation: Demonstrates the Dataset Designer and uses the PropertyChanged events to validate user input
LocalData: Demonstrates the local data features of Visual Studio, including the Data Sources window, TableAdapters, and the BindingSource component. Also shows how to create data-bound forms without having to write code and how to connect to a database file
ObjectBinding: Demonstrates how you can bind controls to objects other than database components
OCS: Demonstrates how to use Microsoft Synchronization Services for ADO.NET for two-tier download-only synchronization
Serialization: Demonstrates how to serialize and deserialize an object
StoredProcedures: Demonstrates how to programmatically create and use stored procedures with ADO.NET and Microsoft SQL Server
XML: Shows how to use the XmlDocument class, which exposes the XML Document Object Model, or DOM, to manipulate XML data

Language Samples
These samples demonstrate various Visual Basic language features. They are stored in the Language Samples directory.

Here is the list of Visual Studio 2010 samples dedicated to new features found in Visual Basic 10*:
AutoImplementedPropSample
CollectionInitializersSample
CovarianceSample
ImplicitLCSamples
StatementLambdasSample
SimpleVariance - NEW
PythonSample - NEW
Here is the complete list of Language Samples*:
APICalls: Demonstrates calling Win32 API functions to enumerate and control processes and windows, and to query and change system settings
arrays: Creates arrays of Integer and Object values, and sorts and searches arrays
AutoImplementedPropSample: Contains two source files showing similar source code, one using auto implemented properties and the other using the existing expanded property syntax
CollectionInitializersSample: Shows how you can use collection initializer syntax to create arrays and collections
CovarianceSample: Demonstrates the co/contravariance feature and the 'In' and 'Out' keywords used when declaring generic interface type parameters
CustomExceptions: Demonstrates custom exceptions and global exception handling
DateTime: Demonstrates how the DateTime and TimeSpan methods work
FileSystem: Demonstrates the how to use FileSystem methods
Generics: Shows how to create various generic collections and how to manipulate them
ImplicitLCSamples: This sample contains two source files showing similar source code using implicit and explicit line continuation
StatementLambdasSample: Statement lambdas allow you to declare procedures with multiple statements inside other procedures
StringFormatting: Shows how to display numeric, date/time, and enumeration values as strings by using a variety of standard and custom culture-specific format codes
Strings: Demonstrates how to use String methods
TryCatch: Shows how to handle exceptions in applications by using Try...Catch...Finally
VBLanguage: Highlights several Visual Basic language features, including generics, operator overloading, and the Using keyword
VBOOP: Demonstrates the options available with object-oriented programming
XMLComments: Demonstrates the XML comment feature of Visual Basic

LINQ Samples
The LINQ samples are stored in the Language Samples\LINQ Samples\ directory
DynamicQuery: Code to create LINQ queries at run time
ExpressionTreeVisualizer: View an expression tree
LinqToNorthwind: A basic example of how to use LINQ To SQL to query a database
LinqToXMLDatabinding: Bind LINQ to XML code to WPF controls
LinqToXMLIntro: Get started using LINQ to XML
ObjectDumper: A utility for writing the output from a LINQ query to the screen in text mode
Reflector: Use LINQ to right queries against the objects in your code using the Reflection APIs
Rss Aggregator: This sample acts as a tiny web server that aggregates several RSS feeds
SampleQueries: This is the most important sample and contains about 500 examples of how to use each of the query operators in LINQ to Objects, LINQ to SQL, LINQ to XML and LINQ to DataSet
SimpleLambdas: Several examples of how to write and use lambda expressions
WinFormsDataBinding: Learn how to display LINQ queries with grids in a Windows form. It includes a one to many query example
XQuery: Another simple LINQ to XML sample query. This sample shows the minimal code necessary to write a LINQ to XML query

Security Samples

There is one security example stored in the Security Samples directory.
Security: This sample demonstrates how to modify security permissions through permission classes and permission attributes

Server Components Samples

You can find server related examples in Server Components Samples directory
COMPort: Demonstrates how to control a communications (COM) port
EventLog: Demonstrates how to create and delete event logs and how to read from and write to system event logs and custom event logs by using the EventLog component and the My.Application.Log object
MessageQueue: Shows how to send and receive message-queue messages from Windows Forms applications
MSMQClient
MSMQListener
PerfCounters: Shows how to read from and write to performance counters to track the performance of the operating system and .NET Framework applications
ProcessClass: The Process class is used to perform a variety of tasks such as commandline processing and listing information about currently running processes
ProcessViewer: The processes on the current computer are displayed in a ListView control by calling the GetProcesses method
ServiceManager: Shows how to control Windows Services by using the System.ServiceProcess namespace
WMI: Demonstrates how to use objects in the System.Management namespace to access Windows Management Instrumentation (WMI) and to query system information such as operating system name, version, manufacturer, and computer name
TabletPC Samples
The Tablet Personal Computer examples are found in the TabletPC Samples directory
BackOfPenErase: Demonstrates how to respond to the eraser on the back of a digitizer stylus
ContextEnabledForm: Demonstrates the context-sensitive capabilities of Microsoft Windows XP Tablet PC Edition 2005
DrawingAttributes: Demonstrates common ways of manipulating the attributes that control the visual style of drawn ink, including size, shape, color, and position
EnablingGestures: Demonstrates the system-recognition of gestures in Windows XP Tablet PC Edition 2005
InkEnabledTextBox: Demonstrates text recognition options that are available on the Tablet PC
PowerAware: Demonstrates some of the classes that you can use to manage the power status of a computer
SimpleTextRecognition: Demonstrates the built-in recognizers that you can use to set up text recognition
SpeechRecognition: Demonstrates the capabilities of the Speech API
Windows Communication Foundation (WCF) & Windows Workflow Foundation 4 (WF) Samples
The following WCF samples are found in the WCF Samples directory with the main VB samples.
Chat: Demonstrates how to implement a multiparty chat application by using PeerChannel. Messages sent by any instance of a chat application are received by all other instances
Predictor: Demonstrates the difference between Active Server Methods (ASMX) and Windows Communication Foundation (WCF) technologies
WindowsForms: Demonstrates a service that implements a contract that defines a request and reply communication pattern
Additional WCF and WF samples can be found in a supplemental download on the releases page.
Windows Forms Samples
The Windows Forms samples are found in the Winforms Samples directory.
Clipboard: Demonstrates how to copy and retrieve Clipboard items in multiple formats
CommonDialogs: Demonstrates how to use the OpenFileDialog, SaveFileDialog, ColorDialog, and FontDialog components to work with files, colors, and fonts
DragDrop: Demonstrates drag-and-drop functionality with text, images, and tree-view nodes
DrawUserControl: Demonstrates how to create custom-drawn user controls, use them on a form, enable them to respond to events, and define properties for use in Design view
DynamicControls: Demonstrates how to add controls to a form in a Windows Forms application at run time
ExplorerApp: Contains two forms that have split-pane windows, similar to Windows Explorer
GDIAnimation: Demonstrates how to implement animation, such as moving text, a bouncing ball, and an animated image, by using the System.Drawing namespace objects
GDIBrushes: Demonstrates how to customize a brush by using the Brush object
GDIImages: Demonstrates the manipulation of images. Manipulations include zooming, resizing, rotating, and clipping
GDIPens: Demonstrates how to customize a pen by using the Pen object
GDIText: Shows the effects of text options. Text options include shadow, embossing, block text, shearing, and reflection
HelpSample: Shows how to add Help to a Windows-based application by using the ToolTip, HelpProvider, and ErrorProvider controls
InheritForm: Shows how you can use inheritance with Windows Forms
ListBoxComboBox: Demonstrates several basic ListBox and ComboBox tasks, such as adding items, binding to a database table, and accessing a selected item
Menus: Demonstrates how to use MenuStrip controls in Windows Forms applications to create menus at runtime and handle menu events
NotifyIcon: Demonstrates how to create a program that displays an icon in the notification area by using the NotifyIcon control and its associated ContextMenu
Printing: Demonstrates how to use the My.Printers object to print text and configure a printer
RegExpressions: Demonstrates how to validate user input by using the Regex class, which represents regular expressions
Simple Browser: Demonstrates how to create a simple Web browser by using the WebBrowser control
StatusStrip: Demonstrates how to display various types of data visually in the StatusStrip control
TopLevelForms: Demonstrates how to implement an application that supports multiple windows that appear separately in the taskbar
ValidateText: Provides a comparison of two ways of validating text*: by using regular expressions in a custom TextBox control and by using the MaskedTextBox component
Credit To microsoft for making this code
Credit To me for finding it all

The following 2 users thanked noxxprodigy for this useful post:

alecn1519 (03-23-2011), Kr3wModz (03-02-2011)
#2. Posted:
Kr3wModz
  • Ladder Climber
Status: Offline
Joined: Oct 21, 201013Year Member
Posts: 314
Reputation Power: 19
Status: Offline
Joined: Oct 21, 201013Year Member
Posts: 314
Reputation Power: 19
Thanks man this is pretty cool.

Stupid question but umm what do i do with the stuff on this post? like is there a way to better something or whats up lol. (sorry for the stupid question)
#3. Posted:
AREALLYCRAZYGUY
  • New Member
Status: Offline
Joined: Feb 28, 201113Year Member
Posts: 27
Reputation Power: 0
Status: Offline
Joined: Feb 28, 201113Year Member
Posts: 27
Reputation Power: 0
thankyou so much!!!

MY friend created a chat program with this and im working on some stuff and this kinda helped yay!
#4. Posted:
noxxprodigy
  • Ladder Climber
Status: Offline
Joined: Oct 21, 201013Year Member
Posts: 358
Reputation Power: 13
Status: Offline
Joined: Oct 21, 201013Year Member
Posts: 358
Reputation Power: 13
thnx for all your feedback
#5. Posted:
Z61
  • V5 Launch
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
seems like a major copy and paste
#6. Posted:
Bighair
  • Powerhouse
Status: Offline
Joined: Sep 26, 201013Year Member
Posts: 401
Reputation Power: 17
Status: Offline
Joined: Sep 26, 201013Year Member
Posts: 401
Reputation Power: 17
-Zachman61- wrote seems like a major copy and paste


With a hint of what is the format tool?
#7. Posted:
Z61
  • TTG Fanatic
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Bighair wrote
-Zachman61- wrote seems like a major copy and paste


With a hint of what is the format tool?

Well for one thing it has no code in it at all
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.