Click here to Skip to main content
16,015,097 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Print preivew [modified] Pin
shreekar16-Jan-07 0:58
shreekar16-Jan-07 0:58 
QuestionListbox name edit Pin
Ultima Reborn15-Jan-07 23:58
Ultima Reborn15-Jan-07 23:58 
AnswerRe: Listbox name edit Pin
Dave Kreskowiak16-Jan-07 5:45
mveDave Kreskowiak16-Jan-07 5:45 
GeneralRe: Listbox name edit Pin
Ultima Reborn16-Jan-07 7:26
Ultima Reborn16-Jan-07 7:26 
GeneralRe: Listbox name edit Pin
Dave Kreskowiak16-Jan-07 7:56
mveDave Kreskowiak16-Jan-07 7:56 
GeneralRe: Listbox name edit Pin
Ultima Reborn16-Jan-07 8:43
Ultima Reborn16-Jan-07 8:43 
GeneralRe: Listbox name edit Pin
Dave Kreskowiak16-Jan-07 9:22
mveDave Kreskowiak16-Jan-07 9:22 
QuestionValidate All controls on form Pin
priya_p23315-Jan-07 23:09
priya_p23315-Jan-07 23:09 
hi,
i wrote following code to validate my all controls on form.
it is working well but when i run my project & for testing purpose i leave the textbox as it is
following code executed & showing appropriate message but it is validating controls randomly....& i wnt that it should validate control in a sequence
( e.g. employeeid ,empname,designation......etc).
i have given tabindex to all controls in sequence though it is validating controls in random manner Wht shuld i do??
Is there anyone who will solve my problem????Cry | :((


Public Function Validate_Ctrl(ByVal sender As Form) As Boolean
For Each obj In sender.Controls
If TypeOf obj Is TextBox Then
If obj.Name = "txtSearch1" Or obj.Name = "txtSearch2" Or (TypeOf obj Is CheckBox) Then Continue For
If obj.Text = "" Then
MsgBox("Please Enter Values In " + obj.Name, MsgBoxStyle.Exclamation + MsgBoxStyle.OkOnly, obj.Name + " Validation")
obj.Focus()
Validate_Ctrl = False
Exit Function
End If
End If
Next
Validate_Ctrl = True
End Function


priya

AnswerRe: Validate All controls on form Pin
shreekar16-Jan-07 1:03
shreekar16-Jan-07 1:03 
Questiontheatre booking system [modified] Pin
kendo1715-Jan-07 22:50
kendo1715-Jan-07 22:50 
AnswerRe: theatre booking system Pin
Christian Graus16-Jan-07 1:05
protectorChristian Graus16-Jan-07 1:05 
GeneralRe: theatre booking system Pin
Dave Kreskowiak16-Jan-07 8:10
mveDave Kreskowiak16-Jan-07 8:10 
GeneralRe: theatre booking system Pin
Christian Graus16-Jan-07 8:20
protectorChristian Graus16-Jan-07 8:20 
GeneralRe: theatre booking system Pin
Dave Kreskowiak16-Jan-07 9:20
mveDave Kreskowiak16-Jan-07 9:20 
QuestionBinary .dat files in VB .Net Pin
KeithF15-Jan-07 22:49
KeithF15-Jan-07 22:49 
QuestionDisable Lock Computer Button Pin
Kumaran21cen15-Jan-07 22:01
Kumaran21cen15-Jan-07 22:01 
AnswerRe: Disable Lock Computer Button Pin
Christian Graus15-Jan-07 22:05
protectorChristian Graus15-Jan-07 22:05 
AnswerRe: Disable Lock Computer Button Pin
Sachin Pimpale15-Jan-07 22:06
Sachin Pimpale15-Jan-07 22:06 
AnswerRe: Disable Lock Computer Button Pin
Dave Kreskowiak16-Jan-07 4:35
mveDave Kreskowiak16-Jan-07 4:35 
QuestionTransparent form Pin
Sachin Pimpale15-Jan-07 21:55
Sachin Pimpale15-Jan-07 21:55 
AnswerRe: Transparent form Pin
Christian Graus15-Jan-07 22:04
protectorChristian Graus15-Jan-07 22:04 
GeneralRe: Transparent form [modified] Pin
Sachin Pimpale15-Jan-07 22:08
Sachin Pimpale15-Jan-07 22:08 
GeneralRe: Transparent form Pin
Sachin Pimpale15-Jan-07 22:39
Sachin Pimpale15-Jan-07 22:39 
GeneralRe: Transparent form Pin
Christian Graus16-Jan-07 1:05
protectorChristian Graus16-Jan-07 1:05 
GeneralRe: Transparent form Pin
Sachin Pimpale16-Jan-07 1:08
Sachin Pimpale16-Jan-07 1:08 

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.