Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
QuestionHow to access cookie values in a single domain? Pin
Reena.E27-Dec-07 17:30
Reena.E27-Dec-07 17:30 
AnswerRe: How to access cookie values in a single domain? Pin
Paul Conrad28-Dec-07 10:20
professionalPaul Conrad28-Dec-07 10:20 
GeneralByte to hex string conversion Pin
piyush123027-Dec-07 17:27
piyush123027-Dec-07 17:27 
GeneralRe: Byte to hex string conversion Pin
Scott Dorman27-Dec-07 18:15
professionalScott Dorman27-Dec-07 18:15 
GeneralRe: Byte to hex string conversion Pin
Colin Angus Mackay28-Dec-07 0:12
Colin Angus Mackay28-Dec-07 0:12 
GeneralRe: Byte to hex string conversion Pin
piyush123028-Dec-07 3:37
piyush123028-Dec-07 3:37 
GeneralRe: Byte to hex string conversion Pin
Luc Pattyn28-Dec-07 4:25
sitebuilderLuc Pattyn28-Dec-07 4:25 
General[Message Deleted] Pin
Aparna.B27-Dec-07 17:11
Aparna.B27-Dec-07 17:11 
GeneralRe: FTP Pin
KaptinKrunch28-Dec-07 3:41
KaptinKrunch28-Dec-07 3:41 
GeneralDateTime Format Pin
eggie527-Dec-07 16:42
eggie527-Dec-07 16:42 
GeneralRe: DateTime Format Pin
JoeRip27-Dec-07 17:55
JoeRip27-Dec-07 17:55 
GeneralRe: DateTime Format [modified] Pin
JoeRip27-Dec-07 18:00
JoeRip27-Dec-07 18:00 
GeneralRe: DateTime Format Pin
Xmen Real 27-Dec-07 22:19
professional Xmen Real 27-Dec-07 22:19 
GeneralRe: DateTime Format Pin
PIEBALDconsult28-Dec-07 13:38
mvePIEBALDconsult28-Dec-07 13:38 
GeneralRe: DateTime Format Pin
eggie528-Dec-07 13:44
eggie528-Dec-07 13:44 
Questionhow to get motherboard and hard-disk serial number ? Pin
E_Gold27-Dec-07 11:03
E_Gold27-Dec-07 11:03 
AnswerRe: how to get motherboard and hard-disk serial number ? Pin
Kristian Sixhøj27-Dec-07 11:14
Kristian Sixhøj27-Dec-07 11:14 
AnswerRe: how to get motherboard and hard-disk serial number ? Pin
Paul Conrad27-Dec-07 15:01
professionalPaul Conrad27-Dec-07 15:01 
AnswerRe: how to get motherboard and hard-disk serial number ? Pin
Abhijit Jana27-Dec-07 21:42
professionalAbhijit Jana27-Dec-07 21:42 
QuestionHow to change the input language programmatically ? Pin
Aldorado27-Dec-07 10:41
Aldorado27-Dec-07 10:41 
AnswerRe: How to change the input language programmatically ? Pin
Aldorado27-Dec-07 11:22
Aldorado27-Dec-07 11:22 
GeneralRe: How to change the input language programmatically ? Pin
Paul Conrad27-Dec-07 15:01
professionalPaul Conrad27-Dec-07 15:01 
GeneralRe: How to change the input language programmatically ? Pin
t.alkahtiri21-Mar-10 22:38
t.alkahtiri21-Mar-10 22:38 
GeneralRe: How to change the input language programmatically ? Pin
Avner L28-Jul-13 5:57
Avner L28-Jul-13 5:57 
GeneralDelete childnodes and not rootnode using the checkbox in the Treeview property Pin
T4AMD27-Dec-07 9:11
T4AMD27-Dec-07 9:11 
private void butDelete_Click(object sender, EventArgs e)
{
try
{
OleDbCommand deleteNode = new OleDbCommand("", dbProfiles);


{
//Check if the selectedNode is not root node.
//I have changed the code below to make the checkbox delete the child node and not the root node. Is //there anything else I need to add??
if (tvFavorites.SelectedNode.Tag == null && tvFavorites.SelectedNode.Checked == true)
{
if (MessageBox.Show("Do you want to delete the \"" + tvFavorites.SelectedNode.Text + "\" folder and all its files?", "Delete Folder", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
deleteNode.CommandText = "delete from favFiles where folder_id = " + tvFavorites.SelectedNode.Name;
if (dbProfiles.State == ConnectionState.Closed)
dbProfiles.Open();
deleteNode.ExecuteNonQuery();
deleteNode.CommandText = "delete from favFolders where folder_id = " + tvFavorites.SelectedNode.Name;
deleteNode.ExecuteNonQuery();
dbProfiles.Close();
tvFavorites.Nodes.Remove(tvFavorites.SelectedNode);
}
}

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.