Click here to Skip to main content
15,921,841 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to play a sound from my program [modified] Pin
Nadia Monalisa1-Oct-06 20:35
Nadia Monalisa1-Oct-06 20:35 
AnswerRe: How to play a sound from my program Pin
Corinna John1-Oct-06 20:50
Corinna John1-Oct-06 20:50 
GeneralRe: How to play a sound from my program Pin
CodeItWell1-Oct-06 23:02
CodeItWell1-Oct-06 23:02 
GeneralRe: How to play a sound from my program Pin
Christian Graus1-Oct-06 23:35
protectorChristian Graus1-Oct-06 23:35 
GeneralRe: How to play a sound from my program Pin
Corinna John2-Oct-06 1:07
Corinna John2-Oct-06 1:07 
AnswerRe: How to play a sound from my program Pin
Hamid_RT2-Oct-06 9:36
Hamid_RT2-Oct-06 9:36 
QuestionHow to use crystal reprts XI in vs2005 ? Pin
hdv2121-Oct-06 20:09
hdv2121-Oct-06 20:09 
QuestionHow to grab content from xml file using C# Pin
yltoh1-Oct-06 17:22
yltoh1-Oct-06 17:22 
Hi, I am doing this website where I am suppose to LOCALIZE the web contents according to the user's language preference. Labels and buttons can be LOCALIZED easily using ASP.NET's LOCALIZED:LOCALIZEDLITERAL & LOCALIZED:LOCALIZEDBUTTON to grab the content from the respective language resource files.

But for tooltips, I need to create a function to grab the content in the resource file. The following are the code I found on the web and tried to implement on my website:

XmlTextReader resourceReader = new XmlTextReader(@"language\\ja-JP\\Resource.xml");

XmlNode resourceNode1;

public string readXML()
{
XmlDocument resourceXML = new XmlDocument();

resourceNode1 = resourceXML.SelectSingleNode("//Resource/item[@name = 'login_emailAddOfModerator']");

return resourceNode1.InnerText.ToString();
}

private void LoadToolTips()
{
this.txtUserName.ToolTip = readXML();
}


The following are the XML code:

<?xml version="1.0" encoding="utf-8" ?>
<Resource>
<item name="login_emailAddOfModerator">&#35519;&#25972;&#22120;&#12398;E&#12513;&#12540;&#12523;&#12450;&#12489;&#12524;&#12473;&#12290;</item>
</Resource>

The tooltip didnt appear. Please advise me on how to make the code work, thankz Smile | :)
AnswerRe: How to grab content from xml file using C# Pin
Christian Graus1-Oct-06 17:45
protectorChristian Graus1-Oct-06 17:45 
AnswerRe: How to grab content from xml file using C# Pin
Stefan Troschuetz1-Oct-06 21:29
Stefan Troschuetz1-Oct-06 21:29 
QuestionCompact frame work 2.0 Pin
Sri harini1-Oct-06 16:50
Sri harini1-Oct-06 16:50 
AnswerRe: SDK Pin
Christian Graus1-Oct-06 17:46
protectorChristian Graus1-Oct-06 17:46 
GeneralRe: SDK Pin
Christian Graus1-Oct-06 18:11
protectorChristian Graus1-Oct-06 18:11 
QuestionEditing Excel Worksheet Cells Pin
StyrofoamSUV1-Oct-06 16:15
StyrofoamSUV1-Oct-06 16:15 
AnswerRe: Editing Excel Worksheet Cells Pin
Coding C#2-Oct-06 0:52
Coding C#2-Oct-06 0:52 
GeneralRe: Editing Excel Worksheet Cells Pin
StyrofoamSUV2-Oct-06 6:59
StyrofoamSUV2-Oct-06 6:59 
QuestionCreating a wizard form Pin
Mark061-Oct-06 12:44
Mark061-Oct-06 12:44 
AnswerRe: Creating a wizard form Pin
Nader Elshehabi1-Oct-06 14:14
Nader Elshehabi1-Oct-06 14:14 
GeneralRe: Creating a wizard form Pin
Alaric_2-Oct-06 5:30
professionalAlaric_2-Oct-06 5:30 
GeneralRe: Creating a wizard form Pin
Nader Elshehabi2-Oct-06 12:21
Nader Elshehabi2-Oct-06 12:21 
AnswerRe: Creating a wizard form Pin
LongRange.Shooter3-Oct-06 8:06
LongRange.Shooter3-Oct-06 8:06 
Questiontree view control Pin
lagumaster1-Oct-06 12:37
lagumaster1-Oct-06 12:37 
Questionhow do I extract words from a textbox into a file? Pin
roberto_santinni1-Oct-06 10:07
roberto_santinni1-Oct-06 10:07 
AnswerRe: how do I extract words from a textbox into a file? Pin
Christian Graus1-Oct-06 10:22
protectorChristian Graus1-Oct-06 10:22 
AnswerRe: how do I extract words from a textbox into a file? Pin
LongRange.Shooter3-Oct-06 8:09
LongRange.Shooter3-Oct-06 8:09 

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.