Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8723385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:36:50+00:00 2026-06-13T07:36:50+00:00

i am using vb.net to edit a gridview value and when shift is pressed

  • 0

i am using vb.net to edit a gridview value and when shift is pressed i want to edit multiple cellvalues that belong to a group in the same time, now my problem is when shift is pressed and i click a number key it will give me a symbole

for example

  SHIFT+1 = !
  SHIFT+2 = @
  and so on

However i want it to be

SHIFT+1 = 1
SHIFT+2 = 2
and so on

is there a built in functionality to do this?

if not, then i think i need to write a function to do this which functions as when shift+1 is pressed then keyboard inpt is 1 and not !

any ideas on how achive such behavior in vb.net?
and don’t tell me to use ctrl because i am using it for another thing already and it won’t type when using ctrl 😀

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:36:51+00:00Added an answer on June 13, 2026 at 7:36 am

    You can use a naive routine such as this. If you need comma etc, modify as needed:

    Private Sub TextBox1_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
        If e.Shift AndAlso
           (Keys.KeyCode And e.KeyData) >= Keys.D1 AndAlso
           (Keys.KeyCode And e.KeyData) <= Keys.D9 Then
    
            TextBox1.SelectedText = ChrW((Keys.KeyCode And e.KeyData))
            e.SuppressKeyPress = True
    
        End If
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using C#.net I want to add custom edit/delete buttons to my GridView1
I am using ASP.NET to create a page with a GridView that is very
I'm trying to make a very simple asp.net page that binds a GridView using
I have been using the .NET WebBrowser control in edit mode as part of
EDIT: I am using VS2008, .NET 3.5 I have a DataTable, which is populated
I m using MVC architecture in ASP.NET 3.5. In edit I'm getting the above
Using .net 2.0 . I want to display a column in a DataGridView as
I want to create a gridview form a class and send that gridview as
I am using C#,ASP.NET I have a Gridview for which I have provided Sorting,
I have a site using ASP.NET Membership and have a number of roles that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.