I have been tasked to build a simple application that has an input textfield, a button, and a large multiline textfield setup for displaying output> the user enters in the number of rows in the input textfield and presses the button> a pyramid made out of "O" should be created in the output textfield> for example: user enters 3 and presses the button> output in output textfield:
O
OO
OOO
OO
O
Here is the code I came up with so far:
Private Sub btndisplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btndisplay.Click
Dim n As Long
Dim lngNum As Integer = CInt(txtinput.Text)
For n = 1 To lngNum
txtoutput.Text = "0" & vbCrLf
Next
End Sub
I have vb.net 2003. I have to output a pyramid of asterisks of six lines, 10 times (vertically). But the catch is that I have to use a loop. MsgBox("*" & vbCrLf & "* *" & vbCrLf & "* * *" & vbCrLf & "* * * *" & vbCrLf & "* * * * *" & vbCrLf & "* * * * * *") would give me one block of pyramid but how would I get a message box to display 10 of these at the same time? I'm pretty sure a nested loop would work but I've tried for hours and I can't get it to work.
For example the user has typed a list of names in a text field (1 on each line)
jerry mark mark93 ewji84 fjkewo93
the program will auto fill this in the submission form jerry
when it finished the first registration now moves on to the second string: mark
and so on....
I already made the multiline text boxes and the main functionality of my bot, all I need now is the program to submit multiple keywords from user input and it should be 1 keyword in the field per submission.
I am building a data based application using VB 2008 an SQL Express. I need to create textboxes on my form using code, (With & End With) method. I need a simple code string that will allow the app to check if the field to wich the textbox wil be databound is Nul, If so the textbox will not be created.
My program has 2d array to find number of blocks in a certain level and total blocks of a pyramid. I need to also find the number of odd and even blocks.
Do I redim with different logic? O could I use the same population and make the specific button calculate for me. What is the logic?
I'm currently taking a VB class as a complimentary in college, so keep in mind that I'm lowest of the low when it comes to this. For my assignment, using a console application, I need to create a pyramid of stars, such as this:
Enter number of stars: 3 *** ** *
So far, I've gotten to the point where it'll display enter number of stars: 3 3 2 1
I'm using visual basic to code a program to help with weights and center of balance on aircrafts, as I'm my unit's new air load planner. The math isn't hard to do, it's just that much of it is trial and error, and redoing all the arithmetic over and over again until the aircraft's C/B is in acceptable limits can eat some time up. So, since i'm trying to learn programming I thought this might be a good way to use it for a real-world scenario.
I needed to create an Access table programmatically an was able to by using Martin Xie's post but how can I set the Field1 - Field Property Index to Yes (No Duplicates)?
how to round the output of the "USAGE" field in a few sections of code below prior to the output of the file. I have been getting results with 3 decimal places and I need it to two.
I think the section I need to focus on is the usage field:
If (GetRecordSet(SQL, Table)) Then WriteData(InterfaceDataSet, str_FilePath, Table, "FULLNAME", "EMPID", "CHRGDTTM", "CHRGDTTMTO", "USAGE", "PAYTYPE", "", "", "", "ADDDTTM")
Okay, so what I want to do is directly output formatted RTF text to a Rich Text Box control in VB.NET. I don't want to find the text, select it and color it as it is not practical for what I'm doing. I've tried outputting RTF code but that isn't working either. Can I actually do this or will I have to write a dll?
I have a javascript code that will output text in a separate textbox. Id like to try and do the same thing in my application now. Basically what I want to be able to do is type in a phone number and when the area code is entered to have it display the state.
Input textbox : 512 Output textbox : TEXAS
I have no idea if it is possible or how to do that.
I was working on a project and could not get the text output to be formatted like a table in text-box or rich text-box in visual basic 2010. Here are the code i have tried.
For i = 0 To 17 If cartfull(i) Then rtbReceipt.Text = rtbReceipt.Text & vbNewLine & amount_added(i)
Basically, I want to have a text box that will display text associated with the text input.
For Example:
input : 512 output : TEXAS
or
input : 659 output : ALABAMA
I have heard that it is possible to do this, and I would like to find out a way to. Even if I need a separate text file with the arrays, I would like to get this to work.
i want to fill up the userID and password fields of the yahoo mail login page with the click of a button on the form but just cant get it right.[code]it just skips the yahooID field and fills out the password field. what is wrong or is there a better way of doing it?
I am reading data from a SQL Database and then formatting the strings i pull to complete a work log for myself.
1. I am wondering what the best way to write the info out. Eventually i will copy the text and paste it into an email and send it to other co-workers.
2. I have a field called ticket number and the data that i have looks like #1234. I would like the #1234 hyperlink to the correct webpage (someplace.com/issue1234)
I currently have the text displaying in a Rich Text Box but ive also tried to write a standard txt file as well.
What's the code for input and output text?Ex.I have two textboxes. Textbox1 and Textbox2 I type in "1 2 3" in Textbox1 I press a button and it converts the numbers to it'scorresponding letter, like A B C. I need a code so that I can do that
My goal is to create an eBook that I can read with the Mobipocket reader on my Blackberry. The problem is that my text includes UTF-8 characters which are not supported on the Blackberry, and therefore display as black boxes. The eBook will contain a list of English and Punjabi words for reference, such as:[code]One thought I had was to write the list to an HTML table with the Punjabi converted into a GIF or PNG file. Then include this HTML file in the eBook. All of the words currently exist in an access database, but could easily be exported to another form for input to the generation routines.Using VB, VBA or C#, how hard would it be to write a routine create the images and then output an HTML file containing the English words and images in a table
I am currently trying to save a piece of data extracted from a piece of hardware in my office and save it as a text file. The problem now is, the text file saves the data like this:
what i have made so far, the user can enter their name, age, and address which is all that i want, then when they click submit, their info is shown in the output box, which is situated underneath the submit button.But i want to also copy this user info to an external text document when they have clicked submit, anybody think they know how?[code]
I currently have a system that saves student data to a text file. I can search for individual students and have their information output to screen. How can I make my system output every student in the text file to screen?
I have a dataset called Me.VelocipedeDBDataSet and there is a table within the dataset called Contact.How can i check the contact table and output the results of rows which have a value for an attribute called AccntRep that matches a global variable known as repNo
I had though that the solution may be something like
If Me.VelocipedeDBDataSet.Contact.Rows.Contains(repNo) Then Panel3.Visible = True MsgBox("Account Rep Found", MsgBoxStyle.OkOnly, "Account Rep") End If
How do I take the input of a text box as as string and write out a procedure for a button that takes the input and outputs a variable in the list box. For example i want to assign various values to strings such as the price of a chair = $10 and price of table = $40 . How do would you write it so that when you click the button it takes the word chair in the text boxs and outputs a value in the list box.