Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
QuestionRe: copy a file to a folder Pin
Abhinav S23-Jan-10 21:22
Abhinav S23-Jan-10 21:22 
Questionusing \ in c# Pin
tanweer23-Jan-10 15:43
tanweer23-Jan-10 15:43 
AnswerRe: using \ in c# Pin
Dan Mos23-Jan-10 16:21
Dan Mos23-Jan-10 16:21 
AnswerRe: using \ in c# Pin
April Fans24-Jan-10 19:43
April Fans24-Jan-10 19:43 
Questionis it possible to dynamically name a variable? Pin
tonyonlinux23-Jan-10 12:30
tonyonlinux23-Jan-10 12:30 
AnswerRe: is it possible to dynamically name a variable? Pin
Dan Mos23-Jan-10 12:59
Dan Mos23-Jan-10 12:59 
AnswerRe: is it possible to dynamically name a variable? Pin
harold aptroot23-Jan-10 13:22
harold aptroot23-Jan-10 13:22 
GeneralRe: is it possible to dynamically name a variable? Pin
tonyonlinux23-Jan-10 13:53
tonyonlinux23-Jan-10 13:53 
Well what I was thinking is since my current code is giving me an issue with resetting the dataset inside a foreach loop I was gonna do the following to populate a tree view.

string[] AuthorNames = new string[bookdbDataSet.Tables[0].Rows.Count];
            int row=0;
            foreach (DataRow Row in bookdbDataSet.Tables[0].Rows)
            {
                AuthorNames[row] = Row["AuthorFirst"].ToString() + " " + Row["AuthorLast"].ToString();
                TreeNode [DYNAMIC NAME HERE] = new TreeNode(Row["AuthorLast"].ToString() + ',' + Row["AuthorFirst"].ToString());
                rootNode.Nodes.Add(tn);
                row++;
            }
            for (int counter = 0; counter < AuthorNames.Length; counter++)
            {
                string[] splitarray = null;
                string Aname = AuthorName[i].tostring();
                splitarray = Aname.split(" ");

              bookListTableAdapter.FillByFirstandLast(bookdbDataSet.BookList, SplitArray[1].ToString(), SplitArray[0].ToString());
                foreach (DataRow ChildRow in bookdbDataSet.Tables[0].Rows)
                  {
                TreeNode child = [DYNAMIC NAME HERE].Nodes.Add(ChildRow["Title"].tostring());
                     
                    }
                    [DYNAMIC NAME HERE].nodes.add(child);
                
                
            

        }


So basically I get all the unique author names first and put them in an array
Then I fill the dataset one at a time for each author and then run a foreach to get the titles and then I assign them to the node of the Rootnode's dynamic name
GeneralRe: is it possible to dynamically name a variable? Pin
harold aptroot23-Jan-10 13:59
harold aptroot23-Jan-10 13:59 
GeneralRe: is it possible to dynamically name a variable? Pin
tonyonlinux23-Jan-10 14:09
tonyonlinux23-Jan-10 14:09 
GeneralRe: is it possible to dynamically name a variable? Pin
harold aptroot24-Jan-10 1:16
harold aptroot24-Jan-10 1:16 
QuestionSocket listening Pin
3bood.ghzawi23-Jan-10 9:32
3bood.ghzawi23-Jan-10 9:32 
AnswerRe: Socket listening Pin
sanforjackass23-Jan-10 11:52
sanforjackass23-Jan-10 11:52 
Questioni want to take a snapshot image from a video file. then tell me how can i get a snapshot image from a video file programatically? Pin
rabia javeed23-Jan-10 7:07
rabia javeed23-Jan-10 7:07 
AnswerRe: i want to take a snapshot image from a video file. then tell me how can i get a snapshot image from a video file programatically? [modified] Pin
sanforjackass23-Jan-10 12:05
sanforjackass23-Jan-10 12:05 
GeneralRe: i want to take a snapshot image from a video file. then tell me how can i get a snapshot image from a video file programatically? Pin
rabia javeed23-Jan-10 21:43
rabia javeed23-Jan-10 21:43 
AnswerRe: i want to take a snapshot image from a video file. then tell me how can i get a snapshot image from a video file programatically? Pin
Super Lloyd23-Jan-10 12:16
Super Lloyd23-Jan-10 12:16 
QuestionC-interface from C# Pin
Niklas L23-Jan-10 6:11
Niklas L23-Jan-10 6:11 
AnswerRe: C-interface from C# Pin
#realJSOP23-Jan-10 6:44
professional#realJSOP23-Jan-10 6:44 
QuestionRe: C-interface from C# Pin
harold aptroot23-Jan-10 7:07
harold aptroot23-Jan-10 7:07 
AnswerRe: C-interface from C# [modified] Pin
Niklas L23-Jan-10 21:15
Niklas L23-Jan-10 21:15 
QuestionInstall Shiled Pin
Said Ali Jalali23-Jan-10 5:08
Said Ali Jalali23-Jan-10 5:08 
AnswerRe: Install Shiled Pin
sanforjackass23-Jan-10 5:30
sanforjackass23-Jan-10 5:30 
AnswerRe: Install Shiled Pin
Muammar©23-Jan-10 5:38
Muammar©23-Jan-10 5:38 
AnswerRe: Install Shiled Pin
Md. Marufuzzaman23-Jan-10 5:40
professionalMd. Marufuzzaman23-Jan-10 5:40 

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.