Skip to main content

Posts

Add, remove, search an item in listview in C#

Below is the C# code which will help you to add, remove and search operations on listview control in C#. Below is the design view of the project: Below is the source code of the project: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Treeview_control_demo {     public partial class Form2 : Form     {         public Form2()         {             InitializeComponent();             listView1.View = View.Details;                   }         private void button1_Click(object sender, EventArgs e)         {             if (textBox1.Text.Trim().Length == 0)...

multibagger NSE BSE

Hello all, I am sharing the google Sheet which contains stock scripts which will be immensely valuable for you. I have applied so many google formuales in order to create the same. Believe me it will give you idea when to buy a stock among a list of stocks. It will show you the low level stock price to buy among the list. Below is the updated stock list by me. https://docs.google.com/spreadsheets/d/1yTxIIuJ5Hyw8TqqcLwkL8K0NJDaPio4kdPUm6UUBbnw/edit#gid=0   Your kind sugestions will help me to grow this list more beneficial to all of you. In future I will create and share sectoral wise stock list and publish publicly.   Believe me this is going to most beneficial to all invester and traders. Again any suggestions from your side are most welcome. Steps to use: 1) first cloumn is the script code which is the script code of nse or bse. 2) Scriptname is the name of the BSE/NSE stock. 3) Investment is the actual amount you have invested. 4) Shares is the number of sh...

Treeview example in C# 2

Below is the code which shows treeview control demo in c#. It has a treeview control. If we select any node on treeview, the label is showing corresponding selected name of the node of treeview. Below is the design view of the project: Below is the source code of the project: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Treeview_control_demo {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();             treeView1.Nodes.Clear();             TreeNode root = new TreeNode("India");             TreeNode s1 = new TreeNode("MH");     ...

Employee Salary calculator windows project in C#

Below is the window project in c# which calculates the net salary of the employee. It takes employee id, name and designation as input and calculates the salary according to the designation of the employee. The project has static data. I have not implemented a database for storing data. in future will share projects who will have database to store data. Thanks for visiting my blog. I will try to make this blog is best source of learning for you.     Below is the design view of the project: Below is the source code of the project: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Employee_Salary_calculator_demo {     public partial class Form1 : Form     {         int empno;         String name;       ...

Treeview control demo in C#

Below is the code which shows treeview control demo in c#. It has a treeview control and a label. If we select any node on treeview, the label is showing named corresponding selected name of the node of treeview. Below is the design view of the project: Below is the source code of the project: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Treeview_control_demo {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)         {             label1.Text = treeVie...

RGB Color Demo in C# using scrollbar as a slider horizontally

Below is the project which contains 3 horizontal scrollbars if we slides the scrollbars the background color of the form is changing accordingly. first scrollbar is adding red color, second adding green and third one adding blue upon scrolling or sliding. Take 3 horizontal scrollbars and assign them maximum value of 255(from 0) to each one. Below is the designer view of the project: Below is the source code of the project: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Color_RGB_demo {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();                   }         public...

Student Marksheet with grades windows form project in C# demo

Student Mark-sheet windows form in C# demo Below is the program which takes students name, marks of 6 subjects as an input. After a button click it will display result either PASS, FAIL or ATKT (for 2 backlogs).  Below is the design view of the project: Below is the windows C# source code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace marksheet_demo {     public partial class Form1 : Form     {         int m1, m2, m3, m4, m5, m6, total;         float per;         String name, grade, result;         public Form1()         {        ...