csharp winforms

  1. SamueDexterAYG

    Resolved How to transfer a specific listview column items to a listbox in C#

    Hello everyone. I will be grateful for your kind help on this one. I am trying to transfer a specific listview column items to a listbox in C#. Heres my effort below. Unfortunately my code rather iterates though only the entry of the specified column and splits it as letters into the listbox...
  2. M

    Erratic behavior of TextBox "TextChanged" event

    I have inserted in the GUI a TextBox. It must hold a number between 0 and 1 that represents a lower threshold for accepting a structure name guessed by the Dice coefficient. I have set a default but the user can edit the threshold. Therefore I have to check the number entered is between 0 and...
  3. maddyrafi

    Password case sensitive

    Sir, I save my password in database is SAAmi@123 but if even enter in small letters saami@123 means its also logging in but it was not correct. please correct in my code pls if (textBox9.Text != "" && textBox10.Text != "") { string connectionString; MySqlConnection cnn; connectionString =...
  4. 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()...
  5. A

    How to detect when client delete license file desktop app ?

    I working on desktop application windows desktop made by csharp I make license file have period of license as 30 day and start date and computer mac address my issue is clients delete license file so desktop app start as first day after delete this file so how to prevent users from delete...
  6. MetaGota

    Winforms C# Read random line from Pastebin

    Hello, I'm trying to find a way to read a random line from a Pastebin WebClient WC = new WebClient(); List<string> TEST = new List<string>(); Random Rand = new Random(); StreamReader testReader = new StreamReader(WC.DownloadString("Pastebin"))...
  7. A

    How to read barcode scanner and receive it on datagridview pos pharamacy ?

    I work on c# windows desktop application on POS Form for pharmacy I need to read barcode to datagridview for every item AND when read another item again go to next line for every reading barcode so are there are any sample for pos form with datagridview on GitHub or any web site so i can't...
  8. developer8123413764

    RSS Feed on label in Windows Forms?

    Hi Does anybody know how to make a label that shows a rss title,description or link? Please help Thx
  9. developer8123413764

    (GoBack,GoForward,etc.) Controls from Form1 to Form2

    Hi I want to make a WebBrowser. Dont ask why i want it to make how i want it. The buttons (GoBack,GoForward,etc.) should be on Form1. The webBrowser is on Form2. How can i controll the webBrowser from Form1? Please help Thx
  10. D

    Slider colors not updating.

    So I want to have an Rainbow Color Gradient option in my application. Everything else changes its color except the sliders. They only update the color when I change their value. Is there any way to fix it? A code or something? Here is a short GIF of my problem: Gyazo
  11. Budhikakgsl

    How to Plot All the data Points Real Time

    I want to plot all the data points, I get from the TCP server. But I could not figure out a way to plot all the data points. Instead currently I print the string to the text box. From the text box only the first line is printed. This is a real time data plotting for an oscilloscope GUI. How can...
  12. codify

    Answered Setting primary key in windows form

    Hello! I am have connected SQL management studio with my visual studio where I am making this hospital management system. I have set the PATIENT ID as the primary key in the SQL management studio. But when I am entering duplicate id, there is no objection being made by the code. What should I do...
  13. codify

    Storring wrong data in a text box!

    Hello! In a window form, Patient id is being stored in both text box1 and textbox2. It is not storing the name of the patient in textbox2. Please help! private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(@"Data...
  14. codify

    Resolved SqlException: 'Invalid column name 'id'.

    I am making a window form database management system. When I click on the "Add staff" option, this error occurs System.Data.SqlClient.SqlException: 'Invalid column name 'id'.' on line number : 20 private void StaffInformation_Load(object sender, EventArgs e) { // TODO: This...
  15. rog_rickert

    Object array question

    hello, I'm still pretty new to C# and teaching myself. I've searched around and haven't found an answer, so I'm wondering if anyone can let me know if this is possible. I need to have multiple instances of an object that can be accessed by multiple forms. I know I can do this with static...
  16. D

    Resolved Control.Scale() and Control.UnScale()

    I have a panel where I draw some squares, simulating street objects on a map. I use Scale (float f1, float f2) to enlarge the panel and the paintings. I have a ComboBox with 50%, 75%, 100%, 125%, 150%, and 200% items. The user can go from 50% to 200%, and return to 50%, if necessary. I need to...
  17. shawnhee

    Resolved Minimize Windows Form when Clicked Outside the Application

    I want to minimize my windows form when i clicked anywhere outside it.... But this code will just close the whole program, can anyone help? I want to hide the app to taskbar, and when i press it from taskbar it shows up again....... Here is the code: protected override void...
  18. shawnhee

    Resolved Windows Forms Application overlayed other Application

    My WFA has overlayed other application since i added this code unto it. But i need this code to lock other users from repositioning the form. Please help ? protected override void WndProc(ref Message m) { const int WM_NCLBUTTONDOWN = 161; const int WM_SYSCOMMAND = 274; const int...
  19. A

    Question What is wrong on function ExecuteNonQuery to work as Best Practise ?

    I work on c# app I need to make function make insert data or update or delete dynamically so that I do function below for insert or update or delete but I don't know what must added or remove from function below to make function work as best practice . public static async Task<int>...
  20. F

    Question Parallel class to modify flickrviewer app

    You are asked to use Parallel class to modify FlickrViewer app by adding image resizing functionality. More specifically, resize found image(s) and save these resized image locally. You can find the details about how to resize the image from Basic Image Manipulation in C# Here is the link to...
Top Bottom