I would like to know how can we know if current active windows accept an character keyboard input. For example, if a non textbox control in an active window is in focused and user press "a" key, then the current active window will not accept the "a" input.
How to filter inputs from keyboard in all windows applications while our written code is running and lives in notification area
it's like: user opens our application, now when typing in for example MS Word, when he types "s" it is said in our code to filter "s" and change it to "M" so if he press "s" on keyboard, "M" is typed in MS Word document.
I am running Visual Basic Express 2005. I am trying to develop a program to send morse code out the serial port. I have created working code that can determine which character needs to be sent and toggles the RTS line on com 1 with the proper pulses. What I can't seem to figure out is how to be able to type in characters at a higher speed than they will be sent out the port, so as to be able to use the backspace key etc.
We have always used Me.Property and Me.Control in our VB projects, and have just got ReSharper. Does anyone know of a way to get it to ignore this specific type if redundant qualifier?
I still want it to complain if I use any other redundant qualifiers.
If a node belongs to a namespace, it's children by default belong to the same namespace. So there's no need to provide an xmlns attribute on each child, which is good. However. If I create two nodes like this:
I have created a virtual keyboard like the "Windows onscreen keyboard". So, I have used the method sendkeys.But if I click on the button, it doesn't write nothing.
I think I have a problem with the FOCUS.As you can see, the "Windows onscreen keyboard" is always on top.This doesn't happen to my form. How can I do?
How do I write an expression to calculate all characters of each row by my own defined value to each character = all the A and B and C and etc. will be as 2 and all I and J and whatever ... will be 1 so I need an end result of the total.
I am working on a sub that essentially needs to open a text file, and replace all instances of a certain character with a unicode character. I'm trying to do this by reading the original text file byte by byte, converting it to a character, and then either adding that character to a memory stream or writing the unicode character to the memory stream. Then I'm saving the memory stream to the original file.
For each character of this string I want a new character out of the string and then remove the character from the list of characters that still maybe used for other characters. It may not get the same character, you could basically just call this encryption, but it's not what I am making. I don't want to waste my time doing this one hour while VB can do this for me in <1 second.
I am writing a hangman type game and I am displaying the word to the user in a label as all *'s, but I cannot figure out how to have just one of the *'s changed in the label to the correct letter when the user inputs the correct letter into the text box and clicks the check letter button.Everything else in the program works perfectly, except for this part.[code]When I use the .Replace it changes all of the *'s to the correct selected letter.
the coding is to 'Get input string and put its character into List, and replace the character with other.'but having problem putting each character into List and also replacing it,[code]
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
In my VB.NET application I compare words that are recorded using IPA, many of which have many diacritic marks. In one of the comparisons, I compare the words character by character. But when I iterate over the characters, the diacritic marks come out as separate characters (as I would expect since this is unicode)However, a u character is different than a u plus an accent for the purposes of this program and needs to be distinguished.
My form has a texbox where user enters an ID. IDmust be4 chracters in length andof the form: begins with either "E" or "e" and the next 3 chracters cannot be "all characters".
I want to read a text file(.txt) character by character into a database.There are 28 characters on each line and I want to read the first 16 into a column in a database and the rest in another column in the database.
I've been working with the substring command and after coding up all the things I needed it to do, I saw a post on here where the "For Each" statement was used basically to do the same thing.Lets say we just want to take a string apart one character at a time and add each character to a label. Which would be more efficient?I made a cheap example to show ...
Code: ABinary = "0110 1100 0001 1011" For x = 0 To Len(ABinary) - 1
oke On-Screen keyboard through my VB code. I am using windows 7 and below code to open the keyboard. Everytime when i run this code i am getting error "Could not start On-Screen keyboard".e to fix this error?
Dim proces As New Process proces.StartInfo.UseShellExecute = False proces.StartInfo.RedirectStandardOutput = True
Probably another crazy question here, I have my rc car able to move by inputs I make to the keyboard of my laptop, is there a way for my vb code to record those inputs so that I can push a button and it will recreate my inputs?
I am developing an FTP program which: Watches a folder. If a new file is dropped there then upload it. Tells user if uploading and when complete. All the above works, however I wan to add the items to a listbox that are being uploaded. So if I dropped 3 items there it would look like :
Upload Listbox: cake.jpg myExcelFile.xls woot.docxAnd as each one is done, or new files are added it removes them or adds them.
I tried using que, but with no luck as the program just hangs whilst it uploads. So I had a search and looked into multithreading and I tried to implement it, but I can't get it to work as it gives me some 'delegate signature' related error message as you can't pass in values when trying to use 'AddressOf'.
Here is my code for the The .created sub: Public Sub FSystemWatcher_Created(ByVal sender As System.Object, ByVal e As System.IO.FileSystemEventArgs) Handles FSystemWatcher.Created 'if any file created add fullpath to the listbox ChangeLog.Items.Add("Created: " & e.Name) QueueListBox.Items.Add(e.Name) [Code] .....
I am stuck on a homework problem and was wondering if anyone could help out a beginner.The question reads:Calculate the amount of a server's tip given the amount of th bill and percentage obtained via input dialog boxes. The output should complete sentences that reiterates the inputs and gives the resulting tip.
here is what I have so far:
[Code]...
It works fine if I input the tip percentage as a decimal, but I need to be able to input a whole number for the percentage, and in turn, output the correct decimal. I'm sure this is a pretty easy fix,
I'm able to convert a character to its corresponding Character/ASCII code using "Asc(CHAR)". I can't find anything on converting this returned Integer back to its original Char form.
I have MIDNAME column in my table. I want to remove all the character starting from the second character going to the right and after removing it, a period "." will be added right after the letter which left. How do I it?
how can i select all inputs of thisweek entry.in my database i have fromdate and todate fields, now how could i select if i'm in anyday of the week but i have select to display thisweek activities. it will display into the datagridview all the activity setted for this week...exam in Microsoft outlook there, Day or today, and work week and month button..if i select today or day it will deplay in the datagrid all activties for the day, and if i select work week it will display activities for the entire week.. and month also...i'm using visual studio 2005 and access 2003
I migrated an application from Vb6 to .NET and there are still a few bugs to fix.One of them is when I want to edit a record, the inputs should have been populated with the coresponding data from the database. Instead, only the drop-downs are populated, the text inputs are blank.