Hi! How do you create an xml file using a C# windows forms? And also, please tell me to how to read and write on it. Thanks a lot! ps Is it possible to query an xml file using C# code? if yes, can you tell me how? "To teach is to learn twice"
deanoA
Posts
-
Creating an XML File -
Renaming a FileGreetings! How do I rename a file using C#? Does Anybody know how? Please help. And also, how do I delete files or move them from folder to folder? Please help. "To teach is to learn twice"
-
Template Columns in a DataGridHi! I have a datagrid with two template columns. And I have 2 Arraylists. Can anybody please show me how to bind my 2 arraylists to their corresponding column? Please help me. :( NAME | ADDRESS A | AA B | BB C | CC D | DD Above is what I want it to look like. I A,B,C,D comes from the first arraylist and AA,BB,CC,DD comes from the second arraylist. Column NAME and column ADDRESS are template columns. Please help me. :( "To teach is to learn twice"
-
Unit test in ASP.NETHello! I am currently using NUnitAsp to test my asp.net webpages. Is there anybody here who is familiar with that? Anyway, Im trying to use it to unit test my app. But my problem is that its test page returns Server Error. My web app has a login page and its multilingual, supporting Japanese and English. But I don't know where the problem really is. My web page runs fine but I can't test it using NUnitASP. Can anybody help me? "To teach is to learn twice"
-
InterfacesI have already read that site. It doesn't answer my question. Actually the problem here is that, the classes are THIRD PARTY CLASSES. It already has existing methods that I need to use. Thanks anyway. :) "To teach is to learn twice"
-
InterfacesHi! Please help me with this. I want to make a program that inherits from two third party classes. (Let's just call it ClassA and ClassB) I know I cannot do multiple inheritance so I need to use interface. But I don't know how. Please help. "To teach is to learn twice"
-
HostnameHow do I get the hostname of the server from where the ASP.net application is running? Is that possible? "To teach is to learn twice"
-
Control Key ComboHi! Im creating a game using C#. Now I need help on how to read combo keys. Like if the user presses ctrl-x, It would then exit the game. Please help. "To teach is to learn twice"
-
SQL Case SensitivityHi! I am using sql server 2000. How do I make my DB case sensitive without reinstalling sql server 2k? Please help me on this. "To teach is to learn twice"
-
Keyboard in C#Hi. I want to create a simple notepad. I used a multiline textbox. I wanted to create a shortcut for selecting all text in the textbox like pressing ctrl-A would select all text. Anybody knows how to do this? Please help me. "To teach is to learn twice"
-
XML transferHi. I am transferring an XML file to another PC's shared folder. I tried to use a File.Copy method but the XML file that has been transferred to the other pc becomes garbage. Is there another way of transferring the file that it won't become garbage? I used the ff code: File.Copy("\\\Data\\" + FileName, true); Where Data is a shared folder. The file got there alright but the content is just garbage. Please help. "To teach is to learn twice"
-
DelegatesCan anybody show me the shortest example on using a delegate? Im just trying to gather ideas on how to program in "keep it short and simple way" :) "To teach is to learn twice"
-
Ref in C#When would be the best time in your own opinion to use the ref in C#? :) "To teach is to learn twice"
-
GetHashCode()Hi. I want to implement a program that sends 1 as a numerical value if a checkbox is checked and zero otherwise. So I read MSDN. I read from MSDN that: "The Boolean class implements true as the integer, one, and false as the integer, zero. However, a particular programming language might represent true and false with other values. " I did this in C#: Checkbox1.checked.GetHashCode(); I get the 1 and 0. But is this safe? I'm worried about the part where it says "However, a particular programming language might represent true and false with other values. " I'm afraid this might cause any side effect. Any ideas what Hashcode is? "To teach is to learn twice"
-
DataSet, DataRows etc.Hi! I'm trying to print the values in my DataSet. It has a single row in it. I used this CommandText: "Select NAME from Authors" Now the query returns all the names. Now, I want to print the values in the dataset and I want to use foreach because I do not know how many names I might get. But the problem is, what do I use to traverse my set? I used this ff code but it generates an error: DataRow dr = dsDBData.Tables[0].Rows[0]; foreach (DataColumn dc in dr) { MessageBox.Show(dc.ToString()); } Please help. "To teach is to learn twice"
-
Running webpageHow do I make my windows forms run a html page? Thanks! :) "To teach is to learn twice"
-
Accessing Over A NETWORKHow do I transfer files across a network? Does anybody know how? Please help! :) "To teach is to learn twice"
-
How would I implement this?I have 20 textboxes. Lets say, they are txtbox1 to txtbox20 Now, I would like to check them one by one if their text is null. If txtbox1.Text is null, i would stop checking the other textboxes right away. I can easily perform this using an if-else but, its not gonna be that readable. So I want to use a switch statement. The problem is, how? Please help. :( "To teach is to learn twice"
-
EventsHey, I am creating an alarm clock in c#. I want to create a event that calls a method to , lets say tell the user what time it is. I tried to read all tutorials on events and delegates. Still, I have no idea how to implement things. can anybody show me a very simple example? "To teach is to learn twice"
-
PrintIf I have the code in my stored proc: print 'Hello' Is the string hello retrieved? in my case, does my asp.net code acquire the value 'Hello' when it calls the procedure? 'Hello World'