User Profile
Collapse
-
Can I hide the data of a column?
I have this table of data. Now I wanna hide the data of the "Password" column. How can I do that?. Many thanks... -
Can I transmit data from Database to List<>?
Firstly, I connect Database and I wanna transmit data to my public List<Product> GetProductList. Can I do this?
...Code:public DataTable GetBooks() { string SQL = "Select * From Products"; SqlConnection cnn = new SqlConnection(strConnection); SqlCommand cmd = new SqlCommand(SQL, cnn); SqlDataAdapter da = new SqlDataAdapter(cmd); -
Actually I do not have any problem for using sv instead of s -
Can I call this variable of foreach in C#?
I have this code
...Code:class QuanLySinhVien { public static List<SinhVien> DanhSachSinhVien = new List<SinhVien>(50); public List<SinhVien> GetDanhSachSinhVien { get => DanhSachSinhVien; } public void FindStudent() { Console.Write("Enter ID's student that you need to find: "); -
meomap0z1 replied to C# does not have " Date type " ? and can I use DateTime without the format time?in .NETYour meaning is :
...Code:Console.Write("Enter the birthday: \n"); Console.Write("The year: "); int year = int.Parse(Console.ReadLine()); Console.Write("The month: "); int month = int.Parse(Console.ReadLine()); Console.Write("The day: "); int day = int.Parse(Console.ReadLine());Leave a comment:
-
meomap0z1 started a topic C# does not have " Date type " ? and can I use DateTime without the format time?in .NETC# does not have " Date type " ? and can I use DateTime without the format time?
I wanna use Date type in C# but I guess it does not have this type. However, I will use DateTime instead and now I have a new problem:
...Code:Console.Write("Enter the birthday: \n"); Console.Write("The year: "); int year = int.Parse(Console.ReadLine()); Console.Write("The month: "); int month = int.Parse(Console.ReadLine()); -
Wow, Thanks a million for your helping !!!!! You save my day, bro.Leave a comment:
-
Can I use static an override method in C#?
I have this method in Student.cs :
then I override this method in another class which is Program.cs :Code:public virtual void XemThongTin() { Console.WriteLine("Danh sach sinh vien: "); }
...Code:public override void XemThongTin() { Console.WriteLine("Danh sach sinh vien: ");
No activity results to display
Show More
Leave a comment: