Click here to Skip to main content
16,021,112 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How can i use this:
OtherFormCodeBehindName.ButtonName_Click(null, null);
visual studio dont know this command.
Posted
Comments
[no name] 18-Oct-10 8:38am    
whats your Form Name?
whats your Button name?
il write the code for you if u tell me these.
inhisname 18-Oct-10 9:21am    
form:frm1
Btton:btn1
but i cant use otherformcodebihindname...!

1 solution

Change
private ButtonName_Click(...)

to
public ButtonName_Click(...)
.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900