Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to send button name for method in c#

void button_Click(Object sender,  EventArgs e)
{
    var button = sender as Button;
    if(button != null)
    {
        button.Text = "X";
        button.ForeColor = System.Drawing.Color.Red;
    }

}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# func 
Csharp :: how to get an arrays length in c# 
Csharp :: how to set border for groupbox in c# 
Csharp :: vb.net read text file line by line 
Csharp :: autofac .net core 6 
Csharp :: c# yield keyword 
Csharp :: c# how to call methods from another class 
Csharp :: Search for a value into a list in c# 
Csharp :: initialize a char array java 
Csharp :: c# convert datetime to year & month 
Csharp :: c# loop array 
Csharp :: get domain name from email in asp.net c# 
Csharp :: c# string methods 
Csharp :: c# dictionary get key by value 
Csharp :: c# move form without border 
Csharp :: c# const vs readonly 
Csharp :: c# write iformfile 
Csharp :: delay activity in uipath 
Csharp :: c# get string in parentheses 
Csharp :: c# gettype 
Csharp :: c sharp list 
Csharp :: label wpf 
Csharp :: how to add skybox in unity 
Csharp :: c# standard microphone decibels 
Csharp :: dataGridView default error dialog handle 
Csharp :: allow scroll with wheel mouse datagridview c# 
Csharp :: how to access path position variable in unity 
Csharp :: get all properties of an object including children c# 
Csharp :: join string c# 
Csharp :: referans tipi nedir c# 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =