Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Create a button that will open another page

visual studio 2012 windows 8 button

  • Please log in to reply
30 replies to this topic

#25 AceInfinity

AceInfinity

    CC Addict

  • Senior Member
  • PipPipPipPipPip
  • 313 posts
  • Programming Language:C, C++, C#, Perl, Visual Basic .NET, Assembly, VBScript, Others

Posted 18 August 2012 - 12:57 PM

I know it may cause problems, but when you start typing, you'll see the real Form3 and the class Form3, and select it ;)


No, Form3 (by itself) actually now becomes a local variable when you do that:

Posted Image
  • 1

Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
Posted Image


#26 Tonchi

Tonchi

    Helping the world with programming

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1249 posts
  • Location:Zagreb
  • Programming Language:C#, Others
  • Learning:C, C++, Python, JavaScript, Transact-SQL, Assembly

Posted 18 August 2012 - 02:02 PM

AceInfinity what is that IDE?
  • 0

Microsoft Student Partner, Microsoft Certified Professional


#27 AceInfinity

AceInfinity

    CC Addict

  • Senior Member
  • PipPipPipPipPip
  • 313 posts
  • Programming Language:C, C++, C#, Perl, Visual Basic .NET, Assembly, VBScript, Others

Posted 18 August 2012 - 02:17 PM

AceInfinity what is that IDE?


Visual Studio 2012 with Dark theme enabled through the default options. :)
  • 0

Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
Posted Image


#28 Tonchi

Tonchi

    Helping the world with programming

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1249 posts
  • Location:Zagreb
  • Programming Language:C#, Others
  • Learning:C, C++, Python, JavaScript, Transact-SQL, Assembly

Posted 18 August 2012 - 02:46 PM

Cool :) but I don't want to switch myself to 2012 edition yet. Is there any possibility to change theme in 2010?
  • 0

Microsoft Student Partner, Microsoft Certified Professional


#29 AceInfinity

AceInfinity

    CC Addict

  • Senior Member
  • PipPipPipPipPip
  • 313 posts
  • Programming Language:C, C++, C#, Perl, Visual Basic .NET, Assembly, VBScript, Others

Posted 18 August 2012 - 03:12 PM

Cool :) but I don't want to switch myself to 2012 edition yet. Is there any possibility to change theme in 2010?


Yeah, you can create your own colors and stuff for various keywords. Tools > Options > Fonts and Colors

Or go and download one: http://studiostyl.es/schemes/popular
  • 0

Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
Posted Image


#30 magnetsoftees

magnetsoftees

    CC Lurker

  • New Member
  • Pip
  • 3 posts
  • Programming Language:C#
  • Learning:C#

Posted 24 August 2012 - 04:53 AM

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form2 form = new Form2();
form.Show();
}
  • 0

#31 obiwans

obiwans

    CC Lurker

  • New Member
  • Pip
  • 9 posts
  • Programming Language:(Visual) Basic
  • Learning:C, C++, C#, Visual Basic .NET, Pascal

Posted 03 September 2012 - 06:18 AM

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Form2 form = new Form2();
form.Show();
}


The code is :
This.content = new (name of the page)

Without the () .
  • 0





Also tagged with one or more of these keywords: visual studio, 2012, windows 8, button

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download