-
Apr 9th, 2022, 07:02 PM
#1
Thread Starter
Addicted Member
VS2015 WPF - window contents show for a second then everything disappears
I was working with VS2022 but it turned out that I can't use an Access 2003 database because it needs a 32bit provider which 2022 doesn't do.
So I started copying all the XAML into a VS2015 project and it seemed fine but then I ran the first page and the contents only show for 1/4 second then it all disappears but I simply can't see anything to cause that. Here is the XAML, Maybe one of you can spot something that I Can't. PS there is no codebehind (only copied the XAML so far)
Code:
<Window x:Class="Login"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApplication2"
mc:Ignorable="d"
Title="Login" WindowState="Maximized">
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="2*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="2*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="1" Grid.Column="1">
<TextBox Name="tbxUsername"></TextBox>
<TextBox Name="tbxPasswd"></TextBox>
<Button Name="btnLogin">Login</Button>
<Button Name="btnExit">Exit</Button>
</StackPanel>
</Grid>
</Window>
Thanks for looking!
-
Apr 9th, 2022, 08:04 PM
#2
Thread Starter
Addicted Member
Re: VS2015 WPF - window contents show for a second then everything disappears
Actually it looks like it was a glitch in that new project. I deleted it and started another and it displays properly.
-
Apr 10th, 2022, 05:29 AM
#3
Re: VS2015 WPF - window contents show for a second then everything disappears
Originally Posted by pmeloy
I was working with VS2022 but it turned out that I can't use an Access 2003 database because it needs a 32bit provider which 2022 doesn't do.
VS 2022 will generate x86 (32 bit) executables just fine - should work with a 32 bit Access provider.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|