The maximum value of a scrollbar can only be reached programmatically. The value of a scroll bar cannot reach its maximum value through user interaction at run time. The maximum value that can be reached through user interaction is equal to 1 plus the Maximum property value minus the LargeChange property value. If necessary, you can set the Maximum property to the size of the object -1 to account for the term of 1.

When you need to pass sender and e to the function (e.g. a form control event)

	frmMain_Load(this, gcnew EventArgs());

	//or this
	EventArgs ^MyArgs = gcnew EventArgs();
	frmMain_Load(this, MyArgs);

Or you could do this if you wanted to specify a different object for some reason:

	Object ^MySender = gcnew Object();
	EventArgs ^MyArgs = gcnew EventArgs();
	frmMain_Load(MySender, MyArgs);
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.