05 windows control events and event handlers
Download
1 / 6

#05 Windows Control, Events and Event Handlers - PowerPoint PPT Presentation


  • 92 Views
  • Uploaded on

#05 Windows Control, Events and Event Handlers. Windows Control. Windows Control example. Events and Event Handlers. What is an event What is an event handler. Events example. namespace BlackJackGUI { public partial class BlackJackWindow : Form {

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' #05 Windows Control, Events and Event Handlers' - csilla


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript



Events and event handlers
Events and Event Handlers

  • What is an event

  • What is an event handler


Events example
Events example

namespaceBlackJackGUI

{

public partial class BlackJackWindow : Form

{

public BlackJackWindow()

{

InitializeComponent();

textBoxGame.AppendText("♠ ♣ ♥ ♦ BlackJack:\n");

}

private void SaveLog_Click(object sender, EventArgs e)

{

File.Copy(@"../../BlackJack.tmp", @"../../BlackJackLog.txt",true);

}

}


Custom events
Custom Events

  • Creating custom events


ad