944,183 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 3550
  • VB.NET RSS
Nov 15th, 2007
0

Display xml data in message box

Expand Post »

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
Similar Threads
bcm
Reputation Points: 18
Solved Threads: 0
Junior Poster in Training
bcm is offline Offline
63 posts
since Aug 2007
Nov 15th, 2007
0

Re: Display xml data in message box

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

Re: Display xml data in message box

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
Reputation Points: 18
Solved Threads: 0
Junior Poster in Training
bcm is offline Offline
63 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Sending strings over IP
Next Thread in VB.NET Forum Timeline: manipulate text files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC