我的webervice函数运行结果是

如何用winform调用webservice的数据并显示

我想在winform中用butoon获取它的值并显示在listview 中或者gridview,请问怎么做啊?

我的winform界面如下

如何用winform调用webservice的数据并显示


代码如下

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace winfo_BISHE
{
    public partial class Form_BISHE : Form
    {
        public Form_BISHE()
        {
            InitializeComponent();
        }
        //定义web服务对象
        mywebservice.sqlWebService Service = new mywebservice.sqlWebService();


        private void ALLClass_Click(object sender, EventArgs e)
        {


            //string[] z = Service.AllClass();
            
            
        }


        private void Index_Click(object sender, EventArgs e)
        {
            
        }


        private void StuCourse_Click(object sender, EventArgs e)
        {


        }


        private void listView_SelectedIndexChanged(object sender, EventArgs e)
        {
            


        }       
    }
}


相关文章:

  • 2022-12-23
  • 2022-01-26
  • 2022-01-02
  • 2022-02-02
  • 2021-06-23
  • 2021-09-03
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2022-02-18
  • 2021-11-17
  • 2021-06-03
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案