i want to call the load event of the form inside the click event of the commant button depending upon certain condition

I don't see what language this would be in and the tags you used seem to not apply.

You'll have to tell more but if this was one of say the Microsoft Visual Studio languages then yes. Firing this event would be no different than any other form event. No need for me to write your code here. Also, the condition sounds like we use the "if" statement.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.