How To Detect Mistyped Text
Apr 11, 2011I want to know how to detect mistyped text in VB.net without using Soundex? I mean another method
View 5 RepliesI want to know how to detect mistyped text in VB.net without using Soundex? I mean another method
View 5 RepliesI came to a company that already has a fully grown project... but coders that worked here before me didn't follow conventions and didn't use parametrized SQL queries... as a result there is over 1000 places in a very huge project that can possibly be vulnerable to SQL injection...
I need to find a solution that will automatically detect if there is an SQL injection in the code. So, for example there is a form which allows user to enter comments regarding a product, which will be sent to database on submit... how can we make sure that a user didn't enter a harmfull query instead of a normal text?
Is there any advanced code/regular expression/magic that can detect if this text contains a piece of SQL query instead of normal harmless text? I will accept any links, pieces of code in any language or even commercial software that will do that for me.
Is there a way to detect the actual width of text in a vb.net web app? It needs to be dependant upon its font-style and size.
In vb6 you could copy the text into a label and make it expand to fit then measure its width, but this won't work in vb.net.
[code].....
View 6 RepliesHow do i detect a part of a string from a string in a text file? I'm using vb08[code]...
View 10 RepliesDuring my program I put lines out to a text box on the screen as a form of logs.After each line is added I do a ScrollToCaret() to move to the end of the lines.However, if I'm manually scrolling around the logs/lines (eg: using the scroll bar) I don't want to that.
Is there something I can check so as not it issue the ScrollToCaret() if the user if currently scrolling around in the text box?
Is there any way to determine if a text file is currently open in a text editor? Or better yet, is there a way to trigger an event when a text file is opened (from any program)?
View 3 RepliesIn my program I need to make various word replacements but I don't want to replace the word if it's encapsulated[cod]e...
View 1 RepliesI'm creating a basic text editing program that will be used for UCAS Personal Statements (probably not a unique idea but hey). It will be a basic text editor with no special text formatting to sit in line with the guidelines of UCAS (there is a character limit for personal statements).
What I want to do is have a save/load option (which is easy enough), however on the "Exit" function I want the program to detect text changes and alert the user that saving is recommended (ya know like when you close word and it asks if you want to save blah blah blah)
Is there a way to detect whether text inside a textbox is highlighted from a user using a mouse either by double clicking or click and drag inside a textbox? I'm able to use the mouse doubleclick event as a way to detect the double clicking. However, i am stuck with click and drag to highlight for more than two characters.
View 4 RepliesHow to detect if the user pasted in more than one line of text in VB? You could answer in C# if you like (I can convert it later
View 4 RepliesOkay so I'm trying to hide my program (only one form) so I'll just make a button and put me.visible = false , but I'm just wondering how to make my program detect a keypress (^ key) and show itself? I tried creating a timer and chucking
[Code]...
I have a function read the text file line by line, i have to detect a specific word in the text file befere proceed to another action. But I can't use substring because i not sure exact location of the word.
View 1 RepliesI'm working on a project, where the localization is mostly done using resourcefiles/cultures. If a translation does not exist for the language, the default language is used.I recently received the task of reviewing some problems with the translation. Some text is in the default language, some not. Why it has not been translated is not always obvious, as there are cases when the resource files are not used, or have not been translated. I would love to be able to see what is the case without having to check the code.
View 1 RepliesGoing from VB6 to VB10 I find VB10 has much easier ways of doing things, like getting command line arguments, getting all subfolders, etc, the hardest part is knowing what commands to use. Is there a better way to detect if a string ends with certain text? I'm doing it like this....
[Code]...
I am working on a carputer app, and it will be relatively basic with common tools. I am going to make an onscreen keyboard that fits the style of my app, but I want to make it a seperate application from the main app. All I want it to do is is have my keyboard become visible whenever I enter a text field of any application, whether it be programmed by me or a third-party app. Think about this in the way of a smart phone... Whenever you enter a textfield the system keyboard is displayed.
View 2 Repliesiam using the below code to check text change in clipboard but its not supported with unicode chracters like ا ب ج is there any way to add support for unicode text or is there any other way to do same work?
#Region " Definitions "
'Constants for API Calls...
Private Const WM_DRAWCLIPBOARD As Integer = &H308
[Code]....
can i detect if a text box is showing 15 and descending and then perform an action?
View 5 RepliesI have some textboxes bound to a bindingsource and bindingnavigator.
I want to detect when the values have changed and prompt the users to confrim if they want to update.
When the form is first initalised and when then binding navigator moves to the next record the text_changed event fires on textbox where I have a boolean to determine if things have changed.
Is there a way to set my boolean only when valid data changes have occured or a better way to detect if things have changed
I have a question about collision, yes my 2d tile rpg's map collision works just fine, but im having trouble with the collision with my npc's. At the start of the game it loads all the map data from a text file. well it also loads the location and other stuff about the npc's onto the map from a text file. how do i detect the collision of the npc's that were loaded from the text file, i could do collision with hardcoded npc's but i want to avoid hardcoding the game content into the game engine. RESTATING MY QUESTION: How do i detect the collision of NPC's that i load onto my 2d tile map from text file?
View 6 RepliesIs there any way to detect if the text in a label is longer than the label itself (assuming autosize is set to false)? I want to trim the text in a label so the last line is a finished sentence (everything after that sentence is removed). I hope you understand what I mean.
I want to go from this:"Hello. This is a test string. Most test stri..."
to"Hello. This is a test string."
Is there any easy way to do this?
I want to write an application that can detect whether a value in CSS file has changed or not
View 3 RepliesWhy there's no built-in function to detect platform, I need to know I am running on x64 or x86?[code]...
View 4 RepliesMy table gets its information from a Mysql database online. I'm not sure which would be quicker to retrieve the row that contains the information specified.[code]...
View 5 RepliesI have a dataGridView control with a DataGridViewComboBoxColumn column, the question is Which event of the dataGridView I must use to detect when the user change the selected value of a particular DataGridViewComboBoxColumn?
View 1 RepliesHow to detect whether Caps Lock/Num Lock is on/off on a keyboard?
View 2 RepliesI have a text file, about 30mb's in size which gets modified regularly (lines are appended - logfile), but what I would like to do is only read the contents that have been added since the file was last modified.
View 4 RepliesHow can I detect when the WMP has reached the end of the current song? I'm making a media player, and have my songs in a list box. Here is my code for playing a song.
CurrentSong = SongPaths.SelectedItem
WMP.URL = CurrentSong
Label2.Text = "Now Playing: " & Songs.SelectedItem
Songs and SongPaths are both listboxes (SongPaths is hidden) As you might have guess, Songs has the song names in it, and SongPaths has their directory path, the two listboxes are in-sync (Choosing "SongA" in Songs, will select the directory of it in SongPaths)What I need to do, is detect when a song is over, so I can call this code:
i = i + 1
Songs.SelectedIndex = i
'Will select the corresponding item in SongPaths as well.
[code]....
How can i detect how much memory each tab is using
View 4 RepliesWith active i meant for example you are using browser now, so its active when you skip to another window, its not active anymore
View 1 Replies