Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
kalaivani
Starting Member
11 Posts |
Posted - 2007-12-19 : 04:17:28
|
i have one button control in web form(ASP.NET). the button shouldnot have any focus when i run the web form. but it should be clicked.is there exists any properties? we can use setfocus to set the focus to the button. but if i wish to omit the focus to the button, what i do? |
|
mahesh_bote
Constraint Violating Yak Guru
298 Posts |
Posted - 2007-12-19 : 15:17:12
|
sorry to say but really didn't get you. do you mean something should be happen without clicking on button? is that so?let us know,Mahesh |
|
|
kalaivani
Starting Member
11 Posts |
Posted - 2008-01-02 : 01:29:43
|
i mean that the button should not get any focus like using tab key, arrow key at the time of running. but that button should be able to click by using mouse only at the time of running. can u pls help me? |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-01-02 : 03:14:49
|
quote: Originally posted by kalaivani i mean that the button should not get any focus like using tab key, arrow key at the time of running. but that button should be able to click by using mouse only at the time of running. can u pls help me?
Why do you want to do this?MadhivananFailing to plan is Planning to fail |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2008-01-02 : 03:22:51
|
Try setting Tabindex property of the button to a negative value.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
|
|
kalaivani
Starting Member
11 Posts |
Posted - 2008-01-02 : 03:40:03
|
For some validation process i want this.i set tabstop property of button to false to loss focus via tab key. but the button could get focus via arrow keys. so how it is possible to loss the focus of a button entirely. |
|
|
hey001us
Posting Yak Master
185 Posts |
Posted - 2008-01-15 : 20:34:27
|
Did you try this on form Page_Load()?this.Button1.Focus();hey |
|
|
|
|
|