alright iam working on a microwave app its very important anyways ill give up what code ive got soo far and such but when i try to run it i get this error message :

Visual Studio cannot start debugging because the debug target
Microwave.exe is missing Please build the project and retry or set the
OutputPath and AssemblyName properties appropriately to point at correct location for the
target assembly


i need help fixing this so it runs correctly alright here is my codes so far for the Microwave:

Public Class MicrowaveForm  

002    

003 ' contains time entered as a String  

004  Private timeIs As String = "" 

005    

006 ' contains time entered  

007  Private timeObject As Time  

008    

009 ' event handler appends 1 to time string  

010 Private Sub oneButton_Click(ByVal sender As System.Object, _  

011  ByVal e As System.EventArgs) Handles oneButton.Click  

012    

013  Beep() ' sound beep  

014   timeIs &= "1" ' append digit to time input  

015  DisplayTime() ' display time input properly  

016  End Sub ' oneButton_Click  

017    

018  ' event handler appends 2 to time string  

019  Private Sub twoButton_Click(ByVal sender As System.Object, _  

020  ByVal e As System.EventArgs) Handles twoButton.Click  

021    

022 Beep() ' sound beep  

023  timeIs &= "2" ' append digit to time input  

024  DisplayTime() ' display time input properly  

025  End Sub ' twoButton_Click  

026    

027  ' event handler appends 3 to time string  

028  Private Sub threeButton_Click(ByVal sender As System.Object, _  

029  ByVal e As System.EventArgs) Handles threeButton.Click  

030    

031  Beep() ' sound beep  

032  timeIs &= "3" ' append digit to time input  

033  DisplayTime() ' display time input properly  

034  End Sub ' threeButton_Click  

035    

036  ' event handler appends 4 to time string  

037  Private Sub fourButton_Click(ByVal sender As System.Object, _  

038  ByVal e As System.EventArgs) Handles fourButton.Click  

039    

040  Beep() ' sound beep  

041  timeIs &= "4" ' append digit to time input  

042  DisplayTime() ' display time input properly  

043  End Sub ' fourButton_Click  

044    

045  ' event handler appends 5 to time string  

046  Private Sub fiveButton_Click(ByVal sender As System.Object, _  

047  ByVal e As System.EventArgs) Handles fiveButton.Click  

048    

049  Beep() ' sound beep  

050  timeIs &= "5" ' append digit to time input  

051  DisplayTime() ' display time input properly  

052  End Sub ' fiveButton_Click  

053    

054  ' event handler appends 6 to time string  

055  Private Sub sixButton_Click(ByVal sender As System.Object, _  

056  ByVal e As System.EventArgs) Handles sixButton.Click  

057    

058  Beep() ' sound beep  

059  timeIs &= "6" ' append digit to time input  

060  DisplayTime() ' display time input properly  

061  End Sub ' sixButton_Click  

062    

063  ' event handler appends 7 to time string  

064  Private Sub sevenButton_Click(ByVal sender As System.Object, _  

065  ByVal e As System.EventArgs) Handles sevenButton.Click  

066    

067  Beep() ' sound beep  

068  timeIs &= "7" ' append digit to time input  

069  DisplayTime() ' display time input properly  

070  End Sub ' sevenButton_Click  

071    

072  ' event handler appends 8 to time string  

073  Private Sub eightButton_Click(ByVal sender As System.Object, _  

074  ByVal e As System.EventArgs) Handles eightButton.Click  

075    

076  Beep() ' sound beep  

077  timeIs &= "8" ' append digit to time input  

078  DisplayTime() ' display time input properly  

079  End Sub ' eightButton_Click  

080    

081  ' event handler appends 9 to time string  

082  Private Sub nineButton_Click(ByVal sender As System.Object, _  

083  ByVal e As System.EventArgs) Handles nineButton.Click  

084    

085  Beep() ' sound beep  

086 timeIs &= "9" ' append digit to time input  

087  DisplayTime() ' display time input properly  

088  End Sub ' nineButton_Click  

089    

090  ' event handler appends 0 to time string  

091  Private Sub zeroButton_Click(ByVal sender As System.Object, _  

092  ByVal e As System.EventArgs) Handles zeroButton.Click  

093    

094  Beep() ' sound beep  

095  timeIs &= "0" ' append digit to time input  

096  DisplayTime() ' display time input properly  

097  End Sub ' zeroButton_Click  

098    

099  ' event handler starts the microwave oven's cooking process  

100  Private Sub startButton_Click(ByVal sender As System.Object, _  

101  ByVal e As System.EventArgs) Handles startButton.Click  

102    

103  Dim second As Integer 

104  Dim minute As Integer 

105    

106  ' ensure that timeIs has 4 characters  

107  timeIs = timeIs.PadLeft(4, _  

108  Convert.ToChar("0"))  

109    

110  ' extract seconds and minutes  

111  second = Convert.ToInt32(timeIs.Substring(2))  

112  minute = Convert.ToInt32(timeIs.Substring(0, 2))  

113    

114  ' create Time object to contain time entered by user  

115    timeObject = New Time(minute, second)  

116    displayLabel.Text = String.Format("{0:D2}:{1:D2}",  

117         timeObject.Minute, timeObject.Second)  

118    

119    

120    

121  timeIs = "" ' clear timeIs for future input  

122    

123   clockTimer.Enabled = True ' start timer  

124    

125    windowPanel.BackColor = Color.Yellow ' turn "light" on  

126    

127       End Sub ' startButton_Click  

128    

129  ' event handler to clear input  

130  Private Sub clearButton_Click(ByVal sender As System.Object, _  

131  ByVal e As System.EventArgs) Handles clearButton.Click  

132    

133  ' reset each property or variable to its initial setting  

134  displayLabel.Text = "Microwave" 

135   timeIs = "" 

136   timeObject = New Time(0, 0)  

137   clockTimer.Enabled = False 

138   windowPanel.BackColor = Control.DefaultBackColor  

139  End Sub ' clearButton_Click  

140    

141  ' method to display formatted time in timer window  

142  Private Sub DisplayTime()  

143    

144  Dim second As Integer 

145  Dim minute As Integer 

146    

147  Dim display As String ' String displays current input  

148    

149  ' if too much input entered  

150    If timeIs.Length > 4 Then 

151          timeIs=timeIs.Substring(0,4)   

152    

153    

154      display = timeIs.PadLeft(4, Convert.ToChar("0"))  

155    

156 ' extract seconds and minutes  

157  second = Convert.ToInt32(display.Substring(2))  

158  minute = Convert.ToInt32(display.Substring(0, 2))  

159    

160  ' display number of minutes, ":" and number of seconds  

161  displayLabel.Text = String.Format("{0:D2}:{1:D2}", _  

162  minute, second)  

163  End Sub ' DisplayTime  

164    

165  ' event handler displays new time each second  

166  Private Sub clockTimer_Tick(ByVal sender As System.Object, _  

167  ByVal e As System.EventArgs) Handles clockTimer.Tick  

168    

169  ' perform countdown, subtract one second  

170  If timeObject.Second > 0 Then 

171  timeObject.Second -= 1  

172  displayLabel.Text = String.Format("{0:D2}:{1:D2}", _  

173  timeObject.Minute, timeObject.Second)  

174  ElseIf timeObject.Minute > 0 Then 

175  timeObject.Minute -= 1 ' subtract one minute  

176  timeObject.Second = 59 ' reset seconds for new minute  

177  displayLabel.Text = String.Format("{0:D2}:{1:D2}", _  

178  timeObject.Minute, timeObject.Second)  

179  Else ' no more seconds  

180  clockTimer.Enabled = False ' stop timer  

181  Beep()  

182  displayLabel.Text = "Done!" ' inform user time is finished  

183  windowPanel.BackColor = Control.DefaultBackColor  

184  End If 

185  End Sub ' clockTimer_Tick  

186  End Class ' MicrowaveForm

then i have this class added as a requirment with time i need it to work with the actual microwave tho if i can get just the microwave working ill be in debted to someone lol here is the time class code :

' Time.vb  

02 ' Represents time data and contains properties.  

03    

04 Public Class Time  

05    

06 ' declare Integers for minute and second  

07  Private minuteValue As Integer 

08  Private secondValue As Integer 

09    

10  ' Time constructor, minute and second supplied  

11    

12 Public Sub New(ByVal mm As Integer, ByVal ss As Integer)  

13    

14 Minute = mm ' invokes Minute Set accessor  

15 Second = ss ' invokes Second Set accessor  

16 End Sub ' New  

17    

18 ' property Minute  

19  Public Property Minute() As Integer 

20  ' return Minute value  

21  Get 

22  Return minuteValue  

23  End Get ' end of Get accessor  

24    

25 ' set Minute value  

26  Set(ByVal value As Integer)  

27  ' if minute value entered is valid  

28  If (value < 60) Then 

29  minuteValue = value  

30  Else 

31  minuteValue = 0 ' set invalid input to 0  

32  End If 

33  End Set ' end of Set accessor  

34  End Property ' Minute  

35 ' property Second  

36 Public Property Second() As Integer 

37 ' return Second value  

38 Get 

39 Return secondValue  

40 End Get ' end of Get accessor  

41    

42 ' set Second value  

43 Set(ByVal value As Integer)  

44 ' if second value entered is valid  

45 If (value < 60) Then 

46 secondValue = value  

47 Else 

48 secondValue = 0 ' set invalid input to 0  

49    

50 End If 

51 Set accessor modifies data  

52 End Set ' end of Set accessor  

53 End Property 'Second  

54 Enc Class 'Time

First of all, please repost the code without line numbers. It screws up the formatting. Also, a suggestion to simplify your code. Create the nine digit buttons and name them btn0, btn1, etc. Create a button click handler for one button then modify it as follows:

Private Sub btn0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn0.Click, btn1.Click, btn2.Click, btn3.Click, btn4.Click, btn5.Click, btn6.Click, btn7.Click, btn8.Click, btn9.Click
    Dim button As Windows.Forms.Button = sender
    txtTimer.AppendText(button.Text)
End Sub

That way you can use one handler to handle all 10 buttons. The above code is pretty simple minded. You might, for example, split the numeric display into two separate controls with a label ":" to separate them. The left control would be for minutes and the right for seconds. You could also add code that disables certain buttone (like "Cook" or "Start") if the entered time is not valid (eg 23:97).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.