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 7629193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:46:20+00:00 2026-05-31T05:46:20+00:00

I am new to windows phone development and I would like to know is

  • 0

I am new to windows phone development and I would like to know is there any thing like timedelay in WP7.

As I would like to show Popup after few seconds after image loads completely(say after 5 sec I need to open a popup automatically)without clicking any button.

As of now I am doing this way but it opens Popup as soon as the image loads.

 Public Sub New()
    InitializeComponent()
    photoChooserTask = New PhotoChooserTask()
    AddHandler photoChooserTask.Completed, AddressOf photoChooserTask_Completed
 End Sub
 Dim photoChooserTask As PhotoChooserTask

Add Image:

 Private Sub AddImage_Click(sender As System.Object, e As System.EventArgs)
        Try
            photoChooserTask.Show()

        Catch ex As System.InvalidOperationException

            MessageBox.Show("An error occurred.")
    End Try
 End Sub

Afer Loading Image:

 Private Sub photoChooserTask_Completed(sender As Object, e As PhotoResult)

        If e.TaskResult = TaskResult.OK Then
            'Code to display the photo on the page in an image control named myImage.
            Dim bmp As System.Windows.Media.Imaging.BitmapImage = New System.Windows.Media.Imaging.BitmapImage()
            bmp.SetSource(e.ChosenPhoto)
            myImage.Source = bmp
        End If

  Dim popup As New Popup()
        popup.VerticalOffset = 140
        Dim control As New PhonePage3()
        popup.Child = control
        popup.IsOpen = True
    End Sub
  End Sub
  • 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-31T05:46:22+00:00Added an answer on May 31, 2026 at 5:46 am

    It’s quite easy, use the Timer class for your task (http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx).

    Create the timer:

    Timer myTimer = new Timer(OnTimerDone);
    

    Start the Timer to get a callback in 5 secs (5000 msecs):

    myTimer.Change(5000, Timeout.Infinite);
    

    Define the callback function:

    private void OnTimerDone(object state)
    {
        // your code here
    }
    

    That’s all 🙂 Sorry for C# code but I think it should be easy to translate it to VB.

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

Sidebar

Related Questions

I am new in windows phone development. Please tell me is there is any
I am new to Windows Phone 7 Development. I want to know, can I
Guys I am new to Windows Phone Development in .Net Can any one guide
i am new to windows phone 7 development , i wish to like to
I am completely new in windows phone app development. I want to know what
Hi there I am new to the windows phone development and I am trying
I'm developing a windows phone application. I'm new in WP7 app development. In my
I am new to the windows phone development, and I am struggling to get
All, I am very new to Windows Phone and really don't know where to
I am new to silverlight and windows phone 7 development and am having some

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.