30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 12 Graphical User Interface Concepts: Part 1 505<br />

129 iconType = MessageBoxIcon.Asterisk<br />

130 End Sub ' radAsterisk_CheckedChanged<br />

131<br />

132 ' set icon type <strong>to</strong> Error when Error checked<br />

133 Private Sub radError_CheckedChanged(ByVal sender _<br />

134 As System.Object, ByVal e As System.EventArgs) _<br />

135 Handles radError.CheckedChanged<br />

136<br />

137 iconType = MessageBoxIcon.Error<br />

138 End Sub ' radError_CheckedChanged<br />

139<br />

140 ' set icon type <strong>to</strong> Exclamation when Exclamation checked<br />

141 Private Sub radExclamation_CheckedChanged(ByVal sender _<br />

142 As System.Object, ByVal e As System.EventArgs) _<br />

143 Handles radExclamation.CheckedChanged<br />

144<br />

145 iconType = MessageBoxIcon.Exclamation<br />

146 End Sub ' radExclamation_CheckedChanged<br />

147<br />

148 ' set icon type <strong>to</strong> Hand when Hand checked<br />

149 Private Sub radHand_CheckedChanged(ByVal sender _<br />

150 As System.Object, ByVal e As System.EventArgs) _<br />

151 Handles radHand.CheckedChanged<br />

152<br />

153 iconType = MessageBoxIcon.Hand<br />

154 End Sub ' radHand_CheckedChanged<br />

155<br />

156 ' set icon type <strong>to</strong> Information when Information checked<br />

157 Private Sub radInformation_CheckedChanged(ByVal sender _<br />

158 As System.Object, ByVal e As System.EventArgs) _<br />

159 Handles radInformation.CheckedChanged<br />

160<br />

161 iconType = MessageBoxIcon.Information<br />

162 End Sub ' radInformation_CheckedChanged<br />

163<br />

164 ' set icon type <strong>to</strong> Question when Question checked<br />

165 Private Sub radQuestion_CheckedChanged(ByVal sender _<br />

166 As System.Object, ByVal e As System.EventArgs) _<br />

167 Handles radQuestion.CheckedChanged<br />

168<br />

169 iconType = MessageBoxIcon.Question<br />

170 End Sub ' radQuestion_CheckedChanged<br />

171<br />

172 ' set icon type <strong>to</strong> S<strong>to</strong>p when S<strong>to</strong>p checked<br />

173 Private Sub radS<strong>to</strong>p_CheckedChanged(ByVal sender _<br />

174 As System.Object, ByVal e As System.EventArgs) _<br />

175 Handles radS<strong>to</strong>p.CheckedChanged<br />

176<br />

177 iconType = MessageBoxIcon.S<strong>to</strong>p<br />

178 End Sub ' radS<strong>to</strong>p_CheckedChanged<br />

179<br />

Fig. 12.26 Using RadioBut<strong>to</strong>ns <strong>to</strong> set message-window options (part 4 of 6).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!