为您找到"
c#中RichTextBoxStreamType的5个属性的疑问
"相关结果约100,000,000个
private System.Windows.Forms.TextBox textBox3;private System.Windows.Forms.Label label3;private System.Windows.Forms.Button button2;private System.Windows.Forms.GroupBox groupBox3;private System.Windows.Forms.RichTextBox richTextBox1;private System.Windows.Forms.GroupBox groupBox4;private ...
using System.Linq;using System.Text;using System.IO;namespace ConsoleApplication12 { class Program { static void Main(string[] args){ string path = @"config.txt";string con = "";FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read);StreamReader sr = new Stream...
这样判断 string fileName = string.Empty;fileName = openFileDialog.FileName;if (!string.IsNullOrEmpty(fileName)){ '要执行的语句 } else { essageBox.Show("你没有选择文件,不能导入数据");}
发送:private void button2_Click(object sender, EventArgs e){ if (s.Connected == true){ try { string abc = textBox3.Text;s.Send(Encoding.ASCII.GetBytes(abc));MessageBox.Show("向服务器发送:" + abc);} catch { MessageBox.Show("发送失败");} } } 接收:System.Timers.Timer ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.SqlClient; using System.Drawing.Imaging; namespace Card { public partial class For...
private void startserver() 改为 private void startserver(object ThreadInfo),在其中加入 Socket sta_service = (Socket )ThreadInfo;把 while (isExit==false){ Socket service = server.Accept();sta_service = service;Thread newthread = new Thread(new ThreadStart(startserver));new...
public void listbox(string str){ listBox1.Items.Add(str);listBox1.SelectedIndex = listBox1.Items.Count - 1;listBox1.ClearSelected();} //连接方法 public void Connect(){ try { //建立连接socket connectSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp...
2.3.5 记录学习心得2.3.6 为文档设置书签2.3.7 切换内容显示区第3章 如何在“开发”使用模式中学习...NetworkStream类new运算符newid函数NewRow方法Next方法NotifyIcon控件NumericUpDown控件Net send命令Net use...RichTextBox控件Right属性Round方法RowCount方法Rows属性SSave方法SaveFile方法SaveFileDialog组件ScrollBars...
3. 从工具栏中拖两个Button 控件到默认窗体, Form1。4. 在属性窗口中修改Name为buttonFileToDB, Text 属性为从文件保存到数据库, 然后修改Name为buttonDBToFile ,Text 属性为从数据库保存到文件。5 从工具栏放置2个TextBox和1个PictureBox控件:Name属性分别为:textBoxGetID, textBox...
RichTextBoxStreamType.PlainText);}if (this.openFileDialog.FilterIndex == 2){this.richTextBox1.LoadFile(path, RichTextBoxStreamType.RichText);}}我们要在里面写代码实现把PC机上的文件打开到我们的编辑器中进行简单的文字编译了,但是在写代码前,我们要定义一个全局变量,用于记录是否文件是新...