Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralIs it easy to migrate from VB.net to C# Pin
MyThread22-Feb-05 5:46
MyThread22-Feb-05 5:46 
GeneralRe: Is it easy to migrate from VB.net to C# Pin
Dave Kreskowiak22-Feb-05 6:15
mveDave Kreskowiak22-Feb-05 6:15 
GeneralRe: Is it easy to migrate from VB.net to C# Pin
MyThread22-Feb-05 6:44
MyThread22-Feb-05 6:44 
GeneralRe: Is it easy to migrate from VB.net to C# Pin
Rei Miyasaka22-Feb-05 16:24
Rei Miyasaka22-Feb-05 16:24 
GeneralRe: Is it easy to migrate from VB.net to C# Pin
SimonS22-Feb-05 8:09
SimonS22-Feb-05 8:09 
GeneralRe: Is it easy to migrate from VB.net to C# Pin
Dave Doknjas22-Feb-05 14:17
Dave Doknjas22-Feb-05 14:17 
GeneralQueryPerformance Pin
wallacej22-Feb-05 5:23
wallacej22-Feb-05 5:23 
GeneralRe: QueryPerformance Pin
Judah Gabriel Himango22-Feb-05 5:44
sponsorJudah Gabriel Himango22-Feb-05 5:44 
GeneralRe: QueryPerformance Pin
Rei Miyasaka22-Feb-05 16:56
Rei Miyasaka22-Feb-05 16:56 
QuestionHow To Create A Shortcut (.lnk) in Code Pin
exhaulted22-Feb-05 4:36
exhaulted22-Feb-05 4:36 
AnswerRe: How To Create A Shortcut (.lnk) in Code Pin
spif200122-Feb-05 5:28
spif200122-Feb-05 5:28 
GeneralRe: How To Create A Shortcut (.lnk) in Code Pin
exhaulted23-Feb-05 20:58
exhaulted23-Feb-05 20:58 
GeneralAutoComplete in .net 2.0 Pin
djkno322-Feb-05 4:18
djkno322-Feb-05 4:18 
GeneralRe: AutoComplete in .net 2.0 Pin
djkno320-Apr-05 2:18
djkno320-Apr-05 2:18 
Generalblackberry Pin
2new22-Feb-05 3:56
2new22-Feb-05 3:56 
GeneralRe: blackberry Pin
Heath Stewart22-Feb-05 12:05
protectorHeath Stewart22-Feb-05 12:05 
GeneralRe: blackberry Pin
2new24-Feb-05 9:00
2new24-Feb-05 9:00 
QuestionHow to make TreeView like navigation bar Pin
lee meng22-Feb-05 2:58
lee meng22-Feb-05 2:58 
Generalformatting number Pin
dhol22-Feb-05 1:56
dhol22-Feb-05 1:56 
Hi
I have doone a program such that using xpath , to read data's from xml and display it on a form.

now for ex:

XPathExpression Expr2;
Expr2 = oXPathNav.Compile("/tmp_day_stats//td_value");

XmlNamespaceManager oxmlNSManager = new XmlNamespaceManager(oXPathNav.NameTable);
oxmlNSManager.AddNamespace("tmp_day_stats", "http://myserver/myschemas/tmp_day_stats");


Expr2.SetContext(oxmlNSManager);


XPathNodeIterator iterator2 = oXPathNav.Select(Expr2);
while (iterator2.MoveNext())
{
this.textBox2.Text.ToString += this.textBox2.Text == "" ? iterator2.Current.Value: "\r\n"+ iterator2.Current.Value;
}

the above program what it does uis that read all the values of td_value from the xml file and display them in the textbox2.

ie, the output is as follows

900909.87887
980126.767
353553.543
776668.6466

now i have to format these numbers as follows

900909.87
980126.76
353553.54
776668.64

ie, after decimal i should have only 2 values to be shown.
how to format it . please help me to get this..


santhosh


GeneralRe: formatting number Pin
leppie22-Feb-05 5:38
leppie22-Feb-05 5:38 
GeneralRe: formatting number Pin
dhol22-Feb-05 16:38
dhol22-Feb-05 16:38 
GeneralGetting the path of an open Word document Pin
Paladin5522-Feb-05 1:41
Paladin5522-Feb-05 1:41 
GeneralRe: Getting the path of an open Word document Pin
Heath Stewart22-Feb-05 12:30
protectorHeath Stewart22-Feb-05 12:30 
GeneralWeb method's parameter Pin
Ed Lee22-Feb-05 1:05
Ed Lee22-Feb-05 1:05 
GeneralRe: Web method's parameter Pin
J4amieC22-Feb-05 1:43
J4amieC22-Feb-05 1:43 

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.