Dear All,
Could anyone please tell me how to remove the red line? The code window is for you to reproduce the issue. The red line is shown in the attached figure.
TIA
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace NewTIMS
{
public class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
SqlConnection cnn;
Program.ConnectServer(cnn, "(local)", "WelkinDB", "Student");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Student_Form());
}
private void ConnectServer(SqlConnection cnn, string ServerName, string DatabaseName, string InitCatalog)
{
String connectionString;
connectionString = @"Sevrer=" + ServerName + ";Data Source=" + DatabaseName + "; Initial Catalog = " + InitCatalog + "; trusted_connection = yes;)";
cnn = new SqlConnection(connectionString);
}
}
}






