Program That Accepts A Word?
Sep 28, 2010
I'm trying to write a program that accepts a word and then determinesif the letters in it is in alphabetical order. There will be a message if it is, like with the words almost, imply, abcd and so on. However, if the letters are not in alphabetical order, another message will show.
View 18 Replies
ADVERTISEMENT
Nov 6, 2010
Trying to create a program that accepts a square array size 4 by 4. Then it should print the totals of the rows and columns. I started with a form and made text boxes and created a print button. I made it so that numbers can be input into the boxes. When hitting the print button, it should print the totals of what was input, however, it isn't doing that. Is there a different way to write the array code so that it will print it? Should i not have text boxes but rather have labels with fixed numbers set in them?
View 11 Replies
Mar 12, 2009
I'm trying to create a program which accepts a letter of the alphabet. For each letter a corresponding word beginning with that letter should be output, e.g., �a� or �A� input would give Alpha as the output, �b� or �B� would give Bravo and so on to �z� or �Z� giving Zulu.So if the user enters: "abc" for example, what should happen is a list on the right of the window appears with the words starting with those letters when the user presses calculate.I don't have any code apart form the basics below.
Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
[code]....
View 7 Replies
Sep 30, 2009
You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.
You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.
The program should calculate the employee pay for the week. The employee should receive 1 times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:
-The employees name without trailing or leading spaces
-Regular hours worked
-Regular pay
-Overtime hours worked
-Overtime pay
-Total pay
The Problem that i am having right now is "Displaying " the overtime hours on my "FORM VIEW" i mean i did the math right its just when i type (lblOverHrs.Text = CDec(CDec(OvrHrsWrkWeek1.Text) + CDec(txtOvrHrsWrkWeek2.Text))
Its says the "OvrHrsWrkWeek1 and 2" are not Declared which are..im not really sure where i went wrong..
Heres my code
CODE:
View 4 Replies
Aug 16, 2010
when i open another word doc when my program still running.
View 1 Replies
Oct 2, 2010
I am doing an project it needs office word as a part of it and is it is possible to add office word in my vb.net 2008 application
View 1 Replies
Jun 9, 2009
Is there a way to convert XPS to Word or RTF using VB.NET?
View 2 Replies
Jun 18, 2009
I'm trying to restart Word from within vba code.I've written code to change the startup path and want to restart to take effect.I do this by:
Call Shell (Application.Path & Application.PathSeparator & "WINWORD.EXE")
Application.Quit
this seems to work.my questions are:Is this save?Is there a way to extract the executable name from the Application object? so I don't have to rely on the name being "winword.exe" Application.Name gives me "Microsoft Word", not the exe name.
View 1 Replies
Aug 15, 2009
here's the code
Public Class Prelim1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim mile, inches, centimeter, foot, kilometers As Double
mile = TextBox1.Text
[code]....
notice the textbox1.text, it should only accept a double. IF the user inputs letter or whatever characters then the program must prompt a message which reads "input only a number"
View 5 Replies
Oct 21, 2009
Yeah, I want to make the program find a certain word, such as 10.5, in a textbox. It will have multiple lines. textbox5 is the textbox and a word, like 10.5 or longer such as 10.10.10.10.10.10. an IP.
View 1 Replies
Dec 18, 2009
How to open a word document in vb.net.needs to add any reference file.
View 1 Replies
Nov 18, 2011
The assignment is to separate the consecutive characters in whole word .
View 15 Replies
Aug 31, 2011
how to check browser state in asp.netot detrimine if a usersbrowser accepts cookies?
View 3 Replies
Jun 14, 2010
By accident i put in some C# shorthand synthax in a vb.net project, and to my suprise, it compiled and runs fine! Does anyone know if this was a framework update? I can't find any documentation that points this out
The following Vb.net code works fine for me
Dim someDate As DateTime? = Nothing
If someDate.HasValue Then
Console.WriteLine(someDate.Value)
End If
View 2 Replies
Feb 9, 2010
I am trying to create a standard procedure, which accepts a parameter:
Public
Sub
CreateWC(ByVal
dtWC As
DataTable )
...
...
...
End
Sub
View 8 Replies
Mar 5, 2010
Is there a way to use a generic that only accepts integer types?
I have a Clamp(value, min, max) function, and it would be nice if it could accept ints, uints, floats, shorts, ect without having to write an individual function for each type.
View 1 Replies
Sep 28, 2010
I have a MaskedTB whose mask is "000 Years 00 Months". I have read the documentation for the mask and for '0' in the mask it says
Quote:
Digit, required. This element will accept any single digit between 0 and 9 Then why is it accepting space
View 6 Replies
Apr 25, 2011
I have a need to do some extensive editing on some SGML files. SGML is, of course, just tagged ASCII files. But, I need to convert that SGML to nice, neat MS Word files, with paragraph styles. I need to do extensive searching and replacing. VBA does not have the necesary regular expression support, so, I need to use VB.Net. But, I'm at a loss to do the most basic thing. I just need to know how I can open a Word file in VB.Net.
View 5 Replies
Apr 27, 2010
How do I open a pre-created word document from within a program in VB?
View 13 Replies
May 11, 2009
I made a program to cheat at scrabble/word games. I can find words that "start with" a group of letters, "end with" a group of letters, or "contain" a group of letters in the middle. Furthermore, I can enter all my letters, and look for all the words that contain those letters. I can even enter a "*" for a blank tile (in Scrabble) and it will try all the possibilities for the blank tile.
What my program doesn't do is find all the subanagrams. For example, if I enter the letters "BNAG", my program would find only 4-letter words. I want it to also find all the 2- and 3- as well as 4-letter words.
What's the best logic/algorithm for grouping my letters into groups of 2, 3, 4, 5, etc.?
View 2 Replies
Apr 7, 2011
I wanna make a small program, which have a some list of bad word to block url search in my system
View 3 Replies
Apr 7, 2012
I am working on a program which makes tables in MS WORD. But there are many parameters that should be asked. Its so embarrassing to ask all of them with inputbox while codes are working. I made forms for each tables which will be created. While codes are working, when it is the time to create table, form appears and user inputs the datas and press OK button and table is build according to these datas in MS Word. Does anyone has an idea ?
View 1 Replies
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
Sep 9, 2009
the Threading.Interlocked class provides; I don't understand, though, why the Add function only offers two overloads: one for Integers, another for Longs. Why not Doubles, or any other numeric type for that matter?Clearly, the intended method for changing a Double is CompareExchange; I am GUESSING this is because modifying a Double is a more complex operation than modifying an Integer.
View 4 Replies
May 28, 2009
Can anyone tell me if the Imports System.IO accepts all files types?? What I mean is, can I use it to access .csv, .xls or .doc files? And one other thing.Do I need to include the file location in the body of the procedure/function??
View 18 Replies
May 29, 2010
I am trying to make a calculator that accepts multiple operations, similar to the calculator found on Windows.
View 6 Replies
Mar 26, 2009
I got an error:Error 1 Overload resolution failed because no accessible 'AddtblLokasjonRow' accepts this number of arguments.[code]
View 15 Replies
Dec 27, 2010
I have been working on a program that can extract comments / tracked changes from a word document.Its coming along okay except for trying to extract the page numbers. The properties of Revision can be extracted very quickly:
[Code]...
View 2 Replies
Jun 8, 2010
Nor Macros or VBA can manipulate it. Is it possible with Visual .NET 2010? Even with the Express version?
View 2 Replies
Mar 11, 2010
Suddenly some functions of Word 2007 (in Vista 32) hanged the program, such as Help or Search/Replace. When Word is reopen a message appears: microsoft visual basic. File not found. How can I solve this? I have uninstalled/reinstalled Word twice, but nothing happens.
View 1 Replies