A
Anders Eriksson
In a WPF project using VS2010.
I have two textboxes. When the user enters a C in the first textbox I
want my program to enter a 1 in the second. But if the user enters a 1
in the second textbox I want to enter a C in the first one.
How would I accomplish this?
My very simple XAML code
<Window x:Class="ChordDefinition.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TextBox Height="23" HorizontalAlignment="Left"
Margin="42,35,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" />
<TextBox Height="23" HorizontalAlignment="Left"
Margin="46,76,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" />
</Grid>
</Window>
// Anders
I have two textboxes. When the user enters a C in the first textbox I
want my program to enter a 1 in the second. But if the user enters a 1
in the second textbox I want to enter a C in the first one.
How would I accomplish this?
My very simple XAML code
<Window x:Class="ChordDefinition.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TextBox Height="23" HorizontalAlignment="Left"
Margin="42,35,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" />
<TextBox Height="23" HorizontalAlignment="Left"
Margin="46,76,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" />
</Grid>
</Window>
// Anders