Quantcast
Channel: VBForums - Mobile Development
Viewing all articles
Browse latest Browse all 78

Many questions from a beginner

$
0
0
Hi,

I wrote some programs in vbdotnet for windows
Now I try to write something for Phone 10(950 XL)

My questions:
1. I have in my code SupportedOrientations = SupportedPageOrientation.Landscape but the emulator Always starts in portrait. Why?
2. I want to add a menu that part works. however i can't asing code to the buttons.
Code:

        <shell:ApplicationBar x:Name="AppBarMenu" IsVisible="True" BackgroundColor="Red" Opacity="1" Mode="Minimized">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="btnTest" IsEnabled="True" Text="test"/>
            </shell:ApplicationBar.MenuItems>
            <shell:ApplicationBarIconButton x:Name="btnOpen" IconUri="/Assets/AppBar4/basecircle.png" IsEnabled="True" Text="Open" />
            <shell:ApplicationBarIconButton x:Name="btnNew" IconUri="/Assets/AppBar1/add.png" IsEnabled="True" Text="New"/>
            <shell:ApplicationBarIconButton x:Name="btnSave" IconUri="/Assets/AppBar2/save.png" IsEnabled="True" Text="Save"/>
            <shell:ApplicationBarIconButton x:Name="btnClose" IconUri="/Assets/AppBar3/close.png" IsEnabled="True" Text="Exit"/>
        </shell:ApplicationBar>

The eventhandler are set
I Also have
Code:

  Private Sub Open_Click(sender As Object, e As EventArgs) Handles btnOpen.Click
    MessageBox.Show("Hi")
  End Sub

3. I want to add in RUNTIME multiple controls mostly textbox.
How can I set a location(left/top)

Jan

PS: If needed I will split this topic in 3
My source can be found here http://users.telenet.be/janr/PhoneTabel.zip writen in vs2013

Viewing all articles
Browse latest Browse all 78

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>