Display Stars In A Row?

Nov 17, 2010

I am having problems with a task which asks me to

"Ask the user how many stars they would like in a row. Then display the number of stars in a row"

The part I'm stuck on is writing the code to display the stars from a given number. (star = *)

View 19 Replies


ADVERTISEMENT

How To Print A Triangle Of Stars

Sep 19, 2007

triangle of stars like the one shown below
*
* *
* * *
* * * *

View 5 Replies

Easy VB Console Coding - Create A Pyramid Of Stars - Convert The Numbers Into The Symbol?

Oct 19, 2009

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

How do I convert the numbers into the symbol?

View 14 Replies

Cannot Get List Box To Display Each Increment And Cannot Get Data To Save Correctly In Order To Display

Feb 28, 2012

Cannot get list box to display each increment and cannot get data to save correctly in order to display.

Public Class Projectile_Motion
Dim initialHeight As Double ' Holds beginning height
Dim initialVelocity As Double ' holds velocity

[code]....

View 14 Replies

Timer - When The Message Box Stops, Then It Display The First Form Then Stop To Display?

Apr 8, 2011

I have a problem in timers, I want to display 2 forms each one after 3 and 5, how to do that? I mean when the first form appears, after 3 seconds another one will appear, then after 5 seconds the second will appear. I have a code where someone gave me here but its for message box only, thus I modify it to put a form still does not work. Here the code I put in the timer below:

Private Sub frmblabla_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
tmrnote.Start()
Private Sub tmrnote_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrnote.Tick[code]....

I still have problem when the message box stops, it displays all the forms together. All I want is when the message box stops, then it display the first form then stop to display the second then stop to display the last. The first form must stay for 3 seconds on the screen, then after 3 seconds the second appears then after 5 seconds the last appears.

View 2 Replies

Why Doesn't Ellipses Display On Load - They Display When Button Clicked

Jun 1, 2011

In trying to test some graphic features, I am trying to get them to display on load so button doesn't have to be pressed. I used the following code as suggested from forum. Message boxes run but ellipses aren't displayed until button is clicked which is what I am trying to avoid!

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.PerformClick()
Button1_Click(Nothing, Nothing)

[code]....

View 5 Replies

Display A Welcome Screen For 3 Seconds Then Close And Display Form1?

Dec 19, 2009

Im trying to make a custom splash screen , but i cant seem to get it to work. Im trying to display a welcome screen for 3 seconds then close and display form1 (main form).Heres my current code.

[Code]...

View 2 Replies

Display An Amortization Table To Display The List After Doing The Calculation?

Oct 19, 2009

i have to create a mortgage calculator (I know we have killed this mortgage calculator). Has to display an amortization table to display the list after doing the calculation. Here is the actual assignment:

Write the program in VB.Net (not Web based) and have it accept user input of the amount, term and interest rate. Display the mortgage payment amount. Then, list the loan balance and interest paid for each payment over the term of the loan. The list will be longer than the screen, so use loops to display a partial list, hesitate, and then display more of the list. Insert comments to document the program.

I have created 4 buttons. Calculate, Clear, List, and Exit. The buttons all work, but the list does not. Not sure what i am doing wrong.

[Code]...

View 2 Replies

Display Password In Invisible When Display In Data Grid?

Oct 29, 2009

QuoteI would like to display my password from database (MS Access)into datagrid but in invisible. Below is my coding retrieve data from database, but my password is visible,

con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = " & connectionpath
con.Open()

[Code].....

View 7 Replies

Display name In Datagridview, Not Id  And Insert Id In Database ,not Display Name?

Sep 12, 2009

i databind combobox with datasource ,set display member=name and value member=id....insert into datagridview and then id value are stored in database that is ok.actualy i want to display name in datagridview, not id and insert id in database ,not display name

View 1 Replies

Make A Datagridview Display, Display Last Column?

Mar 26, 2009

I have a datagrdview with a large number of columns, but I want to always display it showing the most right handside data columns, as if the horizontal scroll bar was set to the far right - how do I do this?VB2005 starter

View 3 Replies

Display Text On Pole Display?

Jan 2, 2011

I do also want to know how can I Display Text on Pole Display. I write the code with VB.net 2008. Sample Code that I write is:

[Code]...

View 1 Replies

Label To Display A Word For 5 Seconds And Then Move Down The List In A Text File And Display The Next Word?

Nov 21, 2010

I have a label that is supposed to display a word for 5 seconds and then move down the list in a text file and display the next word.I'm oddly able to make it work in random mode, but not going down the list in order.. random would be ok if used words didn't come up again.

Code:
Dim DurHold As String = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "FlashWords.txt")
Dim DurDelimiters() As String = {vbNewLine}
Dim DurTextLines() As String = DurHold.Split(DurDelimiters, StringSplitOptions.RemoveEmptyEntries)

[code].....

View 2 Replies

Display Listbox Items With Multi-extended To Display Items In Label?

Apr 5, 2011

my homework question is to display the selected items from a listbox (multi-extended) in a label. I need to display all the selected names in a label. the simplest most uncluttered way of doing this. This is what I've got but it doesn't work.

[Code]...

View 2 Replies

Display A Table In GirdControlView, But Only Display 1 Column Out Of 4 Column

Jun 6, 2011

i am developing a software using microsoft visual studio basic 2010. I set up a connection string to my server and take the data from there. I am using gridcontrolview and put my "product" table in here. It contain 4 column: systemid, system, actualid, description. I want to display only system column (it's easy, just hide the others column) But, In "system" column, there are a lot of similar data, i want to display only distinct data from this column in the grid

example, the column consist: STSTEM
topaz
topaz
topaz

[Code]....

i try to user "add query", buat if i get rid of the other 3 column, there will be error message like "the output is different with the schema"

View 1 Replies

Can't Display It On The IDE

Jun 22, 2011

write the code to print to lblmessage:

"you won" if score is greater than or equal to 100 "Good try" if score is less than 100 and "practice more." if score is less than 50 i did it like,

if score => 100 then
lblMessage.text = "you won"
elseif score < 100 then

[code]....

View 2 Replies

Display Yes And No Instead Of 0 Or 1?

May 29, 2010

I have a textbox on a form with an expression:

The expression is =DLookUp("[RestrictedView]","Seats","[SeatNumber]=[cboAvailableSeats]")

it returns the value 0 and 1 because feild RestrictedView in table Seats is Data Type Yes/No

How do I get it display Yes and No in the textbox of the form in Form View?

View 3 Replies

Get WMI To Display?

Jul 30, 2009

How can i get label1 or even a msgbox to display the results og this wmi function??Here the function code:

Public Function GetHDDFreeSpace(ByVal drive As String) As Double
If drive = "" OrElse drive Is Nothing Then
drive = "C"
End If
Dim disk As New ManagementObject("Win32_LogicalDisk.DeviceID=""" + drive + ":""")
disk.[Get]()

[Code]...

View 10 Replies

Way To Display First Value Anyway?

Mar 11, 2012

I have a datagridview with several combobox columns.I've filled these with data from a database.But the combobox standard displays as empty. You have to click/select it and choose the right value.But what I want is that the first value is displayed and selected automatically. With a normal combobox you can do this by setting the selectedindex to 0.However this seems not to be possible with a datagridview combobox.Is there a way to display the first value anyway?

View 3 Replies

.net - Display PDF In A Form

May 31, 2012

When i use AxAcroPDF1 in VB.net to open a PDF inside a form it gives me an error.
This only happens on Windows 7 64 bit. I have been told to compile as a x86 application but i cannot do that as i have several other DLL's in the program that are not 64 bit specific and so the build falis. I have also tried using a browser in VB.net , it opens fine in XP, bit widows 7 it opens a new window and it's maximized and therefore the content behind get hidden

View 2 Replies

Asp.net - CSS Calendar Display?

Mar 31, 2010

I created my own custom date picker consisting of an ASP TextBox, Button, and Calendar complete with CSS styles, javascript code, and event handling vb code.I want to use this date picker multiple times on my form. I know the wrong way to do this would be to copy all the code and just adjust each name accordingly.How can I put those controls, styles, and code into a single entity?

View 1 Replies

Asp.net - Gridview Does Not Display

May 2, 2012

The gridview on my page is set up with templat fields in each column so that I can enter information and save it to my database. There is no data that ties directly into the gridview just the ability to add multiple rows at a time to save the data. I had it displayed with empty textboxes and it was working fine and all of a it stopped and now won't show up. Any clues as to what is happening. Code follows...

[Code]...

View 2 Replies

Datagridview Display Nothing When I Add A New Row

Oct 26, 2009

i am very new to vb. well and i got this project am using MS access as database. The thing is i want to display in datagridview is just the headers and nothing follows when the program starts. And when i Add something it will show that i added something.

but it displays all data instead.

when i set it to

datagridview1.datasource = Nothing

Yes, it will display nothing but when i add a new row
and update it nothing shows that i added a new row even with

datagridview1.refresh()

can someone point me out to this.

Code:

View 4 Replies

DateTimePicker Value Different From Display?

Jan 7, 2011

Running: Win7Pro, VS2010Pro
Try this:
New project (WindowsApplication1), new form (Form1) with one DateTimePicker (DateTimePicker1), one TextBox (TextBox1) and one Button (Button1).
The DateTimePicker's properties changed are: ShowCheckBox: True, Checked: False

The code on the form is:
Public Class Form1
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Me.DateTimePicker1.Value = DateSerial(2011, 1, 31)
[Code] .....

View 5 Replies

Display A Certain Row From A Sqlce DB

Aug 3, 2009

i'm trying to display a certain row from a sqlce DB, what shuld the sql command be? i'm using sqldatareader

View 1 Replies

Display A Datatable With VB?

Dec 18, 2009

I have a datatable similar in structure the first attached image where each * represents some data

Ultimately I want a new table in the form of the second attached image.

Currently, I have opened a connection to my access database and pulled in the data for case 102 into a datatable and case 103 into a separate datatable. [code]...

Then I loop through each row in Dt1 to check if item1 in Dt1 exists in Dt2. If it exists, I determine which row it's at and add in the data for item2 and item3 into Dt2.

View 4 Replies

Display A Message Box Only Once?

Jun 28, 2010

How do i only display a messagebox only once, since if it were to be displayed every time it would be annoying.

View 6 Replies

Display A Next Day Date?

Nov 22, 2009

Using VB.NET

Using DatagridView, In a Datagrid View values are displaying like this

ID Date

001 23/02/2009
001 24/02/2009
001 25/02/2009

I want to display a date in a textbox after 25/02/2009

I Used a sql query for getting a next date

Select CONVERT(CHAR(10), DATEADD(dd, 1, MAX(SDate)), 103) AS SDate from tb_Sched_Add

the above query is displaying a next date 26/02/2009 in the textbox, but it is taking a some second to display. There is any way in program itself getting a last value of the row (date) in datagridview and display the next date.

View 1 Replies

Display A Result In VB?

Jun 5, 2010

I declared a variable which is the sum of two other variables. I simply want to display that result on the screen. I think a msgbox is what I need to use but I'm not sure.

View 2 Replies

Display A Series Of * In One Row?

Mar 10, 2010

I have a question about listbox. I want to display a series of * in one row. I know I have to use a loop, but I can not have the asterisk lined in one row.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved