Register and join over 40,000 other developers!
Recent Topics
-
Tekken 7
IsrealJones - Mar 22 2021 07:21 AM
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
New to the community
iwinx - Jul 17 2020 12:02 PM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

Create a button that will open another page
Started by obiwans, Aug 10 2012 08:43 AM
visual studio 2012 windows 8 button
30 replies to this topic
#1
Posted 10 August 2012 - 08:43 AM
Hi guys . i am working with visual studio 2012 on windows 8 ..
I am tryng to creat a button that will open on other "page"
But i dont know the code .. (Already got the button just need the programming)
Can someone help me ?
Sorry by my bad English.
I am tryng to creat a button that will open on other "page"
But i dont know the code .. (Already got the button just need the programming)
Can someone help me ?
Sorry by my bad English.
#2
Posted 10 August 2012 - 09:12 AM
What kind of application are you creating? Metro Style? WinForms? WPF? Silverlight?
Microsoft Student Partner, Microsoft Certified Professional
#3
Posted 10 August 2012 - 09:42 AM
Are you trying to open a webpage url when the user clicks on the button?
www.pickmike.com
I don't just develop software. I find solutions to your business needs.
#4
Posted 10 August 2012 - 10:38 PM
WinForm: System.Diagnostics Process.Start("URL");
This is the way I have been using for a long time.
(Also seen many others so
)
This is the way I have been using for a long time.
(Also seen many others so

#5
Posted 10 August 2012 - 11:10 PM
WinForm: System.Diagnostics Process.Start("URL");
This is the way I have been using for a long time.
(Also seen many others so)
Yes that's the way for WinForms
Microsoft Student Partner, Microsoft Certified Professional
#6
Posted 13 August 2012 - 05:20 AM
sorry i was without internet for a moment . I am creating a game .
ex:
I click on the button "options" and other page will open with more 3 options.
I just dont know the code for that ..
And i am using Metro Style
Again sorry for my bad english i .
ex:
I click on the button "options" and other page will open with more 3 options.
I just dont know the code for that ..
And i am using Metro Style
Again sorry for my bad english i .
#7
Posted 13 August 2012 - 10:07 AM
sorry i was without internet for a moment . I am creating a game .
ex:
I click on the button "options" and other page will open with more 3 options.
I just dont know the code for that ..
And i am using Metro Style
Again sorry for my bad english i .
Well, if your options form in a new form called Form3
You'll make a code like this
Form3 Form3 = new Form3(); Form3.Show();
Sorry if that wasn't the answer, but maybe i didn't understand your point!
.Musta { background-color: Black; }
#8
Posted 13 August 2012 - 12:10 PM
As far as I know Metro Style apps doesn't contains Form class. Form class is strictlly for non XAML GUI's.
I have never worked with Silverlight but in WPF part of framework you are using Window class insted Form class, so maybe you should try something like this:
myWindow is just an instance of Window class.
I have never worked with Silverlight but in WPF part of framework you are using Window class insted Form class, so maybe you should try something like this:
myWindow Window = new myWindow(); mywindow.Show();
myWindow is just an instance of Window class.
Microsoft Student Partner, Microsoft Certified Professional
#9
Posted 14 August 2012 - 05:27 AM
Img: http://desmond.image...png&res=landing or http://imageshack.us...4/83476187.png/ (cant place the image on forum is to big ..)
Maybe this will help . I try to place the .show and says "Test1.opções does not contain a definition for show."
Maybe this will help . I try to place the .show and says "Test1.opções does not contain a definition for show."
#10
Posted 14 August 2012 - 06:15 AM
In that case you need to make a little adjusment to my previous code:
put the button control on your MainPage and put that code inside that button. Run your application and click that button. Did it worked?
myWindow Opções = new myWindow(); mywindow.Show();
put the button control on your MainPage and put that code inside that button. Run your application and click that button. Did it worked?
Microsoft Student Partner, Microsoft Certified Professional
#11
Posted 14 August 2012 - 07:18 AM
2 erro's:
1:http://imageshack.us...6/73009249.png/
2:http://imageshack.us...1/58677743.png/
was there i need to place the code?
1:http://imageshack.us...6/73009249.png/
2:http://imageshack.us...1/58677743.png/
was there i need to place the code?
#12
Posted 14 August 2012 - 01:28 PM
Forgive me. It should be like this:
I suggest you to find some C# book and start to read it and practice tasks from it.
This is the most basic concept of programming in C# when you are working with GUI type of application.
I doubt that you even know what XAML is and why are people using it.
Opções myWindow = new Opções(); myWindows.Show();
I suggest you to find some C# book and start to read it and practice tasks from it.
This is the most basic concept of programming in C# when you are working with GUI type of application.
I doubt that you even know what XAML is and why are people using it.
Microsoft Student Partner, Microsoft Certified Professional
Also tagged with one or more of these keywords: visual studio, 2012, windows 8, button
General Forums →
General Computing →
Configuring LAN File Sharing for an Ubuntu and Windows PCStarted by Altru, 20 Jan 2016 ![]() |
|
![]() |
||
Language Forums →
C and C++ →
Visual Studio creating simple window application?Started by Kreative, 24 Nov 2015 ![]() |
|
![]() |
||
General Forums →
General Programming →
We really want feedback from the programming community regarding Global DevStarted by Globaldev, 14 May 2015 ![]() |
|
![]() |
||
![]() C++ application giving a wrong result (Visual C++)Started by zohratl, 01 Oct 2014 ![]() |
|
![]() |
||
Language Forums →
C# →
Need help with character frequency reportStarted by JonErnst, 05 Jul 2014 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download