Skip to main content

Sep
2
2008

DotNetZip is a small, easy-to-use class library for manipulating .zip files. It can enable .NET applications written in VB.NET, C#, any .NET language, to easily create, read, and update zip files. It supports these kinds of scenarios:
- creating a zip archive, adding files or directories into the archive
- extracting files from an existing archive
- modifying an existing archive - removing entries from an archive or adding new entries to an archive
- password protecting entries in the archive
- getting entry input from a file or a stream
- reading a zip file from a file or a stream
- extracting an entry into a file or a stream

asp asp.net c# zip dotnetzip archive

in list: C# and VB .net Programing

Aug
25
2008

In the previous article, 30 Common String Operations in C# and VB.NET – Part I, we explored 15 common String operations while working with the String class. In Part II of the article, we will continue with the series and cover 15 more.

asp asp.net c# string operators

in list: C# and VB .net Programing

In this article, I have compiled some common String operations that we encounter while working with the String class. In Part I, I have covered 15 common string operations. In the next article, I will continue this article and cover 15 more.

asp asp.net c# string operators

in list: C# and VB .net Programing

Jul
17
2008

  • public partial class frmMain : Form
    {
    private gma.System.Windows.UserActivityHook actHook;
    private bool bCtrl = false;
    private bool bAlt = false;

    private void frmMain_Load(object sender, EventArgs e)
    {
    actHook = new gma.System.Windows.UserActivityHook(false, true);

    actHook.KeyDown += new KeyEventHandler(actHook_KeyDown);
    actHook.KeyUp += new KeyEventHandler(actHook_KeyUp);
    }

    void actHook_KeyUp(object sender, KeyEventArgs e)
    {
    if (e.KeyCode == Keys.LControlKey || e.KeyCode == Keys.RControlKey)
    {
    bCtrl = false;
    }
    if (e.KeyCode == Keys.LMenu || e.KeyCode == Keys.RMenu)
    {
    bAlt = false;
    }
    }

    void actHook_KeyDown(object sender, KeyEventArgs e)
    {
    if (e.KeyCode == Keys.LControlKey || e.KeyCode == Keys.RControlKey)
    {
    bCtrl = true;
    }
    if (e.KeyCode == Keys.LMenu || e.KeyCode == Keys.RMenu)
    {
    bAlt = true;
    }
    if (e.KeyCode == Keys.D1 && bAlt && bCtrl)
    {
    // Handle "ctrl + alt + 1" here
    }
    }
    }
May
23
2008

  • if(!File.Exists("F:/Documents and Settings/Administrator/Desktop/Account.xml")) {   XmlTextWriter textWritter=new XmlTextWriter("F:/Documents and Settings/Administrator/Desktop/Account.xml", null);  textWritter.WriteStartDocument(); textWritter.WriteStartElement("USERS"); textWritter.WriteEndElement();   textWritter.Close(); }       XmlDocument xmlDoc=new XmlDocument();   xmlDoc.Load("F:/Documents and Settings/Administrator/Desktop/Account.xml");   XmlElement subRoot=xmlDoc.CreateElement("User"); //UserName XmlElement appendedElementUsername=xmlDoc.CreateElement("UserName"); XmlText xmlTextUserName=xmlDoc.CreateTextNode(txtUsrName.Text.Trim()); appendedElementUsername.AppendChild(xmlTextUserName); subRoot.AppendChild(appendedElementUsername); xmlDoc.DocumentElement.AppendChild(subRoot); //Email   XmlElement appendedElementEmail=xmlDoc.CreateElement("Email"); XmlText xmlTextEmail=xmlDoc.CreateTextNode(txtEmail.Text.Trim()); appendedElementEmail.AppendChild(xmlTextEmail); subRoot.AppendChild(appendedElementEmail); xmlDoc.DocumentElement.AppendChild(subRoot);   xmlDoc.Save("F:/Documents and Settings/Administrator/Desktop/Account.xml")
1 - 20 of 27 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top