|
Accessing FTP servers in .NET applications
|
Total Hit (5264) |
<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
|
|
|
How to compress files and data in VB.net
|
Total Hit (3678) |
<b>"Compressing files and data",</b><br>
<a href="http://dotnet.mvps.org/dotnet/faqs/?id=compression&lang=en">
http://dotnet.mvps.org/dotnet/faqs/?id=compression&lang=en</a><br>
<br>
Compressing files and data<br>
CAB format:<br>
Microsoft Cabinet Software Development Kit<br>
<a
....Read More |
Rating
|
|
|
Reusable function to open form by name
|
Total Hit (2399) |
«code LangId=2»Private Sub showForm(ByVal frmName As String)
Dim frm As Form
frm = AppDomain.CurrentDomain.CreateInstanceAndUnwrap( _
Me.GetType.Assembly.GetName.Name, _
System.String.Concat(Me.GetType.Assembly.GetName.Name, ".", frmName) _
)
frm.Show()
End
....Read More |
Rating
|
|
|
|
How to install Compact Framework on Windows Pocket PC
|
Total Hit (2374) |
It may sound easy but I had hard time to find this.
To install Compact Framework on windows pocket pc perform the following steps
1. Download Compact Framework msi file from Microsoft Download center
2. Save downloaded file to some location (e.g. c:\downloads\NETCFSetupv2.msi)
3. Goto Start
....Read More |
Rating
|
|
|
How to find and sort files based on creation time
|
Total Hit (6615) |
The following code will sort file list based on CreationTime
«code LangId=2»Option Explicit On
Option Strict On
Imports System.Collections
Imports System.IO
Module Module1
Private Class CreateTimeComparer
Implements IComparer
Public Function Compare(ByVal x
....Read More |
Rating
|
|
|
How to perform recursive search for files or folders in VB.net
|
Total Hit (4396) |
This is a very common requirement to find all or specific files in a specified foder and all subfolders.
You can use GetDirectories and GetFiles of System.IO.DirectoryInfo for this purpose. Check the following example.
«code LangId=2»Sub FindFilesDemo()
Dim msg As String
Dim ar As Ne
....Read More |
Rating
|
|
|
Copy Directory Content and All subfolders to target path
|
Total Hit (11350) |
This Code will copy all files and subfolders of specified source directory to target location
«code LangId=2» Sub CopyDirectory(ByVal SourcePath As String, ByVal DestPath As String, Optional ByVal Overwrite As Boolean = False)
Dim SourceDir As DirectoryInfo = New DirectoryInfo(SourceP
....Read More |
Rating
|
|
|
A Google-like Full Text Search
|
Total Hit (4498) |
Thanks to Internet search engines like Google and Yahoo!, your search application users are more sophisticated and demanding than ever. Your application users have a wealth of search application knowledge that they're probably not even aware of. Ask one of them to find a website dedicated to their f
....Read More |
Rating
|
|
|
VB.NET & C# comparison cheat sheets
|
Total Hit (4180) |
Because developing with the .NET framework gives you the freedom to use multiple languages it can be a bit of a hassle to choose between them. VB.NET and C# are probably the most wide spread languages and a question that gets asked regularly on the ASP.NET forums is which one to choose. My answer: l
....Read More |
Rating
|
|
|
|
What Is Authorization Manager
|
Total Hit (1127) |
Role-based security has been evolving on the Windows platform since the first release of Windows NT. Using roles, the operating system can make determinations, such as whether a process is privileged, by checking the security context for a group called BUILTIN\Administrators. The operating system ma
....Read More |
Rating
|
|
|
|
|
GotDotNet User Sample: FTP Client in .NET
|
Total Hit (1297) |
This is a simple FTP protocol client component class written in C# using .NET sockets. It implements core functionality of the FTP protocol, so you can connect, change working directory, download and upload files. Masks will be added later.
|
Rating
|
|
|
|
|
|
Using System.Net.Mail
|
Total Hit (862) |
Sending an e-mail with classes of the .Net Framework is pretty easy. Michel Fournier wrote an article titled Sending email from VB.Net in the April 2006 edition of the Level Extreme .Net magazine providing you a good wrapper that does most operations you need when an application needs to send an e-m
....Read More |
Rating
|
|
|
|
|
|
|
How to implement XML and Binary Serialization (All FAQs)
|
Total Hit (808) |
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
|
|
|
|
|
How to run your .net application using admin privilege under Vista?
|
Total Hit (959) |
Assume you're writing some application that really - I mean really really - needs administrative privileges (does it? you must be kidding). So, you want it to run evelated as an administrator. How to tackle this requirement in a Windows Vista and UAC world where even an administrator is locked down
....Read More |
Rating
|
|
|
The implementation of Flags using bitwise operators
|
Total Hit (1012) |
Bitwise operators give you the ability to store multiple settings in a single primitive data type (e.g. an integer). This is useful when a single item has potentially more than one setting of the same type. For example, a message box could have an Ok button, a Cancel button, a Retry button or any co
....Read More |
Rating
|
|
|
Writing Provider-Independent Data Access Code with ADO.NET 2.0
|
Total Hit (962) |
When you need to write an application that allows users to select the database provider, the application code itself needs to be completely provider-independent. ADO.NET 2.0 helps you create and deliver database applications even when you don't know what database your clients are using.
....Read More |
Rating
|
|
|
Display Multiple reports using single ReportViewer control
|
Total Hit (1114) |
It is easy to get the ReportViewer Control to report off of a DataSet that is set during design time. But what if you want to use code to cause one ReportViewer control to display many totally different reports using your own O/R mapper collection instead? It is not easy to see how to do this, but i
....Read More |
Rating
|
|