首先把你的Form设置为AllowDrop为true
然后在DragEnter事件中写上
if (e.Data.GetDataPresent(DataFormats.Html))
    e.Effect = DragDropEffects.Copy;
else
    e.Effect = DragDropEffects.None;在DragDrop写上
string s = e.Data.GetData(DataFormats.Html).ToString();

解决方案 »

  1.   

    中文是Unicode码
    你得转化一下
      

  2.   

    byte[] 到 string要加相应编码
      

  3.   

    byte[] pic  =   System.Text.Encoding.ASCII.GetBytes("你好");MemoryStream mStream = new MemoryStream(pic);
    StreamReader sReader = new StreamReader(mStream, Encoding.UniCode);textBox1.Text = sReader.ReadToEnd();这样不要 对吗?
      

  4.   


     string y = Server.UrlEncode(string x);//编码(B/S)string x为取得的中文信息
     string z = Server.UrlDecode(y);//解码(B/S)