Jump to content
Xtreme .Net Talk

rosshodges

Avatar/Signature
  • Posts

    28
  • Joined

  • Last visited

rosshodges's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks
  2. Hi, I am looking for a sort of mentor that I can email to help me with simple questions. To save me posting stupid questions on here! It wont be all the time just when I am really stuck. If anyone can help mail me rosshodges@hotmail.com Thanks, Ross
  3. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click If Label19.Text = "" Then MsgBox("Please enter Data") If Label19.Text Then Dim psInfo As New _ System.Diagnostics.ProcessStartInfo _ (Label19.Text) psInfo.WindowStyle = _ System.Diagnostics.ProcessWindowStyle.Normal Dim myProcess As Process = _ System.Diagnostics.Process.Start(psInfo) End If End Sub Depending on the value of the label I would like it to do different things. If Label19.Text = "" it shows the error message as it should but then continues to do the 2nd part. How can I teminate it after it has displayed the error message? I have tried end if but this doesnt work? Ross
  4. I am trying to browse for a file then add it to a box of some description but I only want one file to be added.
  5. Can I make a list box so its a single line and not multiple? If not what can I use that does the same job? Ross
  6. Thanks Yeah thats works. Thanks! Ross
  7. I have the following code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFile1.ShowDialog() ListBox2.Items.Add(ListBox2.Text) End Sub It adds the file to the list box but it doesnt display the file name or path its just a blue line?! Any help is welcome! Regards, Ross
  8. Any ideas what i can change it to? Or the only thing i am trying to do is stop the error appearing when it reaches the limit of 23:59:59 can you think of a way without using Resetnumber()? Regards, Ross
  9. Any ideas what i can change it to? Or the only thing i am trying to do is stop the error appearing when it reaches the limit of 23:59:59 can you think of a way without using Resetnumber()? Regards, Ross
  10. Calling I have have this code Private Sub NumericUpDown2_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown2.ValueChanged Mydisplay() ResetNumber() If NumericUpDown2.Value > 59 Then NumericUpDown3.Value += 1 NumericUpDown2.Value = 0 'That as you can see makes the next NumericUpDown go up by 'one(its a count down timer HH:mm:ss but when it gets put up to '23:59:59 It doesnt no what to do and gives me an error. So i 'tried this Private Sub ResetNumber() If NumericUpDown1.Value = 23 And NumericUpDown2.Value = 59 And NumericUpDown3.Value = 59 Then NumericUpDown1.Value = 0 NumericUpDown2.Value = 0 NumericUpDown3.Value = 0 But it totally un does what I have done before!
  11. Private Sub ResetNumber() If NumericUpDown1.Value = 23 And NumericUpDown2.Value = 59 And NumericUpDown3.Value = 58 Then NumericUpDown1.Value = 0 NumericUpDown2.Value = 0 NumericUpDown3.Value = 0 End If End Sub i was getting an error when puting my count down timer to 23:59:59 so i made this code but it doesnt work any ideas? Ross
  12. Figured It It has to be HH instead of hh. Thanks for your help Ross
  13. I have time code in my program but its all in 12 hour format. How can I change it into 24 hour time? Regards, Ross
  14. Hi, Can someone please take a look at my project and see why when I Use the Numericupdown It jumps from 00:00:00 to 12:00 : (what ever value I put in). Also when it counts down to 00:00:00 I get an error! Regards, Ross project.zip
  15. Icon The main icon. The one on the main exe.
×
×
  • Create New...