I wouls love to alternate some colours, as of yet have not figure out how to do it. what i have in my timer_tick is...
me.background = color.yellow
Is there a way to randomly select a .color
I wouls love to alternate some colours, as of yet have not figure out how to do it. what i have in my timer_tick is...
me.background = color.yellow
Is there a way to randomly select a .color
I don't really care, "in what way" as long as it stands out.
With help from this and other forums, ihave be able to make a countdown timer.:cool: Now what i would like to do is make the programs window Flash when the counter has reached ZERO. can anybody steer me in the right direction. THANKS
Luc Pattyn wrote:
ForumVisual Basic / VB.NET Subject:Re: Decimal Point Sender:Luc Pattyn Date:6:13 5 Aug '07 Hi, integer numbers can't handle the fractional part. Floating-point numbers can; that is their purpsoe. Look for the Single and Double data types, and the corresponding classes. Double.TryParse() may suit your needs. If this is new to you, I strongly recommend you buy an introductory book on VB.NET and work your way through it. Luc Pattyn
Integer numbers can't handle fractions, WELL DUH....Anyone knows that:mad::mad: Everyone needs a little help, now and then, even people like you.........
Hi there, The user input a decimal number 123.456, how do i work on the number behind the decimal point.
Dim current_item As Integer = CheckedListBox.SelectedIndex Select Case current_item Case 0 program code Case 1 etc.......
Is there another way of doing this??
I have 8 items that i want to list and then select just one at a time and when selected have a differant window pop-up. what would be the best way of doing this. THANKS for your answers
kubben wrote:
I wrote an article that minimizes the windows app to the tray and also using a notify icon. It is in .net 2.0. The part of the code that minimizes the form is pretty much the same. http://www.codeproject.com/dotnet/notifyiconcontrol20.asp\[^\] Hope that helps. Ben
Thanks for your reply, it got me started in the right direction..:-D instead of Form1_Closing i used Form1_Move and works a.o.k.:-D
How do I minimuise my program into the system tray.
THANKS that works perfectly:-D And i can adjust the time to anything i like.;)
Dave Kreskowiak wrote:
No, we haven't. All we've seen is the code inside the SplashScreen, not the code that created an instance of it and .Showed it.
Well according to the tutorial on Dream-in-code i don't need to create a instance of it. It works well as is, BUT does not stay on screen long enoght. So you are saying that i need to do something like the following :- dim frmsplash as splashscreen frmsplash.show and this code would be in the handles me.load for form1 ?
Christian Graus wrote:
A progress bar that sets itself based solely on a timer is kind of useless.
Well all it is there for is JUST FOR SHOW:-D
Dave Kreskowiak wrote:
It's impossible to say why it's not staying up because you haven't shown the code that creates and shows this SplashScreen form. You don't say what your project's Startup Form is either.
Startup form is Form1, and you allready have seen the create /show code. The forms for this project are :- SplashScreen Form1 Form2
Action required :- Splashscreen to stay untill Progressbar has finished
Public NotInheritable Class SplashScreen1
Private Sub SplashScreen1\_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Form1.Visible = False
Timer1.Enabled = True
End Sub
Private Sub Timer1\_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If ProgressBar1.Value <> ProgressBar1.Maximum Then
ProgressBar1.Value = (ProgressBar1.Value + 1)
Label1.Text = "Loading " & ProgressBar1.Value & "% Complete"
End If
If ProgressBar1.Value = 1 Then
Timer1.Interval = 800
End If
If ProgressBar1.Value = 2 Then
Timer1.Interval = 75
End If
If ProgressBar1.Value = 12 Then
Timer1.Interval = 600
End If
If ProgressBar1.Value = 14 Then
Timer1.Interval = 1500
End If
If ProgressBar1.Value = 30 Then
Timer1.Interval = 500
End If
If ProgressBar1.Value = 50 Then
Timer1.Interval = 250
End If
If ProgressBar1.Value = 75 Then
Timer1.Interval = 100
End If
If ProgressBar1.Value = 96 Then
Timer1.Interval = 2000
End If
If ProgressBar1.Value = 100 Then
Form1.Visible = True
Me.Visible = False
End If
End Sub
End Class
Can anyone tell me why it's not staying?:confused:
Dave Kreskowiak wrote:
Why? The specs in the OP didn't say anything about picking the folder...
I have a form with various buttons eg. movies, music, setups etc.... and i would like a windows explorer window to open up to the relevent directory on my HDD. Example if i clicked "Movies" it would open "D:\Movies" in a normal windows explorer window. You can also tell FBdialog what dir to start from, which open up in a windows explorer windows. Which is what the person wanted. As long as everybody is happy and get the answers that help them.......
You need to include a FolderBrowserDialog in your program.;)
Guffa wrote:
No, actually it's not. The string object doesn't read anything. It only contains data that was read.
Then maybe it should be called StringHolder or StringContainer:laugh::laugh::laugh: OPPS forgot to take the CAPS LOCK off:):)
This is my Code so far.....
Do While Not FileReader.EndOfStream
StringReader = FileReader.ReadLine
Form2.ListView1.Items.Add(StringReader)
'Adding Subitems
Dim item As ListViewItem = Form2.ListView1.Items.Add(StringReader)
Dim i As Integer
For i = 0 To 5
item.SubItems.Add(StringReader)
Next
Loop
Just a little bit of fine tuning....:) What is happening is that the first item on the left is in the right spot, after that what should be the first sum-item it duplicated in the left column. Then in the 3rd row this same item is in all the sub-item columns. And the same thing happens to all the other sum-items, which then knoks out of wack all the other data. It is surprising how writing something out and then thinking about it , you can come up with an answer;):doh: AND THE ANSWER is :- move the Stringreader line into the for next loop and get rid of the line :- Form2.ListView1.Items.Add(StringReader) as you don't need it twice in the code. -- modified at 5:52 Monday 12th February, 2007
TwoFaced wrote:
Then to add an item to the next column you would use this: item.SubItems.Add(SubItem) That's basically what you need to know.
THANKS Again:cool: Have just been doing some more reading about Listview Boxs and have just figured out that what you have said is what i need to do.;)
Christian Graus wrote:
It's also the name of a class, I believe. It threw me for a second, that's all.
Hmm, will have to check into that:) THANKS