Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to set focus on "No" button of the MsgBox in VB.NET
 

How to set focus on "No" button of the MsgBox in VB.NET

Theanswer i got in this forum has helped me,
in my code, i havean MsgBox(),
we havealready used two options in the place of MsgBoxStyle parameteras per our client requirement, and then we got one more requirement from our client, for that we have to set the focus of the message box on the "No" button, i have done with the help of MSDN as like below. It is working well.

MsgBox("Hold Order for This Customer. Do You want to continue?", MsgBoxStyle.YesNo + MsgBoxStyle.Question + MsgBoxStyle.DefaultButton2, "Confirmation")


The above code is working fine.

Thanks MSDN forums....
kirankumar.b  Wednesday, June 11, 2008 7:19 AM
Hi,

This forum is for GAX/GAT questions.

Please post your questions about the VB.NET language to the specific VB forum, like this one:

http://forums.msdn.microsoft.com/en-US/vbgeneral/threads/


thanks,
-Victor.
Working with GAX/GAT/DSL? Download SFT now! http://softwarefactoriestoolkit.net
vga  Thursday, June 12, 2008 6:44 AM

You can use google to search for other answers

Custom Search

More Threads

• What is the status of GAT? Why not use Codesmith?
• Is there any way to run an action when a project with my guidance package enabled is opened?
• T4 generating duplicate code file with different name
• How to get RecipeArgument Value
• Can't run the Guidance Package
• GAT and DSL
• Unexpected Menu Behavior
• Recipe spawning on pretty much anything using custom GUID/IDs
• Keyref warning
• GAX/GAT 2008 install problem