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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:08:10+00:00 2026-06-15T12:08:10+00:00

I’m using a Main Menu control in a windows form on a Windows Mobile

  • 0

I’m using a Main Menu control in a windows form on a Windows Mobile 6.5 application. It is programmed so if I scan a barcode, the program takes me to a different page. However, if I scan a page while the main menu is open, I no longer am able to open the main menu on the child screen. I tried performing a “click” on the parent form in my decoder event (which hides the menu), but the menu still won’t show on the child screen. How can I get the menu to work again on the child screen? It works fine if the menu wasn’t open while scanning.

Public Shared Sub DecodeEvent(ByVal sender As System.Object, ByVal e As HandHeldProducts.Embedded.Decoding.DecodeAssembly.DecodeEventArgs, ByVal scanInformation As ICurrentScanInformation, ByVal dashboardScreenServiceClient As DashboardScreenServiceClient)
    Dim oDecodeAssembly As New DecodeAssembly
    If scanInformation IsNot Nothing AndAlso scanInformation.AllowedScans IsNot Nothing Then
        ShowOffenderDialog(scanInformation.ScreenName, CType(scanInformation, Form), sourceId, source, True, e.Message) 
    Else
        MsgBox.ExclamationMsg("This type of barcode scan is not allowed.")
    End If
End Sub


Public Shared Sub ShowOffenderDialog(ByVal parentScreenName As String, ByVal owner As Form, ByVal sourceId As System.Int32, ByVal source As System.String, ByVal scan As System.Boolean, Optional ByVal offenderCd As String = "")
    Try
        /*open up a new screen*/
        offenderDetails = New frmOffenderDetails(parentScreenName, offenderCd, sourceId, source, scan)
        offenderDetails.ShowDialog()

        owner.BringToFront()
    Catch ex As Exception
        Utility.DisplayApplicationMessage(parentScreenName, "ShowDialog", ex)
    End Try
End Sub

If I step over all of my frmOffenderDetails code, the menu still won’t display, so it doesn’t have anything to do with that form.

  • 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-06-15T12:08:11+00:00Added an answer on June 15, 2026 at 12:08 pm

    Using RemoteSpy++, I determined that the menu’s name is MNU on my device. So I used the following code to find the menu:

    Solution 1 (for Honeywell Pocket PC devices):

    Dim menuHandle As IntPtr = HandHeldProducts.Embedded.Utility.WinAPI.sysFindWindow("MNU", Nothing)
    

    I was unable to fix the error on the Honeywell Pocket PC device by closing the menu before the decode event, so I just notified the user it was open and to try again with the menu closed:

    If Not menuHandle.ToInt64 = 0 Then
        MsgBox.ExclamationMsg("The menu must be closed before scanning a barcode. Please try your scan again with the menu closed.")
    Else
        Decoder.DecodeEvent(sender, e, CurrentScanInformation, dashboardScreenServiceClient)
    End If
    

    Solution 2:

    I have not tried it, but would assume you can also P/Invoke if you do not have a Honeywell device.

    Declare the following function:

    <DllImport("coredll.dll", EntryPoint:="FindWindow")> _
    Private Shared Function FindWindow(ByVal lpClassName As String, _
                                       ByVal lpWindowName As String) As IntPtr
    End Function
    

    And call it like this to find the handle of the menu:

    Dim menuHandle As IntPtr = FindWindow("MNU", Nothing)
    

    The second part is the same as solution 1:

    If Not menuHandle.ToInt64 = 0 Then
        MsgBox.ExclamationMsg("The menu must be closed before scanning a barcode. Please try your scan again with the menu closed.")
    Else
        Decoder.DecodeEvent(sender, e, CurrentScanInformation, dashboardScreenServiceClient)
    End If
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I've tracked down a weird MySQL problem to the two different ways I was

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.