🔍 Tìm kiếm trên Nosomovo Tech

Danh mục: C#

Code C# send mail with Gmail SMTP server

Code C# send mail with Gmail SMTP server

Bạn đang cần code C# thực hiện gửi mail với giao thức smpt của gmail? Để thực hiện gửi mail bằng gmail…

Copy folder in C#

Copy folder in C#

Nếu bạn đang tìm code c# thực hiện copy thư mục thì đây, ngay bên dưới đây là code bạn cần nhé!…

Sleep in C#

Sleep in C#

Nếu bạn đang viết một ứng dụng với ngôn ngữ C#. Và muốn cho ứng dụng ngủ 1 vài mili giây thì…

Nosomovo

Access connection string in C#

//using System.Data.OleDb; string m_ConnectString = “Provider=Microsoft.ACE.OLEDB.12.0; Data Source=file_path.mdb;”; nosomovo

Nosomovo

Mysql connection string in C#

string Connectionstring = “SERVER=” + m_Server + “; PORT=” + m_Port + “;” + ” DATABASE=” + m_Database + “;” + “UID=”…

Nosomovo

Excel connection string in C#

string ConnectionString = “Provider=Microsoft.ACE.OLEDB.12.0; Data Source=” + “filename” + “; Extended Properties=\”Excel 12.0\”;”; Nosomovo

Nosomovo

Sql server connection string in C#

Kết nối bằng quyền Windows: string m_ConnectString = “Data Source=” + “servername” + “;Initial Catalog=” + “databasename” + “;Integrated Security=True;”; Kết nối…

Nosomovo

Code C# – Upload file to web server

  public class HttpUploadHelper { private HttpUploadHelper() { } public static string Upload(string url, UploadFile[] files, NameValueCollection form) { HttpWebResponse resp =…

Nosomovo

Code mở một file trong C#

Để mở hoặc thực thi một file trong C# ta sử dụng đoạn code sau: System.Diagnostics.Process.Start(“duong_dan_den_file_can_mo”); Nếu “duong_dan_den_file_can_mo” là file thực thi…

Code xóa file trong C#

Code xóa file trong C#

Để xóa file trong C# chúng ta sử dụng hàm Delete trong thư viện System.IO.File như sau: System.IO.File.Delete(“duong_dan_den_file_can_xoa”); Thật đơn giản phải…

Code tính giai thừa trong c#

Code tính giai thừa trong c#

Nếu bạn cần thực hiện code một hàm tính giai thừa bằng C# thì đây, khỏi code nữa nhé, copy sài thôi….