Using .net 4 & VS C# Express 2010, new to both and I'm working through some basic programming tasks.
I'm trying to have a while loop count disaplyed in my WFP textbox which is easy enough to do in a wpf console.
Here's my code and xaml:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace WpfWhileLoop
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
int n = 1;
while (n < 6)
{
textBox1.Text = "current value of n is " + n++;
}
}
}
}
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.