Click here to Skip to main content
15,906,455 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How could you stop a running loop when you push a button? Pin
Luc Pattyn19-Feb-09 6:31
sitebuilderLuc Pattyn19-Feb-09 6:31 
GeneralRe: How could you stop a running loop when you push a button? Pin
Dave Kreskowiak19-Feb-09 6:39
mveDave Kreskowiak19-Feb-09 6:39 
QuestionHelp! Pin
ShayanTanwir19-Feb-09 4:49
ShayanTanwir19-Feb-09 4:49 
AnswerRe: Help! Pin
Dave Kreskowiak19-Feb-09 5:27
mveDave Kreskowiak19-Feb-09 5:27 
AnswerRe: Help! Pin
vaghelabhavesh19-Feb-09 5:30
vaghelabhavesh19-Feb-09 5:30 
GeneralRe: Help! Pin
ShayanTanwir19-Feb-09 5:54
ShayanTanwir19-Feb-09 5:54 
GeneralRe: Help! Pin
LloydA11120-Feb-09 4:44
LloydA11120-Feb-09 4:44 
AnswerRe: Help! Pin
riced19-Feb-09 5:40
riced19-Feb-09 5:40 
You can use the System.Windows.Forms.ErrorProvider to do this.
Or you could deal with them one at a time by having:

If Text3 = ""  Then
   MsgBox "Please Fill in the Text3 field", vbInformation, "Presence Error"
ElseIf Text4 = "" Then
   MsgBox "Please Fill in the Text4 field", vbInformation, "Presence Error"
ElseIf Text5 = "" Then
   MsgBox "Please Fill in the Text5 field", vbInformation, "Presence Error"
ElseIf Text6 = "" Then
   MsgBox "Please Fill in the Text6 field", vbInformation, "Presence Error"
Else
   Adodc1.Recordset.Save
   MsgBox "Record has been saved"
End If


If you do the latter, then the user could be faced with four message boxes.

By the way, I think you should use MessageBox.Show() rather tham MsgBox - see the How to: Display Message Boxes topic in VB help.

Regards
David R

GeneralRe: Help! Pin
ShayanTanwir19-Feb-09 5:58
ShayanTanwir19-Feb-09 5:58 
GeneralRe: Help! Pin
riced19-Feb-09 6:09
riced19-Feb-09 6:09 
AnswerRe: Help! Pin
riced19-Feb-09 5:50
riced19-Feb-09 5:50 
QuestionSQL server 2005 Pin
Kanyungu19-Feb-09 4:07
Kanyungu19-Feb-09 4:07 
AnswerRe: SQL server 2005 Pin
Dave Kreskowiak19-Feb-09 4:35
mveDave Kreskowiak19-Feb-09 4:35 
AnswerRe: SQL server 2005 Pin
Jon_Boy19-Feb-09 5:29
Jon_Boy19-Feb-09 5:29 
QuestionProblem with data display using Datagridview Pin
drexler_kk19-Feb-09 4:00
drexler_kk19-Feb-09 4:00 
AnswerRe: Problem with data display using Datagridview Pin
Dave Kreskowiak19-Feb-09 4:30
mveDave Kreskowiak19-Feb-09 4:30 
QuestionRe: Problem with data display using Datagridview Pin
drexler_kk19-Feb-09 5:17
drexler_kk19-Feb-09 5:17 
AnswerRe: Problem with data display using Datagridview Pin
Dave Kreskowiak19-Feb-09 5:25
mveDave Kreskowiak19-Feb-09 5:25 
AnswerRe: Problem with data display using Datagridview Pin
Jon_Boy19-Feb-09 5:27
Jon_Boy19-Feb-09 5:27 
GeneralRe: Problem with data display using Datagridview Pin
drexler_kk19-Feb-09 13:25
drexler_kk19-Feb-09 13:25 
QuestionHow to resize tablelayoutpanel dynamically Pin
dilipmca0419-Feb-09 2:49
dilipmca0419-Feb-09 2:49 
AnswerRe: How to resize tablelayoutpanel dynamically Pin
Dave Kreskowiak19-Feb-09 4:17
mveDave Kreskowiak19-Feb-09 4:17 
QuestionUSB RESET Pin
siddaraju19-Feb-09 2:15
siddaraju19-Feb-09 2:15 
AnswerRe: USB RESET Pin
Dave Kreskowiak19-Feb-09 3:50
mveDave Kreskowiak19-Feb-09 3:50 
GeneralRe: USB RESET Pin
Luc Pattyn19-Feb-09 5:17
sitebuilderLuc Pattyn19-Feb-09 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.