|
|
you may use a Flag to control the flow.
Calin
|
|
|
|
|
I understand when it occurs, but shouldn't the form's load event occur prior to all the children's events? DataGridView is a child of the form.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
As I add items to a ListView, can I also set a background colour fo the row just added based upon the value of an item in the row please?
|
|
|
|
|
ListView.Items[0].BackColor = Color.Red;//or what ever color you want
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Hi,
How can i collect icons of each file type from system? I went through some examples but they all requires Full Path of file but all I've is Extension of file.
Thanks in advance
|
|
|
|
|
This[^] article might help.
Calin
|
|
|
|
|
Hi,
Any idea how to make a Calendar Column in a dataGridView control?? You know, the one that let's you pick from a drop down calendar.
Please help.
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
Hai friends am in new this codeproject i need one doubt in C# how to create and maintain the Wep config file give me a good knowledge in web config file ? any one help me
|
|
|
|
|
|
in your web project, right click, go to Add New Item and select Web Configuration File.
Calin
|
|
|
|
|
Web.config file is used for Web Application such ASP.NET application but if you are working on Windows Forms Application you can use app.config file.
How to add Web.config file[^]
How to Add App.config file[^]
If you are using Visual Studio then right click the Project ->Add New Item->Select Web Configuration File for web.config or Application Configuration File for app.config.
|
|
|
|
|
Hello,
I would create a xml file from txt, i make this :
<br />
XDocument doc = new XDocument(<br />
new XDeclaration("1.0", "utf-8", "yes"),<br />
new XComment("Liste des clients"));<br />
while ((s = sr.ReadLine()) != null)<br />
{<br />
String[] tbStr = s.Split(new Char[] { ';' });<br />
<br />
<br />
<br />
new XElement("clients", new XElement("client", new XAttribute("ID", tbStr[0]),<br />
new XElement("société", tbStr[1]), <br />
new XElement("site", tbStr[2])));<br />
<br />
}<br />
doc.Save(@"C:\Documents and Settings\Administrateur\Bureau\output\test.xml");<br />
}<br />
<br />
<br />
unfortunately, they are an exception : Token EndDocument in state Document would result in an invalid XML document. help me to construct the xml file, thank you verry mutch.
|
|
|
|
|
please see the other post
Calin
|
|
|
|
|
Hello,
I would create a xml file from txt, i make this :
<br />
XDocument doc = new XDocument(<br />
new XDeclaration("1.0", "utf-8", "yes"),<br />
new XComment("Liste des clients"));<br />
while ((s = sr.ReadLine()) != null)<br />
{<br />
String[] tbStr = s.Split(new Char[] { ';' });<br />
<br />
<br />
<br />
new XElement("clients", new XElement("client", new XAttribute("ID", tbStr[0]),<br />
new XElement("société", tbStr[1]), <br />
new XElement("site", tbStr[2])));<br />
<br />
}<br />
doc.Save(@"C:\Documents and Settings\Administrateur\Bureau\output\test.xml");<br />
}<br />
<br />
<br />
unfortunately, they are an exception : Token EndDocument in state Document would result in an invalid XML document. help me to construct the xml file, thank you verry mutch.
|
|
|
|
|
I think you are getting this error because you are not adding a root element.
Calin
|
|
|
|
|
so I suggest you to add a ROOT element and after that add the elements in foreach.
Calin
|
|
|
|
|
can you show me, how we can do that? thank you verry mutch.
|
|
|
|
|
Can you give us the structure of the text file that you would like to convert?
|
|
|
|
|
|
See this[^] document.
The only programmers that are better C# programmers, are those who look like this -> |
Programm3r
My Blog: ^_^
|
|
|
|
|
If you are trying to say/ask something, please type it. No one will dare download the document for security reasons
|
|
|
|
|
I wouldn't go as far as to say no one
|
|
|
|
|
Make sure you have the project set to create an XML documentation file (project properties, build tab, and check the "XML documentation file" checkbox).
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|