|
In TreeView control, If i select parent node which gets bold then i select another parent node which also gets bold. In this case i am able to see which node is selected and which is deselected.
I need code for if i selected another parent node then previously selected node gets deselected and gets normal style means not bold.
- Parent 1
--- Child Node 1
--- Child Node 2
- Parent 2
--- Child Node 3
--- Child Node 4
e.g.
If Parent 1 is selected(bold) by default when form loads and then if i select Parent 2 then Parent 1 gets normal font and Parent 2 gets bold bcoz it is currently selected.
|
|
|
|
|
Is your issue the same as this[^]?
It just seems I answered this one quite comprehenively last week. Maybe you guys are in the same class at school or something.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I tried and i got it.
Thanx 
|
|
|
|
|
Hi All
I want to implement the text water mark and image water mark on a picture in C#. Please help to implement the same or any link that can provide information regarding the same.
Thanks in advance
Amit
-- modified at 5:05 Tuesday 25th April, 2006
|
|
|
|
|
|
Hi alexey,
It’s really great. I exactly want the same. You help me lot.
Thanks again
Amit
|
|
|
|
|
I have System Lotus Domino in Win 2003 server
I want get all user by LDAP but i dont know note of LDAP
How do i get tree of Domino
i have user, password , domain
|
|
|
|
|
If I have a TreeView and fill it with nodes and then decide to change one of
the node's font styles to bold, the end of the text in that node gets
chopped off. It seems like the TreeView isn't taking the NodeFont's style
into account when calculating the width of the text. Here's the code to
make it happen on a node named treeNode in a TreeView named treeView:
treeNode.NodeFont = new Font(treeView.Font, FontStyle.Bold);
|
|
|
|
|
I spotted this a few weeks ago when somebody asked how to make nodes bold... the suggestion then was to place a few spaces at the end of the text of the node, this will not be visible but will mean that there is enough space assigned to display the same text in bold.
Bit of a hack, but should work!
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
If I remember right it should work to assign a bold Font to the TreeView and initially assign all nodes a normal font. This way the tree calculates the width with the bold font and thus everything fits.
|
|
|
|
|
|
Thanx Robert Rohde ...
|
|
|
|
|
The way I worked around this bug in the TreeView was to set the node's Text to an empty string (""), assign the bold font, then set the node's Text back to the real value.
Josh
|
|
|
|
|
Part 1:
Use XML text writer class to create the following XML file:
<?xml version="1.0" encoding="utf-8"?>
<product>
<item>
<id>1233</id>
<productname>Hard disk</productname>
<quantity>12</quantity>
<unitprice>200</unitprice>
</item>
<item>
<id>1235</id>
<productname>Monitor</productname>
<quantity>10</quantity>
<unitprice>300</unitprice>
</item>
</product>
Part 2:
Use the XMLTextReader to read the file created in the Part 1 and display data as shown below:
Hardisk 12 200
Monitor 10 300
I already done Part 1 but i can't done Part 2, I am newbie, Plz Help.
Thanksssssssssssss
-- modified at 2:49 Tuesday 25th April, 2006
|
|
|
|
|
Easiest way is to Load this xml into a dataset and read this from the dataset
DataSet ds=new DataSet();
ds.ReadXml("Filepath");)
|
|
|
|
|
Ohh, thanks alots
I tried so hard and got so far
|
|
|
|
|
USE THIS CODE U WILL GET UR REQUIRED FORMAT
using System;
using System.Xml;
namespace ConsoleApplication1
{
class Class1
{
static void Main(string[] args)
{
XmlTextReader reader =new XmlTextReader("path of file");
string id=null;
string productname=null;
string quantity=null;
string unitprice=null;
while(reader.Read())
{
switch(reader.NodeType.ToString())
{
case "Element":
switch(reader.Name.ToString())
{
case "id" :
id = reader.ReadElementString().ToString();
break;
case "productname":
productname = reader.ReadElementString().ToString();
break;
case "quantity":
quantity = reader.ReadElementString().ToString();
break;
case "unitprice":
unitprice = reader.ReadElementString().ToString();
break;
}
break;
case "EndElement":
if( reader.Name.ToString() == "item")
{
Console.WriteLine(id +" "+ productname +" "+ quantity +" "+ unitprice);
id=null;
productname=null;
quantity=null;
unitprice=null;
}
break;
}
}//while
}
}
}
|
|
|
|
|
Im making a POS system i also have the code here but it still doesnt work so how do i make this right?
|
|
|
|
|
That is 100% impossible to answer. What exactly "still does not work" and what does "still does not work" actually mean??
Show code.
Show exception
What receipt printer are you using?
What API are you using to communicate with receipt printer?
you need to be much more specific with questions on a technical board.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Why dont you use text file option, may be it wont work with your specific situation, but i am using text file with list box to print my items.
cheers
Naveed Kamboh
|
|
|
|
|
|
hi..
I am reading a XML file using XMLTextReader... after reading some contents i want to jump back to first statement of the XML file... Any solution
Thanks
|
|
|
|
|
Use XmlDocument instead:
<br />
XmlDocument doc = new XmlDocument();<br />
doc.Load("c:\\1.xml");<br />
...<br />
Best regards, Alexey.
|
|
|
|
|
Help pls reply ASAP.
|
|
|
|
|
May be long but why dont u put the contents in txt file print that file directly to printer
when u r filling listbox create and write contents to text file also and then u may use a print button to print or whatever u like. I did this and its working fine.
May anyone give you better solution.
Sorry for this idea if you don't like.
Naveed Kamboh
|
|
|
|