Windows Mobile 6.5 アプリケーションの Windows フォームでメイン メニュー コントロールを使用しています。バーコードをスキャンすると、プログラムが別のページに移動するようにプログラムされています。ただし、メイン メニューが開いているときにページをスキャンすると、子画面でメイン メニューを開くことができなくなります。デコーダー イベント (メニューを非表示にする) で親フォームで「クリック」を実行しようとしましたが、メニューはまだ子画面に表示されません。子画面でメニューを再び機能させるにはどうすればよいですか? スキャン中にメニューが開かれていなくても問題ありません。
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
frmOffenderDetails コードのすべてをステップ オーバーしても、メニューは表示されないため、そのフォームとは関係ありません。