I have created a function named ClearAllAfterSale() in which I Clear DataGridView, Textboxes and reset Labels as shown below:
private void ClearAllAfterSale()
{
DGV_Med.Rows.Clear();
Lbl_Total.ResetText();
Lbl_Total.ResetText()...
Hello to everyone,
Please Read Carefully and Answer afterwards.
Here I have an issue with C# WinForms ListBox, ListBox not showing the Same name Medicine with different details.
The Products are added to the database successfully. In which I have two medicines with the same name but are with...
What I tried is: (But need to know what to put in if condition and what to put in foreach condition)
ViewMedicine_DataGrid is a name of DataGridView
Pharmacist_Medicine is a name of a Table in Sql Server
E_Date is a column name of Expiry Date
private void...
I have a Chart on Dashboard where I want when the dashboard load the Chart displays the data according to database.
Below is a Table I created named Medic
Create table Medic(
Med_ID int Primary Key Identity (1,1),
Med_Name varchar(250) not null,
M_Date varchar(250) not null...
Hello, Please Help in this regard as I was very happy complete one phase of my work there was no error and everything worked just fine so I saved and closed the all the open instances of forms and user controls to start working on a new window form and went to have a little rest after a while...
I want to ask if there is any possibility to retain the Auto Increment Primary Key Numbers after deleting a record. For Example there are 5 records save in a table if I delete a tuple ID 3 by clicking on a delete button from a datagridview it shows the ID sequence retained as 1,2,3,4 instead of...
What I have is a Login Form with the name Login_Form in which I have two fields one is Username and the other is Password, Users are added to database from a Add User User Control named as UC_AddUser .
In UC_AddUser User Control I have fields like User_Role, User_Name, User_DOB, User_Mobile...
Please Tell me if the Line 13 `if (Txt_AddUser_UserName_TextChanged(sender, e) == true)` is now a write way then how to write it.
//This part to add a user in database as a signup in Line 13 in the condition of if I tried to create a logic if Txt_AddUser_UserName_TextChanged(object sender...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.