954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Display xml data in message box

:?:
I am creating a project in VB.NET2005 for reading and writing xml app.config.
but how i want to display the xml data in a message box.
I have used the following code:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim astrology_value As String
Dim cricket_value As String
Dim foreigncurrency_value As String
Dim jobs_value As String
Dim app_path As String = System.AppDomain.CurrentDomain.BaseDirectory()

astrology_value = My.Settings.Astrology
cricket_value = My.Settings.Cricket
foreigncurrency_value = My.Settings.Foreigncurrency
jobs_value = My.Settings.Jobs

TextBox1.Text = (astrology_value)
TextBox2.Text = (cricket_value)
TextBox3.Text = (foreigncurrency_value)
TextBox4.Text = (jobs_value)

End Sub
Please help soon
:icon_cry:

bcm
Junior Poster in Training
64 posts since Aug 2007
Reputation Points: 18
Solved Threads: 0
 

If you have your info in textboxes then use:
Messagebox.Show(Textbox1.text & VbNewline & Textbox2.text & VbNewline & Textbox3.text & VbNewline & Textbox3.text)

waynespangler
Posting Pro in Training
461 posts since Dec 2002
Reputation Points: 84
Solved Threads: 58
 
If you have your info in textboxes then use: Messagebox.Show(Textbox1.text & VbNewline & Textbox2.text & VbNewline & Textbox3.text & VbNewline & Textbox3.text)


Thanx for your reply but I want to display xml file app.config data in message box.......
:S

bcm
Junior Poster in Training
64 posts since Aug 2007
Reputation Points: 18
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You