Hi. I'm making a program somewhat like Siri except through text boxes not voice command. On my form FormMain I have two text boxes named TextBoxInput and TextBoxConversation. I also have two buttons named ButtonStart and ButtonEnd. Here is my entire code for FormMain so far: Public Class FormMain Dim yourname As String Private Sub ButtonStart_Click(sender As Object, e As EventArgs) Handles ButtonStart.Click TextBoxInput.Enabled = True Call Conversation() End Sub Private Sub ButtonEnd_Click(sender As Object, e As EventArgs) Handles ButtonEnd.Click TextBoxInput.Enabled = False End Sub Sub Conversation() TextBoxConversation.Text = "Hi! My name is Alex." + vbCrLf + "To end our …

Member Avatar
Member Avatar
+0 forum 13

Hi all, I am setting up a registration form for a website im building. When the user enters his/her information i would like to validate that the Username/Email aren't already in use. At this point in time ive got my mind set on a function that runs 2 seconds after anything is typed into the Textbox. This function works, it returns "Available" or "In use" when it should. The problem is; when the user begins to type, i would like my image (ajax-loader.gif) to appear, and when the script gives a result, i want the image to hide again. but …

Member Avatar
Member Avatar
+0 forum 3

I need to highlight the current key pressed in my C# application. To get the keyboard keys code during keyDown and keyUp events i tried returning the keycodes as protected override void OnKeyDown(KeyEventArgs keyEvent) { // Gets the key code lblKeyCode.Text = "KeyCode: " + keyEvent.KeyCode.ToString(); } Other way i tried was to check if each key that i need is pressed namespace test { public partial class Form1 : Form { public Form1() { InitializeComponent(); // Create a TextBox control. Button enterBtn = new Button(); this.Controls.Add(enterBtn); enterBtn.KeyPress += new KeyPressEventHandler(keypressed); } private void keypressed(Object o, KeyPressEventArgs e) { // …

Member Avatar
Member Avatar
+0 forum 1

Okay, this is just a simple trick to determine whether CAPS is pressed because some people here use API to determine whether the CAPS Lock is pressed. [QUOTE] KeyDown and KeyUp don't detect exactly the same information as KeyPress. KeyPress detects a character in its KeyAscii parameter, but KeyDown and KeyUp detect a physical keystroke in their KeyCode parameter. [LIST] [*]KeyUp and KeyDown can detect keystrokes not recognized by KeyPress, such as function, editing, and navigation keys. [*]KeyPress can distinguish between different ASCII characters generated by the same physical keystroke. [/LIST] [/QUOTE] Where did I get KeyCode = 20? Try …

Member Avatar
Member Avatar
+0 forum 7

The End.