|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Creating an XML Document with the XMLTextWriter Class
|
Total Hit (2755) |
To quickly create a new XML document you can use the XMLTextWriter class. There are many ways to create XML in the .NET Framework, but the XMLTextWriter is one of the quickest.
«Code LangId=2»
Dim mywriter As System.Xml.XmlTextWriter
mywriter = New System.Xml.XmlTextWriter("c:\myxml.xml", Not
....Read More |
Rating
|
|
|
App.Path in VB.NET
|
Total Hit (3144) |
The APP Object no longer exists in VB.NET, so calling App.Path to get the location of your application does not work. Thankfully there are many other ways to do this in VB.NET, here are a few.
NOTE: Some of these will only work for forms and not DLL's without any UI. The first two that reference
....Read More |
Rating
|
|
|
Mail Tutorial in VB.NET
|
Total Hit (3296) |
Microsoft has made life more easy by adding an in-built .NET class for SMTP Mail. This article will show you how you can take advantage of System.Web.Mail namespace in VB.Net
«B»Basic Mail Message«/B»
«Code LangId=2»
Imports System.Web.Mail
Dim m As New System.Web.Mail.MailMessage()
Wi
....Read More |
Rating
|
|
|
|
Running an Insert SQL Query with ADO.NET and VB.NET
|
Total Hit (1612) |
If you have SQL server setup on your machine and the Northwind database then this example should work for you. You may have to change the password for the sa account as it's blank in the example.
|
Rating
|
|
|
Load a DataGrid Contol with XML Data using ADO.NET
|
Total Hit (1405) |
You will need to create a new Form, and then add three controls to it. A Button called btnImportXML, a DataGrid called DataGrid and a TextBox called txtPath.
Run the project and type the complete path to your XML document in the Textbox then click the Button. The DataGrid will be loaded with you
....Read More |
Rating
|
|
|
Sending Mail in VB.NET using Sockets
|
Total Hit (3532) |
This class provides all the functionality. This class was implemented without error handing on purpose to make it easier to understand the program flow.
|
Rating
|
|
|
Sending a File to a Web Server
|
Total Hit (2930) |
«B»Description«/B»
This is a working example of sending a file to a web server, and then processing the file from memory without saving it to a file.
«B»ASP Page Code«/B»
You will need to create a new Web Form and add this ASP.NET code to it.
«Code LangId=2»
<%@ Page Language="vb" Au
....Read More |
Rating
|
|
|
Singleton Design Patten in VB.NET
|
Total Hit (2806) |
The Singleton pattern ensures that only one instance of a class is created. All objects that use an instance of that class use the same instance. This is the most common design pattern, and easy to implement, but very powerful when used properly.
|
Rating
|
|
|
String operation in vb.net
|
Total Hit (1899) |
The following example uses some of the methods discussed in the Basic String Operations topics to construct a class that performs string manipulations in a manner that might be found in a real-world application. The MailToData class stores the name and address of an individual in separate properties
....Read More |
Rating
|
|
|
|
|
|
|