Write A Program That Requests A Word Containing The Two Letters?
May 25, 2009
(Write a program that requests a word containing the two letters r and n as input and determines which of the two letters appears first. If the word does not contain both of the letters, the program should so advise the user.)I got the program to work but he said its wrong because we need to have it looping and if one of the letters is missing you also have to say which one is missing.I have some of the pseudo code but I don't know how to make it work.If Index of("R") = 0 or index of ("N") = 0 Find out which is missing and display message.Else Find larger and display message.
[code]...
View 1 Replies
ADVERTISEMENT
Sep 1, 2009
Is it possible to make a program intercept and stop certain write requests? I need it to stop viruses from tampering with an antivirus database. If you can, how do you do it? If not, is there another way to stop viruses from changing the database?
View 39 Replies
Oct 1, 2010
Write a program that requests a name fomr the user and insert the name into the list in its proper location, if the name is already in the list, the name should not be inserted. --do not use any arrays or LINQ use only streamreader/streamwriter.What i've got is this...it will add the name but not in the "proper location". if i could use an array i'd just reorder the array and then write to file, but...
Imports System.IO
Public Class Project_3a_p398
'Purpose: A program that requests a name from the user
[code].....
View 1 Replies
Sep 30, 2009
how do I get the program to check if the inputted word has ascending alphabetical letters
Public Class frmAlphabetical
Private Sub btnPress_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPress.Click
[Code].....
View 4 Replies
Apr 28, 2012
I need to write a program using a For Next loop to accept a word as input and determine if its letters are in alphabetical order.
This is the code I came up with but am getting the error "Index and length must refer to a location within the string. Parameter name: length" at run time when I click the button.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
View 14 Replies
Dec 10, 2009
Im having a problem getting my calculations to work. I need to find the average letters per word.
Private Sub btnCount_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCount.Click
'Determine word count and average letters / word in the sentence
[Code].....
View 2 Replies
Dec 9, 2011
The problem is to find if a word has 3 consecutive letters in it. Such as THIRSTY, STUDENT. Here's the code I've written, but I'm stuck on how to actually write the code to check the letters.
Private Sub btnRun_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRun.Click
Dim word As String = txtWord.Text
[Code].....
View 19 Replies
Feb 24, 2012
In a program used to find words from random scrabble letters how do you loop through each of the possible combinations of letters? ie: abc acb bac bca cab cba
View 1 Replies
Feb 23, 2010
How to get letters from one word into strings (one letter, one string).
View 10 Replies
Jun 24, 2010
I'm trying to produce every possible combination of the letters in a word, however I've been very unsuccessful at figuring this out.
I can't seem to grasp what I need to do to get this working, I've been at it for the last four hours or so.for example, the word "one" would produce: one, oen, eon, eno, noe, neo.
View 5 Replies
Nov 28, 2009
i did this much but something doesn't seem right...the question is A Visual Basic program that requests a positive integer as input, and carries out the following steps:If the number is even, divide it by 2.Otherwise, multiply the number by 3, and add 1 to the result. Repeat this process with the resulting number, and continue repeating until the number 1 is reached.After the number 1 is reached, displayed how many iterations were required to reach the number 1. (Hint: a number is even if number Mod 2 = 0.)
Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click
Dim num, multiply, divide As Double
[Code]...
View 4 Replies
Jun 9, 2009
how can i make a textbox that just write number not letters
View 2 Replies
Aug 21, 2009
how to write only capital letters into textbox and also into combo box.
suppose if user writes 'abc' in above defined control then vb should to display
it in 'ABC' into textbox or in combo box.
View 6 Replies
Mar 4, 2010
I'm searching for specific string method that ignoring the word if it was written in capital or small letters when I want to type this word in a field for searching purposes or when a user wants to enter its usrename in capital or small letters.
View 5 Replies
Feb 15, 2010
I'm trying to compare something the user sends to a listview(first column) to see if it can find a match using [code] and if it equals true the program requests a password if its false it returns the noturous "failed to login"
View 2 Replies
Mar 30, 2012
All i want to do is write some text into word... some of the text is normal text the other is bold... how do I achieve this?The samples I have seen, they either do normal text or bold.. but in different lines utilising InsertParagraphAfter()I need to have both in the one lineie how do i do the following line? using vb.net and word automation (word 2010)
View 2 Replies
Feb 12, 2011
I have 4 set of words store in array and wan randomly selects and scramble its letters in a label. i just know how to do the coding part of randomly display the words in the label but it no scramble i have no idea to do the scramble part, any expert can give the solution or example?
Below is my code:
Dim word(4) As String
Dim random As New Random
word(0) = "superman"
[CODE]...
View 4 Replies
Jun 2, 2010
I was wondering how to make my Text Editor handle "Set As Default Program" requests, and have files saved default-ly open with it. For example creating my own file type.I don't know if this is possible in VB.net
View 1 Replies
Jan 24, 2010
I need to write a program that requests a high number and a low number from the user, then the program searches the array and finds all elements within the two numbers. The program is used to search for past presidents, so if I type 43 for low number and 44 for high number, the program will display:
George Walker Bush
Barack Hussein Obama
I think I have an idea of how to search up to a certain point, but not to stop at a certain point....Here is the code that I have for that particular sub procedure:
Quote:
Private Sub btnDisplayRqst_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplayRqst.Click
Dim sr As IO.StreamReader = IO.File.OpenText("PRESIDENTS.TXT")
[CODE]...
View 4 Replies
Sep 10, 2010
I've been looking through the book I own and I've been looking online but I just don't understand what code would I write to have it check the text box or input box for the right letters in a word?
View 2 Replies
Nov 4, 2011
i cant get it to work.I am creating an application on visual basic that displays the number of times a specific letter occurs in a word or phrase. (both upper and lower case counts)So far this is what i have, and its not working:
private sub BtnCountLetter_Click(ByVal sender As object, ByVal e As System.EventArgs) Handles BtnCountLetter.Click
Dim strText As String
[code].....
View 20 Replies
Aug 16, 2010
when i open another word doc when my program still running.
View 1 Replies
Feb 8, 2011
How can i make a program that generates a combination of letters,starting from user-specified to the end of the user-specification. here is an example of what i mean:
aaa
aab
aac
aad
aae
and so on...
How can i make this?
View 1 Replies
Jan 7, 2009
i have a Program that filters out Text from a site but when Characters like:� � � � are there it makes them to: ?How can i make them show right in the Program?
View 6 Replies
Nov 11, 2009
I'm wanting to make a program that translates binary code into numbers/letters and numbers/letters into binary code. I know the general system of binary code, but I dont know how to translate anything with VB.net. Is there a general command I need to use or can someone link me to a good tutorial about translating?
View 2 Replies
Apr 2, 2012
I'm keeping track of some things that are numbered and others that are lettered; while NumericUpDown is perfect for selecting numbered things, I need an analogue for selecting lettered things. The obvious choice would be a listbox that just contains all the letters of the alphabet. But I need to show only the appropriate range of letters, so if I want to use a listbox, I need to write a function that populates the listbox with the first n letters of the alphabet; if n > 26, it should continue with aa, ab, and so on. How do I do this?
View 17 Replies
Jun 12, 2010
Could anybody point me in the right direction on how to write to a word document and which references to use.
View 3 Replies
Jun 5, 2009
I need to be able to write info out from Excel cells to a Word Doc. Can this be done and can it be done without having the word file open?
View 3 Replies
May 6, 2009
can we create a word document adn write in it at particular coordinates.. using vb.net e.g write "hello" at (x=100,y=150,page1).
View 3 Replies
Mar 14, 2009
I have a .dot file with a textfield (not a part of a form) in the pageheader. I can select the pageheader but don't know how to select the textfiels.Also when i have a bookmark in this textfield, i can't use this from te main document.
= New Word.Application
oWord.Visible = True
Dim oDoc As New Word.Document
[code]....
View 11 Replies