Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Views: 3998

Replies to This Discussion

bhai pls share krdo exe file nhi ban rhi 

usamawaheed66@gmail.com

where is the error in this cod plz identify 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.xml.linq;
using System.IO;

namespace BS150201907
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

private void buttonsave_Click(object sender, RoutedEventArgs e)
{
xdocument xdoc;
string myfile = "bs150201907.xml";
if (!File.Exists(myfile))
{
xdoc = new xdocument(new xelement("xml"));

xdoc.save(myfile);
}
xdoc = xdocument.load(myfile);

xdoc.element("xml").Add(new Xelement("data", new xattribute("name", textboxname.text),
new xattribute("student id", textboxstudentid.text),
new xattribute("cgpa", textboxcgpa.text),
new xattribute("semester", textboxsemester.text),
));
xdoc.save(myfile);
messagebox.show("Data Saved Successfully!");
}

private void buttonreset_Click(object sender, RoutedEventArgs e)
{

}
}
}

guys i'm having this problem how can i solve it

Attachments:

Soft Skills Bro Help me look at screenshot then tell me what should I do now ?

Solution plz

Hira

yes

aoa dear
save and reset button kam ni kr rhy
xml file b ni ban rhi
plz help

main itny din sy try kr rahi hu but visual studio install nahi ho raha error aa jata hai k product key match nahi kr rahi

try community edition

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

ma shaa Allah bht hi zabardast explainantion Sir.

Thank you 

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service