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. Change default Form in WPF Program.

Change default Form in WPF Program.

Scheduled Pinned Locked Moved C#
helpcsharpwpfwinforms
4 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.
  • J Offline
    J Offline
    Joshua Henderson
    wrote on last edited by
    #1

    Hi Everyone, Firstly, I think this may be my first post here, but I have been following the code project for quite a little while, and have had an account for almost just as long: one of the best resources online! Anyway, one thing that I just can't seem to work out, a rather simple problem, is changing the default form that is opened when a WPF program is launched. I can do it in Windows Forms without a problem, but I can't seem to find where to do it in WPF. All help and input is greatly appreciated! - Josh

    S 2 Replies Last reply
    0
    • J Joshua Henderson

      Hi Everyone, Firstly, I think this may be my first post here, but I have been following the code project for quite a little while, and have had an account for almost just as long: one of the best resources online! Anyway, one thing that I just can't seem to work out, a rather simple problem, is changing the default form that is opened when a WPF program is launched. I can do it in Windows Forms without a problem, but I can't seem to find where to do it in WPF. All help and input is greatly appreciated! - Josh

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      Look in Program.cs, there you shall find your answer!

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      1 Reply Last reply
      0
      • J Joshua Henderson

        Hi Everyone, Firstly, I think this may be my first post here, but I have been following the code project for quite a little while, and have had an account for almost just as long: one of the best resources online! Anyway, one thing that I just can't seem to work out, a rather simple problem, is changing the default form that is opened when a WPF program is launched. I can do it in Windows Forms without a problem, but I can't seem to find where to do it in WPF. All help and input is greatly appreciated! - Josh

        S Offline
        S Offline
        Super Lloyd
        wrote on last edited by
        #3

        Oops, sorry, missed it was a WPF question. Look in App.xaml, line 4, the StartupUri property!

        A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

        J 1 Reply Last reply
        0
        • S Super Lloyd

          Oops, sorry, missed it was a WPF question. Look in App.xaml, line 4, the StartupUri property!

          A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

          J Offline
          J Offline
          Joshua Henderson
          wrote on last edited by
          #4

          Thanks heaps for that, it is a great help!

          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