首先把你的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();
然后在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();
你得转化一下
StreamReader sReader = new StreamReader(mStream, Encoding.UniCode);textBox1.Text = sReader.ReadToEnd();这样不要 对吗?
string y = Server.UrlEncode(string x);//编码(B/S)string x为取得的中文信息
string z = Server.UrlDecode(y);//解码(B/S)