Click here to Skip to main content
15,886,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
design as follows;

date ss vs rv kv ty ss jj ms vb cnn cmk

18 1 combobox( all course name)

2

3


in the combo box all course name are there.when i select the combo box that particular item will be displayed in the cell in that datagridview.

then i want to go to another column.for that go to another column in data grid view,
how to write code using vb script.when i press enter button in the keyboard that combo box will goes to another column.i want to use only one combo box for all staff to enter course on that date.

please send the code.
Posted
Comments
DaveAuld 6-Jan-13 11:22am    
I take it you are using asp.net by the fact that you are asking for vb script?

1 solution

First of all, 'please send the code' rather than 'I've tried this', is really frustrating. Why can't you at least try to do your job ? Secondly, please tag your question properly. VBScript runs in IE ( so I assume this is a website, either ASP.NET or MVC ), but only in IE ( so for some reason, you deliberately want your site to not work on a Mac, or on Firefox or Chrome. Why ?

If you're writing a windows app, what makes you think you can write vbscript in your C# app ? If you're writing a web app, then there are no datagridviews interacting with javascript or vbscript. The scripting languages run in the browser, where all those server controls have been turned in to html. In html, those things are probably tables, in tables, like most elements, have events including events for key presses. Adding events in javascript to handle what you want is easy, and works everywhere. Not many people script web sites in VBscript, because they want their websites to work for everyone, not just IE users.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900