i am using this code below to compare two strings then count the no. of mistakes when text is added into textbox2[code]but when enter key is pressed the code doesn't recognize the enter even thought it is correct and counts it as a mistake.
I have a function that allows a user to enter numeric vallues and also a period for the decimal points but I also want to allow for users to enter the minus sign to allow users to enter negative values . How would I go about it.
Public Function SingleDecimal(ByVal sender As System.Object, ByVal eChar As Char) As Boolean Dim chkstr As String = "0123456789." If chkstr.IndexOf(eChar) > -1 OrElse eChar = vbBack Then If eChar = "." Then
how to enter a data that i enter in textbox to a datagridview... for example i enter in the textbox is round and when i click add it will go to database... im using ms access database
I am trying to enter the following on an excel spread sheet from vb.net:applic.activesheet.cells(1,1)="=server|topic!" & Item & My.computer.keyboard.sendkeys("{CNTRL} {SHIFT}{ENTER} ")The error says: "Expression does not produce a value"I tried even {ENTER} and still the same error.
I have an data application I made for a company. I want them to be able to hit both the Tab and the Enter key to select the next control in the tab order. I would also like to turn the background of the currently selected control a color other then white. I have been trying for days to find a solution but trying to interpret the msdn library is making my head spin..For some reason, the below code only recognized the enter keyup and not the TAB key.My Code here:
Imports System.Windows.Forms Public Class Form1 Private Sub TextBox1_KeyUp(ByVal sender As Object, ByVal e As
I am trying to teach myself visual studio 2010 using VB. However, I am having trouble with functions. I have created one that looks as the example code given in the text but I keep getting an error message.I include my code but whatever I have tried, like declaring Dims all over I can't get it to recognize that GCD is a function rather than a variable.
Partial Class Intergers2 Inherits System.Web.UI.Page Protected Sub SubmitButton_Click(sender As Object, e As System.EventArgs) Handles SubmitButton.Click[code]......
I have a PDF file with n pages, I need to split it to n files. On each page I have barcode, I need to recognize/read barcode. If I have two files with the same barcode I need to merge them.Can anyone recommend an .net component or exe or something else that will help me? It can be commercial.I have tried:itextsharp - only split and merge files dotimage/aspose/idautomation - only recognize barcodes and it very expensive a-pdf - not always recognize the barcode and not merge/split two files.
i would like to be able to type a complete word, and if that word is in my list of sound wav's, then to play that wav.. basically, i need it to find the space before the word and the space after, so when i press the spacebar, it will only try to locate the last word in between those spaces, and if the word is tru , then it would say tru , if i type in tru jade, it would say tru . . then say jade .also, if possible, to pick up the first typed word also, which would not contain the space before it.. how to get my app to recognize my voice after i name it pookie ,so when i say " pookie, load vb ", it would say, " sure tru jade, you are the best, of course i wil l " and shut down my p.c.
the loading of the app should not be a problem for me.just getting my app to listen for pookie, and a command..links are also welcomed to other good pookie sites..
How do I make my program know that time is passing and interact with it? Currently I'm trying to use a method like this: Imports System.Globalization Private Sub CurrentTime_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CurrentTime.Tick Dim date_info As DateTimeFormatInfo = _ CultureInfo.CurrentCulture.DateTimeFormat() ToolStripLabel1.Text = Now.ToString(date_info.ShortTimePattern) End Sub
That sets the current time to ToolStripLabel1.Text it looks like: 10:25 PM. Then I made another timer, realizing I couldn't interact with Toolstriplabel1.text because the time contains " : and PM", and this timer does this: Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick TextBox48.Text = Val(ToolStripLabel1.Text) End Sub
Basically it takes the value of toolstriplabel1 which would be "10" it gives a variable 1-12 in accordance with the current time. Then I have another timer that handles the main process, and in My.settings I have a variable: My.settings.12hourspassed
So I was going to use My.settings.12hourspassed as a variable such as My.settings.12hourspassed = My.settings.12hourspassed + 1 - whenever the time (textbox48.text) goes to 12. Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick If Val(TextBox48.Text) = 12 Then My.settings.12hourspassed = My.settings.12hourspassed + 1 If Val(TextBox48.Text) = 12 Then TextBox48.Text = "1" End Sub
The problem is that I cant do textbox48.text = "1" because another timer is making it the value of the current time.. So whenever textbox48.text = 12 it constantly does: My.settings.12hourspassed = My.settings.12hourspassed + 1...
I know that this method completely skips an hour and such.. accuracy isnt all that huge. Any way to tick off whenever 12 hours have passed? and if the program is turned off a way to compare the current date with the date the program turned off at to see how much time has passed while the program is off?
I am stuck on what 'should' be a fairly simple thing to solve, however after a good search i haven't got very far.
Basically i am pulling data from a database which might have multiple lines of data, however for one particular task i only want to grab the first line of text (as a sort of preview).[code]...
i want to recognize the gps port and use in my program to send a command, i have the script to send the command through the serial port but now i net to put the com port manually and i want this automatic.
The code today:
Public Class Form1 Dim comPorts As Array 'Com ports enumerated into here Dim rxBuff As String 'Buffer for receievd data
I have written an vb.net application, named vbapp.exe. And I would like to use vbapp.exe to shell an external .exe file and this external .exe will create a file in the folder in which the external .exe file is located.However, the external .exe file will not recognize its own folder, on the contrary, it will think that its own folder is where the vb application, vbapp.exe, is located.
I wanted to have the same objective as the Thread Starter here.
I have this code right now
If e.KeyCode = Keys.K Then e.Handled = True SendKeys.Send("A") End If
But then I want to bink key K to be recognize as Numpad 7 I have followed all the suggestions given in the said thread and found no luck. I'm just a newbie when it comes to things like this.
I need to create a program, and now I want some advice from you, as I simply don't have so much experience to get round it.Firstly, I have issue with a checked list box. For example, there will be 5 items.I want each item to have a different value, because it will be a things people will be buying, and so when someone clicks on item1, the value I assigned to it will be output into a label, so user will know how much that item costs. I know how to output it, label1.text = CheckedList Box1.SelectedIndex but how do I set for example for item1 value of 5000, for item2 3500 and etc? Secondly, I will have a page for users, where they will see history of their bought items. But what's the best way to store the price they paid, item they bought and date? It should be able display for each user their own bought item history.I hope you understand what I meant, as I'm quite new in programming so It was a bit hard for me to express what exactly I want. If you didn't understand something, or need more information please ask me. I hope someone will be able to help me, as I really have a bit of a struggle with it. At first I wanted to use plain .txt file to store and output into textboxes, but it wouldn't be aligned, look nice and etc. Then I thought about database, but how to recognize which item to display for each user and etc.
For some reason , that I can not catch yet , when I installed the office 2007 this module can not be downloaded running from 2003 to 2007 version. When I try to run it it shows " compile module error " I went to check it and the error seems to be on " DIM MY DATE " WHICH IS NOT BEEN RECOGNIZED AND ON THE " MSG " YES OR NO STRING .
Sub EMAIL_VACATIONS() Dim X As Long Dim MyDate Dim MYDATEFOR As String
So I wrote a program, which goes thru the authentication of a website, using a 'webbrowser' element within the program, however, when I want to open a page in an other browser e.g.: Firefox after I went thru with the Auth. in the application , it seems as there have been no authentication at all.
Do I need to set something with the cookies? Or how would firefox know that I am already logged on on another browser? all is in Visual Basic 2008.
I've a php script that if the user ahs the privilege to download and image the image is sent to webbrowser but if the user has not the privileges and xml with the info is displayed.[code]
I am trying to create a program that will be able to recognize handwritten numbers in a picture. Right now, the program locates a rectangle that the numbers are in. The numbers will generally be in the range between 0 and 9000. I have found some stuff about ink recognition, but I dont think that is the same. Also, is there anyway to be able to make the program 'learn' from the style of the handwriting? I'm using VB.net 2008
"The world is round and the place which may seem like the end may also be the beginning"
I have a country map in a picture box with provincial divisions. I can fill each province on mouse over by calling following floodfill function on my pictureBox MouseMove event[code]...
I am currently developing an application that displays information to users. I have everything working but one tiny thing thats bugging me. I create a font as below
I'm learning to play the Trumpet and thought it would be a great idea to write myself a flash card type program that would flash a note, pick up the sound from the microphone, determine the pitch, compare it to the note and evaluate right/wrong. For example, it puts a middle C on the screen, listens for a tone above the din and beeps or buzzes if the result is right or wrong.
I'm trying to make a Toolbox component which the user can drag onto a form in the VS Designer. The component has to recognize the Form it is on, in order to handle certain Form events. I would prefer to do it without requiring the user to add any code to the form. Does anyone know a way the component can get the identity of the form?
VS won't recognize this as a class, I get the "Type 'ManagementObjectSearcher' is not defined." error. Usually when this happens I just need to import something, in this case it's System.Management, however this doesn't do anything. I'm quite new to programming so it's probably some very simple mistake or misunderstanding.
I have a web browser project and the address bar doubles as a search bar (like google chrome). I need to detect if a user Ctrl/Alt + Clicks/Presses enter so it can specifically search or navigate. Any ideas?
If textbox input is letter i wanna that button will be disabled,and if input is a number,button will be enabled?How button can recognize kind of input data?