Display xml data in message box

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 63
Reputation: bcm is an unknown quantity at this point 
Solved Threads: 0
bcm's Avatar
bcm bcm is offline Offline
Junior Poster in Training

Display xml data in message box

 
0
  #1
Nov 15th, 2007

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
BCM
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: Display xml data in message box

 
0
  #2
Nov 15th, 2007
If you have your info in textboxes then use:
Messagebox.Show(Textbox1.text & VbNewline & Textbox2.text & VbNewline & Textbox3.text & VbNewline & Textbox3.text)
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 63
Reputation: bcm is an unknown quantity at this point 
Solved Threads: 0
bcm's Avatar
bcm bcm is offline Offline
Junior Poster in Training

Re: Display xml data in message box

 
0
  #3
Nov 15th, 2007
Originally Posted by waynespangler View Post
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.......
BCM
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC