Make A Console Project That When You Enter A Number It Changes The Color Of The Text
Nov 20, 2011Im trying to make a Console Project that when you enter a number it changes the color of the text and its not working
[Code]...
Im trying to make a Console Project that when you enter a number it changes the color of the text and its not working
[Code]...
Note: I'm using VB express 2008 I would mostly like to learn about the console application. Like how to make it type in a command and hit enter by itself. The project I'm working on is a booter for my iPod (Long story) I would like to be able to- 1- Either click a button on a form and have the console pop up and input
[Code]...
I'm making a console app that uses your name and then asks for a password and displays the text. So the start is like this
18:36:01 [Info] Program is started.
18:36:01 [Info] Please enter your name.
NAME GOES HERE AND THEN ENTER TO PROCEED
18:36:04 [Info] Hello Xoslize, Please enter the password.
Password Goes Here and then Enter to Proceed
Some Text Goes Here
How do I do that? I mean the enter to type text, etc. Btw, how about using color on every word?
How do I make VB.net console recognize the color red and green at XY-axis? I start up the program. The program check...if X450 and Y503 has a green pixel or something like that...do this. If X450 and Y503 has a red pixel or something lik that...goto line number. You know what I mean? I took the X450 and Y503 as random numbers.
View 1 RepliesI would like to make an application whereby the user can select a color, enter a character into a textbox, select another color, enter another character and so on and so on...This multi colored text that has been entered into the textbox by the user must then be shown on a label. I cant get the damn characters in the label different colors They are all for example, either red or all blue.
View 2 RepliesSo I wanted to make a program for math where you enter a number into a box. Then you click enter. The program has numbers 1-12 next to a check box. If you click enter it divides your number by the numbers 1-12. Let's say you put 100 in that box. Then you clicked enter. The check box next to ten would be checked, 4, 2, and 5 would all be checked because those numbers evenly go into 100. How can I have the vb check to see if the sum is a whole number?
View 1 RepliesVb is not my language of choice , but I have to do this for school and I'm not having a very easy time with VB's documentation.I'm just creating a very simple console application that accepts user input: degrees in Celsius, and converts it into Fahrenheit. I want to make sure that if the user just hits enter without entering the degrees in Celsius, then an if else statement will catch and write to enter Celsius again.Here's what I've tried:
[Code]...
is it possible to make first 60 characters in a rich text box a different color than the remaining text?
View 25 RepliesIs there any way to do this.Enter key make WebBrowser load text in textbox?
View 13 RepliesI created the following view
<ListView.View>
<GridView>
<GridViewColumn Header="Tester"
[code]....
Now what I suppose is that, After I entered something in "Comment" field and press the Key "Enter", the next row of the "Comment" field will get focus.
I added the following code of the event "PreviewKeyDown", but it seems that the next whole row will get focus not only the "Comment" field...
Private Sub TxtComment_PreviewKeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Input.KeyEventArgs)
Dim focusRequest As TraversalRequest
Dim focusedElement As Object = sender
[code]....
according to the assignment my program fills the requirements, however it's a real pita to constantly change the dates in the program every time I want to run different date values. Is there a way to have the user input a date? Initially I thought something like;
purchaseDate = new datetime(console.readline())
but this blows up. I get an error that sounds something like invalid data type cannot convert double to long... it's a very unhappy looking error heh
Anyhow, I've spent several hours digging through the MSDN Library but I'm not finding it which assumes it can be done in this format.
after reading a few other posts I don't want folks thinking I'm trying to be sly so...
Dim datePurchased, datePaid As DateTime
Dim str1, str2 As String
Dim compare1 As Double
[Code].....
I am supposed to create a program in my VB.net class to do the following:
1. Prompt the user to enter the beginning number and the ending number.
2. Find the sum of the even numbers between these two values, inclusive.
[Code]...
We are currently using for next statements in the class. I know how to prompt for and utilize the numbers that are input etc. My problem is the EVEN numbers part. I obviously have to determine if the number is even and then use a step value of 2 from there. But not sure how to determine if number is even or odd (guessing to use mod, but totally lost).
I am wounder if anyone might have a web site or no where I can find the information so I understand how to prompt the user to enter the beginning number and the ending number. And then to find the sum of the even number. Now does anyone know what a name convention is ? I have tried to look it up on the forums but cant find nothing on it.
View 9 RepliesI have a multiline RichTextBox and a ListBox filled with keywords. When I type in the letter t, or any other first letter of a keyword I would like the ListBox to show, just like it does in VB. How can I make my selection the color Blue?
View 4 RepliesI'm trying to do a project which involves reading the text from a number of textboxes and putting it into a string.I'm just wondering if there's an easier way to it other than:
CreateString += TextBox1.Text + TextBox2.Text + TextBox3.Text... (etc)
I have thought about creating a For Next loop which would go something like:
For i As Integer = 0 To intNoTextBoxes
CreateString += TextBox(i).Text
Next
But this really doesn't work. I also found something saying that something similar to this would work:
For i As Integer = 0 To intNoTextBoxes
CreateString += Me.Controls.Item("TextBox" & i.ToString).Text
Next
But that didn't work either.
I was thinking of adding a simple bandwidth monitor to a console application and I was wondering if it would be possible to keep a line in the console window visible at all times. I could set something up manually to pass new console output into a method that would get the contents of the console, clear the console, add the bandwidth data on the first row, then rewrite each line of previous information back to the console, etc.. but that seems like a really hacky way to go about it, and I'd be limited to the amount of rows visible at once in the console window (no scrolling).
STATS: Downloaded: 2599b, Uploaded: 754b <- this always stays at the top
constantly changing text
constantly changing text
constantly changing text
[code]....
after many weeks of annoying compatibility with windows xp, I realized that I should change the .netbar buttons to standard windows buttons. When I did this, and put the button on the transparency area and then debugged the application. I found out that the transparency add-in made the text inside the button transparent: How can I make the text show just the color, not transparent?
View 3 RepliesI have made a command line with arguments and i published it. But when i type in the command and press enter the but it closes the window.
View 3 RepliesI'm trying to make each letter a "square" essentially, so each letter is no more tall than it is wide, in vb.net. Is this possible? If so, how? I can't seem to find anything, and I've been searching hard.
View 2 RepliesRecently I tried to make a command which will sum the digits of a number in a text box I used the following code
[Code]...
I need to create a console application that lets a user enter 20 names and then it sorts them out alphabetically in order and then displays them.
Module Module1
Sub Main()
Const names As Integer = 20
Dim index As Integer
[code]....
How to programmatically change foreground color and make bold text in individual cell location on DataGridView control (Visual Basic)?
I use "dgMatrix.Rows(r).Cells(c).Value = x" to assign individual numeric values to individual cells in a DataGridView control. My question; is there a similar way to change foreground color and make bold the text in this cell, by specifying the individual row/column cell location?
For example; for cell (row 3, col 5) in the DataGridView make text in cell say red and bold or blue and bold so as to highlight and distinguish individual cell contents. As needed, I will also need to reset these properties (foreground back to automatic/black and font from bold back to regular); the reset could be done globally to the whole DataGridView as opposed to indiviaually by cell.
How can i make it so that label1.text = the number of time timer1 is ticked ?
View 2 Replies[code] I want to check checkbox and change color on one label and enter date on another.Then I want to uncheck the checkbox, restore the color on one label and clear the other..This works perfectly but only after the initial check. On the first check the correspsonding labels are handled properly but all the other labels are changed also, ie. the color changes on one set and the other set cleared.I can see the problem is in the Else If statements but can't understand why if the coding iswrong it works ok after the first check.
View 7 RepliesWhen I read a value from text box I want to make sure user has entered a number(int/float/double etc.) not a string. Is there any function to check it? otherwise how do i validate it.
Language : VB.NET
Version : Visual Studio 2005
So basically my VB project creates a text file that is readable by another console application (not made in VB). Basically what I want to do is in my program, I want it so that when you press a button, it will run all of the text files (that you made in my program) through that console app (the console app takes XML files and converts it into another format). How can I do this? In the console app, you type in the file name (ex. File.xml) and press enter and it will give you the output file. How do I "call" a console app and have it run in the background? (background as in the prompt window doesn't pop up.)
View 3 RepliesI am just wondering how I can make a listbox count the number of selected items and display it in a text label. My listbox selection mode is on MultiExtended.
Also, can someone provide the definitions for:
SelectedItem
SelectedIndex
TabIndex
I need a vb.net console program to check whether a number is perfect or not.
View 2 RepliesI am making a simple console game. If you have ever heard of the board game code breaker you will understand better.
In my version of the game you will have to figure out a four number combination. The only numbers it can be is 1, 2, 3, or 4.
I need to generate four random numbers and put each on into its own variable. This allows me to call back each number.
How do I do this? I have been doing some research on random numbers and I use this code to generate four random numbers
Dim rnd As New Random()
Console.WriteLine("20 random integers from -100 to 100:")
For ctr As Integer = 1 To 20
Console.Write("{0,6}", rnd.Next(-100, 101))
If ctr Mod 5 = 0 Then Console.WriteLine()
Next
Console.WriteLine()
But I can't figure out to put each number into a variable so I can call the same numbers back.
I am using .NET 1.1, so I don't have the access to listitem object. I would like to change the text color or the background color of certain items in a listbox. can it do it in .NET 1.1?
View 5 Replies