Tuesday, 31 July 2012

How to Change Permission of Folder in Visual Basic / C#

VB.NET Set Folder Permission / C#  Set Folder Permission  Allow/Deny In this snippet we create a new directory and set the permission of it to Fullcontrol using ACL.  VB code  Private Shared Sub ChangePermissionOfDir()        'Folder         Dim NewDirectory As DirectoryInfo = Directory.CreateDirectory("C:\Test001")        Dim dSecurity As DirectorySecurity = NewDirectory.GetAccessControl()       ...

How to create DataTable on the fly and add Rows (data) using VB.NET/C#

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 false false false false EN-US X-NONE X-NONE ...

Monday, 9 July 2012

Create 30 Days Trial Version with ProductKey Application

Create 30 Days Trial Version Windows Application With Product Key Imports System.Windows.FormsPublic Class ProdVersoin  Private Sub ProdVersoin_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load If My.Settings.Register = True Then            MainMdi.Show()            Me.Close()       ...