Welcome Guest Search | Active Topics | Sign In | Register

Msgbox Active Window Options
Mehul Panchal
Posted: Sunday, June 5, 2011 1:01:26 AM
Rank: Member
Groups: Member

Joined: 7/7/2010
Posts: 28
Dear Support.

I am using Msgbox control as per below on my button click event.

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
If RadioButtonList1.SelectedIndex = -1 Then
MsgBox2.Show(Me.Form.Page.ToString, "Please select the Indet Forward To", Nothing, New EO.Web.MsgBoxButton("OK"))
Exit Sub
End If

End sub

Msgbox open but my cursor focus on the Button2 so if i click enter then again button2_click event fire.

I want when msgbox open my main page get inactive and msgbox dialog can active. Please guide us how to get the same result.

Thanks,
Mehul
eo_support
Posted: Monday, June 6, 2011 8:21:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can use a Dialog control instead of a MsgBox control. Dialog control allows you to explicitly put button in there. You can then programmatically set focus to the button that you put in the dialog control.

Thanks
Mehul Panchal
Posted: Tuesday, June 7, 2011 12:59:23 AM
Rank: Member
Groups: Member

Joined: 7/7/2010
Posts: 28
Hi,

But same function works ok in Firefox and other browser. Only in IE it works different, In IE if we press spacebar then work ok but when press enter it click the main page button click event.

Thanks,

Mehul


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.