Button click event to textbox filled text

Posted by Rmohankumar under VB.NET on 11/10/2011 | Points: 10 | Views : 3319 | Status : [Member] | Replies : 9
i have more then one text box and more then one button, text filled in onfocused textbox through button click event




Responses

Posted by: Blessyjees on: 11/10/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

not clear. do you want to fill textbox in OnFoused event or button click event

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rmohankumar on: 11/11/2011 [Member] Starter | Points: 25

Up
0
Down
26 buttons A-Z and these button click add the text in focused textbox, like keyboard

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 11/11/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Do you have 26 text box. what data filled in the textbox. how will you calculate which textbox is focused.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rmohankumar on: 11/11/2011 [Member] Starter | Points: 25

Up
0
Down
hi,
26 button caption A-Z then if i fill the first textbox in "HELLO", i click the button H E L L O to enter the text to the particular textbox then i move the cursur to next textbox through mouse or tab then how to enter the text in second textbox from button click event.

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rmohankumar on: 11/12/2011 [Member] Starter | Points: 25

Up
0
Down
hi,
are you understand or not ?

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: perfectchourasia-9163 on: 11/15/2011 [Member] Starter | Points: 25

Up
0
Down
You can put your data in dataset or datatable ,session ,viewstate etc.-there is little diiffrence when there is single table then use datatable otherwise dataset .
and that value you can use to show in textbox on button click event.




ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RohiK on: 11/15/2011 [Member] Starter | Points: 25

Up
0
Down
hi,

I think you are trying application same as typing in touch and type mobile phones, right na?

means there are 26 buttons having text ="A..Z" and if user click on any text box and type H button the H should get inserted in text box.

you can do this using javascript.
when any textbox get focused then you can easily find out the name of that control.
then on button click event you just need to fill the text property of button into that text box.

try this

Happy Programming!!
Rohi

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rmohankumar on: 11/15/2011 [Member] Starter | Points: 25

Up
0
Down
Yes, this application same as typing in touch, please reply the javascript code and how to call
Thinks

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: RohiK on: 11/16/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
I will provide you rough scenario


// javascript function to get the button caption on text box

//call this function on button click
var FocusedTextBox=null;
Function ButtonClick(obj)
{
FocusedTextBox=FocusedTextBox+obj.value;
}
//javascript fuction to set focused text box
// call this function on text box onblur event
function getFocusedTextBox(obj)
{
FocusedTextBox=obj;
}



Happy Programming!!
Rohi

Rmohankumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response