本文介绍了如何在VB.NET中编写退格和空格代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用图像编写虚拟键盘,当我按下按钮时它会显示图像但是我无法编码空间和退格...



I am programming virtual keyboard with images, when I press the button it will display image but am not able to code space and backspace...

Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click
Dim myDir As String = "C:\Users\ASUBUSU\Desktop\keyboard\java pgm\"
Dim img As Image = Image.FromFile(myDir &"ya.png")
Dim orgData = Clipboard.GetDataObject
Clipboard.SetImage(img)
Me.RichTextBox1.Paste()

Clipboard.SetDataObject(orgData)



End Sub

如何在按钮点击中编写空格和退格代码



谢谢...



我尝试了什么:




End Sub
How to write code for space and backspace in button click

Thanks...

What I have tried:

If e.KeyChar = Convert.ToChar(Keys.Back) Then

推荐答案



这篇关于如何在VB.NET中编写退格和空格代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 02:03