Home » C# // Visual Studio // OnPaint, Custom Controls, Mouse Events Assignment

C# // Visual Studio // OnPaint, Custom Controls, Mouse Events Assignment

C# – Microsoft Visual Studio, Windows FormsTopics: OnPaint, Custom Controls, Mouse EventsInstructions: Student will make the first of three parts of a project that will eventually be combined to form a tile editor application. In this first part, the tile selection control will be created.This tile selection control is made up of two forms and a custom control that you will build. The custom control will contain an image that shows a tileset. A grid will need to be drawn separating each tile from the others, this can be done in the OnPaint method. When a tile is clicked (single- or double-clicks or both if you want to) the tile that was selected should be stored in a property of the control in some way and the currently selected tile should have a different color outline in the grid than the other tiles. Only one tile should be selectable at a time, so selecting a different one should deselect the original. The tile in position 0,0 should be selected by default.The main form will contain the custom control as well as a ToolStrip and a StatusStrip. The StatusStrip should simply display a string that tells the user which tile is currently selected. The ToolStrip should contain a button for selecting a different tileset image and another button for opening a separate form with options for modifying the selectable grid in the custom control.The grid options form will allow the user to change the height and width of the selectable grid rectangles. They can also change the number of tiles by adjusting the height and width of the grid.A demo executable for this application can be downloaded in the attatchments.Tilesets that you can test your lab with are located in the attatchments.These are the guidelines used by the grading rubric:Custom Control: Properties and EventsValues that need to be accessed from the other forms are stored as properties of the control. (tile height, tile width, selected tile, etc.)A tile can be clicked or double clicked to set that tile as the selected tile. Only one tile can be selected at a time.The tileset image can be changed.Custom Control: Grid DrawingGrid that separates each tile is drawn.Selected tile is surrounded by a different color from the rest of the grid.Grid dimensions for height and width of each rectangle can be modified.Grid dimensions for number of tiles in terms of number of columns and rows can be modified.Main FormToolStrip is used for access to loading a new tileset image and the grid options.StatusStrip uses text to indicate which tile is selected.Contains an instance of your custom control.Extra InformationGo back through your code and check for the following:Your application must compile and must not crash when starting up.All variables and methods are named appropriately.Input controls are appropriately labeled.Any information being output to the user should be clear and concise.Make sure nothing accesses an object that doesn’t exist.Add comments to your code to indicate that you know what each line does.*** DONT FORGET TO DOWNLOAD THE ATTACHMENTS ***

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Live Chat+1 763 309 4299EmailWhatsApp

We Can Handle your Online Class from as low as$100 per week