private void ReadRequest() here is your problem: you need to have a static function to use threads, as they are independent proccess so write private static void ReadRequest() instead, ofcourse you have to change your code inside the function too since the method is now static. Hope that helps! flow
flow5555
Posts
-
Threading Error -
Setting Up Updateyea, you definately want to do that!
-
Setting Up UpdateAs far as the length of the command is concerned, the more information you get into one command is better, since you don't have to reopen the sql connection, and execute multiple commands after each successive command is executed. So, its perfectly fine to do so.
-
Help with setting and expanding nodes in treeviewHey thanks for the help, I have being thinking of using the Parent property to recurse through the tree node, but I what I don't understand is that after this I am still going to find a full path, and I wondering what to do with that. Thanks for the help.
-
Help with setting and expanding nodes in treeviewHey everyone, I have a problem with seting and expanding nodes in a explorer clone program I am trying to make. The problems comes as when I am trying to open a folder in the right side of the explore bar (the right side is a TreeView and the left is a ListView). I can't find a method that will allow me to change the selected node in a treeView and also expand it. Please help. Part of my program's source code is here private void lv_ItemActivate(object sender, System.EventArgs e) { ListView lv = (ListView)sender; foreach (ListViewItem lvi in lv.SelectedItems) { string fullPath = tvw.SelectedNode.FullPath.ToString() + "\\" +lvi.Text.ToString(); MessageBox.Show(lvi.Text); DirectoryInfo di = new DirectoryInfo(fullPath); if ((di.Attributes & FileAttributes.Directory)!=0) { //here is what I have being attempting but to no avil because the selected node property is read only tvw.SelectedNode = new TreeNode(lvi.Text); tvw.SelectedNode.FullPath = fullPath; tvw.SelectedNode.Expand(); return; flow PS: Thanks for the help in advance, I am new to the forum and I hope I can contribute and learn a lot in here.
-
How to creat a graphical back ground and button on a dialog class in MFC?Hey there everyone, I am a new member of the forum and relatively new to MFC. What I like to know how to create a graphical background and button. If anyone can gave a specific example or link that will help, it will be very apperciated. Thanks, :)