[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

vb.net keep focus on panel

Posted on 2009-06-27
3
Medium Priority
?
975 Views
Last Modified: 2013-11-17
Hi All,

I have written a control which is a message box, the message box IS NOT a form it is a panel with controls contained inside.

What is the best way to prevent focus change when i show the message box?, i know there are other ways to achieve this on the desktop but i am using windows mobile for this project.

In effect i want to show the panel that has 3 buttons and make the sub routine wait until the user has made a selection, also i need to stop the user from pressing buttons in the background behind the panel (message box)

I am using VB2005 with CF2.

Thanks
Zeus
0
Comment
Question by:Zeus2009
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24761487
Quite difficult functionality to be honest. You can place the rest of the controls (the background controls) in panels as well and then disable those panels when this messagebox is shown. This way, the focus would also remain on this panel i believe because nothing else would be clickable.
0
 

Accepted Solution

by:
Zeus2009 earned 0 total points
ID: 24762486
I have found an excellent solution i conjured up over the weekend, i am using a do loop with a do application events until i return an integer defining the button pressed within the control.

Thanks for the reply though.

How do i close this post?

Zeus
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24763032
It would have been a good idea to close this question over the weekend when you had found the solution. This saves many volunteer experts from wasting time and effort.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question