I need to create a a palindrome checker program. Now I know how to check a simple palindrome by using the reverse method however I am unsure if the palindrome had special characters or spaces. My question is what is the code for removing spaces and special characters from a string using loops and if statements. Also we cannot use arrays.
I am having problems getting this program to run. It is a palindrome checker, you are suposed to enter a word or a phrase and determine weather it is a palindrome. The code is suposed to contain a Boolean valued function, and should display true or false if word(s) are palindrome.
Here is my code
Private Sub btnAnswer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnevaluate.Click Dim Input As String If IsPalindrome(Input) Then txtAnswer.Text = "True"
I'm having a very difficult task here. I need to analyze a certain text and find the minimum number of characters it needs to become a palindrome. The text will not have any special characters or numbers, just alphabet letters. Now, I've made some progression and have tried a lot of situations correctly, but in some situations I've gotten wrong outputs on the MINIMUM number of characters needed. I've tested the below texts:
I need to create a code using String Compare() and Cases to figure out if a word, phrase, or what is typed in a textbox is a palindrome. If it is, a message will appear in a label under the textbox that reads, "What you typed is a palindrome." Or, "What you typed is not a palindrome." , if it is not.
i have to write a program for my VB class that consists of a resistance checker program. I've searched like a madman to help me through this and I have found nothing >. The program consists of 2 combo boxes, the first one is the nominal resistance drop down list of the numbers :100, 150, 220, 330, 470, 680, 820 and 1000. The second list is of the tolerance numbers; +/- 0.4%, +/-0.6% and +/-0.8%. Now what i want to do is select a number from the first combo box and select the tolerance level of the second combo box and i input the resistor of said value into the text box. when i click the check resistor button it should display a message saying if the resistor is in or out of tolerance. For now I have the form all laid out and the values inputted into both combo boxes and i can go to run the program i am able to select said values. Now my problem is trying to get the right code so that i can check the resistors value.
I am trying to create a proxy checker. This is my first attempt at multithreading and it's not going so well, the threads seem to be waiting for one to complete before initializing the next.
I should I do so that when a program is run, it automatically checks for conditions. If true, it will continue opening the form but if false, it opens another. What I've done is it goes directly to one form and if false it will close the form using me.hide() and loads a form using Form1.show(). Problem is, if the condition is false, both forms will open. What is the right way to do this?
I'm just messing around coding a ID Checker that checks registry value. if it does not equal to the string, then the program will close as so:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim check As String check = "XXXXXXXXXXXXXXXXXX"[code]....
Now what im trying to do is, where the 'check' is, i want to add more than one UniqueID so that other users can use the app. Lets say a user with a UniqueID of YYYYYYYYYYYYY purchased my app and recieves updates.
I am working on a project for the next week of my course and have the code built already and running but there was one section of it that looking at it I just dont understand why it works correctly.[code].....So i get that the second if statement here says that is palcheck1 = palcheck2 then its not the same telling the program its not a palindrome. But in the first part of it if palcheck1 is greater than palcheck 2 then it is a palindrome.
I'm working on a problem where i have to allow a user to input a word or phrase and then determine if it is a palindrome (a words that reads the same forwards and backwards) . It also says that the program should use a Boolean-valued function procedure named IsPalindrome that returns the value True when the word or phrase is a palindrome and the value False otherwise.
As an update rolls out in one of my applications, I would like to implement an update checker. My situation is that, when a user clicks a drop down item called "Check for Updates", I want it to check for updates. My application is simple, I don't publish. I upload to a mediafire and put the download link to my blog. The only file I need in my application has always been the .exe file of the application itself. My question is, what is the simplest and best way to implement a update checker?
Example:User is using v1.1 and checks for updates. He clicks the "check for updates" and a popup shows up with yes, update available and is a msgbox yes or no. Yes, would allow the user to download the update. No, closes the msgbox. If there is no update available, then a msgbox shows "You have the current version". If the user is offline or cannot check I would like to have an exception to show why he cannot check.Basically, working with the download aspect and everything else is familiar to me but I have no idea how I can check.
Try My.Computer.Network.DownloadFile("downloadurl", "downloadlocation.fileextension") Catch ex As Exception MsgBox(ex.Message) End Try
I am a newbie to VB.Net. Before, I did programming in PHP. I made a spell checker in PHP which splitted a big string into single word by spaces, checked if the word is there in the dictionary, if not, it highlighted it and gave some suggestions when a user clicks on it. I want to make the same thing in VB.Net.
I am using vb.net 2010, trying to generate simple classes with properties using T4 from database. Sometimes I get an error that some string is not a valid property name because it is a vb keyword. For example based on database data, my T4 tried to create a class with a property called "property". Is there a function that check whether a string is a keyword, like:[code]
I just wanna know what is the way of tracking the record of employee when i save theyre info in payroll. Like if the employee got paid in these date lets just say he will get paid every 15 days of his work not including sat and sunday. If i save the info the error will say."You have been paid on this day / week" .All i got is save the info but when it comes to checking i cant do it
i need a code or example of how to make it so that when a user presses ctrl p it will create a picturebox were the cursor is, i have this done, but how do i make it load them back in, and make it so if a panel or picturebox, runs into one of the ones the user created it will say "Smash", but there will most likely be tons of pictureboxes so i really need the help. how do i make a custom image file type that can hold up to 4 images and save and load them back in? how do i make a simple spell checker?
I am writing a Product key checker for Windows vista and 7, well it works well in both of these operating systems, but the only problem I encounter here is that, I cannot check vista keys when I run this program in 7..and vice versa. I declared the file as seen below.
Declare Auto Function PidGenX Lib "pidgenx.dll" (ByVal one As String, ByVal two As String, ByVal three As String, ByVal four As Integer, ByVal five As IntPtr, ByVal six As IntPtr, ByVal seven As IntPtr) As Integer
The thing I want to know is that how do you declare files, in the same directory as the exe file i.e. the app directory. I wish to have the 'pidgenx.dll' files of both operating systems in folders corresponding to their OS ie vista's pidgenx.dll in folder called Pack\Vista\pidgenx.dll and for 7's as \pack\7\pidgenx.dll
I'm a newbie to VB and such, I'm currently working on a program that allows users to play the National Lottery. The program generates random numbers for a lucky dip, allows users to log in etc. The problem I'm having is the feature that allows users to input their own results and check them against the 'current results' (just a randomised list of numbers) and work out what prizes if any the user is entitled to.Now obviously there are many different combinations of which numbers are the same.Is there any way (short of writing an IF statement catering for each combination possible) I could check these results? Perhaps with the use of a loop? I don't know I'm very new to this.
Is there any spell checker library for .NET which really supports Arabic script languages? I want to spell check the words in a rich text box in VB.net.
Here is vb.net 2008 code is: Public Function CheckURL(ByVal URL As String) As Boolean
[Code]...
when a url is processing in checking it hangs my application for a while. Is this possible it checks smoothly all url list without hanging my application.. Is there any other fastest way to check urls? Note: I have about 800 urls in file to check all links a valid by website responce or not.
I want to us ms office xp's word. I added a reference to microsoft word 10.0 object library. Then when I type (dim objWord as) there is no option for word also tried (dim objWord as application) nothing for word. I also download office xp intererupts??
I was wondering if anyone has code available that would check for spelling using VB Forms? I work in an environment that has Office 2007 installed. I'm currently using some code that works, but leaves a bunch of WINWORD.EXE process open (one for each field I'm spell checking).
I'm using the following code to check http proxies;
Try Dim proxy As New WebProxy(getIP(addr), getPort(addr)) Dim request As HttpWebRequest = DirectCast(WebRequest.Create("http://google.com"), HttpWebRequest) request.Timeout = NumericUpDown1.Value * 1000 request.Proxy = proxy 'Proxy to use. Dim response As HttpWebResponse = DirectCast(request.GetResponse, HttpWebResponse) If request.HaveResponse = True Then
[Code]...
I am not following any tutorials I was trying to do this without help, but I need some now. Am I not using the correct code to do the job?
Hello I want to create a windows form application program that can create games something like Gamemaker or Klik & Play (butt less advanced) with D&D "Drag and Drop" events and actions.