stefan stoichev's Library tagged → View Popular, Search in Google
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
in list: C# and VB .net Programing
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.
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.
in list: C# and VB .net Programing
Editing and Displaying Database Values through a DropDownList in GridView.
in list: C# and VB .net Programing
in list: C# and VB .net Programing
-
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
}
}
}
Displaying blob data in a picturebox - .NET C#
Append data to XML document
in list: C# and VB .net Programing
-
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")
- Finaly something to work! - stefan stoichev on 2008-05-23
Selected Tags
Related Tags
Top Contributors
Groups interested in asp
-
web design company India
OffshoreDotNetDevelopment i...
Items: 25 | Visits: 35
Created by: ricky morlie
-
IT
Items: 24 | Visits: 70
Created by: samuel tao
-
Web 2.0
Web 2.0
Items: 11 | Visits: 87
Created by: icepol
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
