05 windows control events and event handlers
This presentation is the property of its rightful owner.
Sponsored Links
1 / 6

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


  • 57 Views
  • Uploaded on
  • Presentation posted in: General

#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 {

Download Presentation

#05 Windows Control, Events and Event Handlers

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


05 windows control events and event handlers

#05 Windows Control, Events and Event Handlers


Windows control

Windows Control


Windows control example

Windows Control example


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


  • Login