Search results for query: *

  • Users: Omer Butt
  • Content: Threads
  • Order by date
  1. Omer Butt

    Resolved Label is showing Total result by adding total to previous total instead new total

    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()...
  2. Omer Butt

    ListBox is not showing the product with same name with different price

    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...
  3. Omer Butt

    Resolved How to Change the row color of DataGridView based on SQL Query?

    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...
  4. Omer Butt

    Resolved conversion failed when converting date string from database

    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...
  5. Omer Butt

    Question Value cannot be null. Parameter name: source

    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...
  6. Omer Butt

    Resolved Is it possible to retain auto increment even after deleting a tuple from a datagridview

    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...
  7. Omer Butt

    Resolved Unable to Retrieve image from database? Am I doing it wrong

    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...
  8. Omer Butt

    Resolved How to solve this Error: CS0019 Operator '==' cannot be applied to operands of type 'method group' and 'bool'?

    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...
Back
Top Bottom