|
List all running Windows processes
|
Total Hit (2744) |
The System.Diagnostics.Process class exposes the GetProcesses static method, that returns a list of all running processes. It is quite easy to leverage this feature to display all running processes in a ListBox or ComboBox control:
«Code LangId=2»
' This code assume that you've used the followin
....Read More |
Rating
|
|
|
SearchString - Searching a string in case [in]sensitive mode
|
Total Hit (2303) |
«Code LangId=2»
' Search the specified string, with the case-sensitive mode or not
' Returns the index of the first occurrence found, or -1 if not found
Public Function SearchString(ByVal source As String, ByVal search As String, _
Optional ByVal ignoreCase As Boolean = False) As Integer
....Read More |
Rating
|
|
|
String operation in vb.net
|
Total Hit (1887) |
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
|
|
|
Tutorial - Language and Syntax changes in VB.Net for VB6 Programmers
|
Total Hit (11251) |
If you are a VB6 programmer and want to learn VB.net then it will be easier for you but still you need to learn new language and syntax changes in VB.net. This article is for VB6 programmers who are moving to VB.net. New programmers can skip this article, we will cover each language feature in detai
....Read More |
Rating
|
|
|
DecodeBase64 - Decoding a string from base64
|
Total Hit (2882) |
«Code LangId=2»' Returns the input string decoded from base64
Private Function DecodeBase64(ByVal input As String) As String
Dim strBytes() As Byte = System.Convert.FromBase64String(input)
Return System.Text.Encoding.UTF8.GetString(strBytes)
End Function
«/Code»
....Read More |
Rating
|
|
|
|
|
Create console apps that return an exit code
|
Total Hit (3240) |
Writing an application that returns an ERRORLEVEL to Dos is quite difficult in VB6, because you are forced to use a Windows API that ends the application immediately, thus preventing orderly release of resources. Conversely, this task is quite simple in VB.NET, thanks to the Exit static method of th
....Read More |
Rating
|
|
|
Using multiple fields as value for the DropDownList control's items
|
Total Hit (4116) |
Being an avid Access Programmer I have been frustrated with the limitation of VB DropDownLists to using only 1 field as the value. I found a way to simulate/work around this behavior with concatenation of several database fields at the query level to be my columns(i.e. Select KeyId1 + '~' + KeyId2 +
....Read More |
Rating
|
|
|
Accessing FTP servers in .NET applications
|
Total Hit (5237) |
<p>[From: "Accessing FTP servers in .NET applications",<br>
<URL:<a href="http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en">http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en</a>>]<br>
Accessing FTP servers in .NET applications<br>
Samples:<br>
<br>
How to access a File Tr
....Read More |
Rating
|
|
|
|
|
|
Exception debugging in Visual Studio .NET
|
Total Hit (2537) |
The Visual Studio debugger offers complete control on what happens when an application throws an exception, or calls a .NET method that throws an exception. You set all the relevant options from inside the Exceptions dialog box, which you bring up with the Debug | Exceptions menu command. This dialo
....Read More |
Rating
|
|
|
Avoid duplicate entries for the same serviced component
|
Total Hit (2604) |
A common mistake when creating a .NET component that runs under Component Services - that is, a class that inherits from ServicedComponents - is that you forget to assign a fixed version and/or GUID to the component being built. In this case, whenever the assembly is modified and recompiled, a new v
....Read More |
Rating
|
|
|
|
|
Building a Stock-Quotes Web Service
|
Total Hit (1361) |
I guess you might be having some information on what Web Services. If not you can read .net101's article about Web Service Part 1 -Basics. In the current article we will be concentrating on building and consuming a Web Service which delivers "Stock Quotes" on the .NET Platform. We will be using Yaho
....Read More |
Rating
|
|
|
|
Introduction to Exception Handling in Visual Basic .NET
|
Total Hit (957) |
This article provides an overview of structured and unstructured exception handling in Visual Basic .NET. It includes considerations that help you choose the right exception-handling alternative, the approaches involved in each alternative, how to create your own exceptions, and the exception object
....Read More |
Rating
|
|
|
Object Oriented Programming with VB.NET and C#
|
Total Hit (484) |
.NET is fully object oriented platform that allow languages to take full advantage of these OO features. The features include:
«LI»Namespace
«LI»Classes
«LI»Objects
«LI»Encapsulation
«LI»Overloading
«LI»Inheritance
«LI»Overriding
«LI»Interfaces
«LI»Polymorphism
....Read More |
Rating
|
|
|
How Do I...Create a Client of a Remote Server?
|
Total Hit (753) |
If you haven't already read the section How Do I Create a Remote Server?, please read this first. The client references the server assembly for metadata, so you have to compile the server before the client. The code for the client is listed below.
....Read More |
Rating
|
|
|
|
Virtual ListBox
|
Total Hit (2149) |
Virtual List Boxes can be used if you ever need to try and show a list containing a vast quantity of data. Instead of adding physical objects to the ListBox, instead you tell it how many rows there should be, and it simply defers all drawing of items to the owner of the box using owner draw item met
....Read More |
Rating
|
|
|
Custom Actions - Part 1
|
Total Hit (1948) |
Custom Actions are deployment projects .NET programs written by your team that execute near the end of the installation process. You can use them to perform installation shores hard to implement with the existing features exposed by the setup project, in this order of ideas a custom action can insta
....Read More |
Rating
|
|
|
How the System Deals with Text
|
Total Hit (1906) |
This chapter describes how text is used in a typical computer operating system. Specific descriptions are given of how text is used in Visual Basic .NET. This chapter will show some examples to set the context of how text processing was performed before Visual Basic .NET and the .NET Framework. With
....Read More |
Rating
|
|
|
NetProjectZip
|
Total Hit (794) |
NetProjectZip is an update of the VBPZip utility for VS.NET Projects and Solutions. The idea of the project is to make it easier to copy the important parts of a project or solution without any of the unnecessary files created as part of the build or IDE's working.
In VB, zipping was a fairly dif
....Read More |
Rating
|
|
|
How Do I...Apply validation when reading XML?
|
Total Hit (992) |
This sample illustrates how to apply validation when reading and parsing XML data using the XmlValidatingReader class. Validation is the process of enforcing rules on the XML content either via a Document Type Definition (DTD) or a schema. At it's simplest, a schema is an XML representation of a DTD
....Read More |
Rating
|
|
|
How Do I...Load XML data into an XmlDataDocument?
|
Total Hit (961) |
This sample illustrates how to load XML into the XmlDataDocument class. This class extends the XmlDocument class, allowing structured data to be stored, retrieved, and manipulated through the DataSet class, which provides a relational view onto the loaded XML data. This affiliation between the XmlDo
....Read More |
Rating
|
|
|
How to implement XML and Binary Serialization (All FAQs)
|
Total Hit (805) |
Binary:
1. Which class is responsible for binary serialization?
2. What does it take to make my object serializable?
3. What are the main advantages of binary serialization?
4. How do you encapsulate the binary serialization?
5. How do you encapsulate the binary deserialization method?
6. Will
....Read More |
Rating
|
|