Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7619167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:36:51+00:00 2026-05-31T03:36:51+00:00

net to make a Windows Phone application. I have a listBox on page1 called

  • 0

net to make a Windows Phone application. I have a listBox on page1 called listBox1 and in page 2 I have a button called btnAdd. I want to be able to add an item into the listbox1 from page1 whenever btnAdd is pressed in page2. I knew how to do this on VB6 but it seems different on vb.Net. Can someone please help? Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:36:52+00:00Added an answer on May 31, 2026 at 3:36 am

    How about binding the listBox1 to a datasource that is available from both pages (maybe in a separate class) then updating that datasource from the btnAdd click event.

    Example:

    In Page1 add:

    public static List<string> listItems = new List<string>();
    

    In the OnNavigatedTo override add:

    listBox1.ItemsSource = null;
    listBox1.ItemsSource = listItems;
    

    In Page2 btnAdd_Click handler add:

    Page1.listItems.Add(textBox1.Text);
    

    Sorry the above is C# but it shouldn’t be difficult to get the VB equivalent.

    Using the ViewModel approach and implementing INotifyPropertyChanged would be cleaner and avoid needing to reset the ItemSource in OnNavigatedTo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a database application using ASP.NET and I want to make a Windows
I have a Windows application in C#/.NET. I need to make some keyboard shortcuts
.NET newbie here... I'd like to make a button in a Windows form that
net windows form application. I have a combo box and a text box and
In my Windows Mobile .NET application I have a simple array of object with
Im using c# .net windows form application. i have a datagrid view. It has
I have a windows service in VS.net 2008. Just to test the application before
I'm trying to make a basic client-server application for windows phone 7 (using Mango
I want to make a windows mobile 6 cellphone application. This application will talk
I have to make an application that make pc-phone and pc - pc call

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.