Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# coding

C# coding

Scheduled Pinned Locked Moved C#
csharptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ASGill
    wrote on last edited by
    #1

    hi, id like to know how to code for a button on a splash window, the button is an ok button..when clicked opens the main menu window...at this moment i've done this : private button OK_CLICK (and so on......) { Application.Run(new MainMenu()); } but this code is giving me errors.. is there any other way...the correct way....im new to C#... thx alot 15 Yr old

    F 1 Reply Last reply
    0
    • A ASGill

      hi, id like to know how to code for a button on a splash window, the button is an ok button..when clicked opens the main menu window...at this moment i've done this : private button OK_CLICK (and so on......) { Application.Run(new MainMenu()); } but this code is giving me errors.. is there any other way...the correct way....im new to C#... thx alot 15 Yr old

      F Offline
      F Offline
      Frank Olorin Rizzi
      wrote on last edited by
      #2

      If your splash dialog is started by a Main routine, and your MainMenu is just a form, then you should code your button like this: MainMenu mm = new MainMenu(this); mm.ShowDialog(); the MainMenu will then be displayed as a modal dialog (i.e. the user can't interact with the original dialog -the splash screen- until (s)he closes the MainMenu). I'm not sure how you can then close the splash form, but that's a start, I hope. F.O.R.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups