Click here to Skip to main content
15,912,977 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: sql Pin
Noctris18-Jun-08 22:58
Noctris18-Jun-08 22:58 
GeneralRe: sql Pin
Ashfield18-Jun-08 23:18
Ashfield18-Jun-08 23:18 
GeneralRe: sql Pin
Noctris19-Jun-08 0:01
Noctris19-Jun-08 0:01 
GeneralRe: sql Pin
jacko87319-Jun-08 9:38
jacko87319-Jun-08 9:38 
GeneralRe: sql Pin
Noctris21-Jun-08 23:42
Noctris21-Jun-08 23:42 
QuestionRegarding Outlook progrmamming using .net Pin
Ansari Mohammad Aamir18-Jun-08 19:37
Ansari Mohammad Aamir18-Jun-08 19:37 
QuestionLock controls in a form Pin
Sebastian T Xavier18-Jun-08 19:01
Sebastian T Xavier18-Jun-08 19:01 
AnswerRe: Lock controls in a form Pin
Tom Deketelaere18-Jun-08 20:55
professionalTom Deketelaere18-Jun-08 20:55 
run thru all the controls using me.controls

check if the controls are container controls using control.haschildren
TRUE: run thru those controls and do the same check
FALSE: set enable / lock / readonly (according to what you want) based on the type of control it is (a select case with a gettype(control).tostring (case gettype(textbox).tostring) should do it)

in the true part I sugest you call a second function (since the check there has to be able to call itself again)

so in code it would look something like this
for each c as control in me.controls
if c.haschildren = true then
subfunction(c)
else
c.enable= false
end if
next

subfunction (subc as control)
for each c as control in subc.controls
if c.haschildren = true then
subfunction(c)
else
c.enable= false
end if
next

(this is out of my head and not tested mearly as an illustration)


or you could just lock the containers controls (this will lock all controls in it) but that's not as nice

hope this helps
GeneralRe: Lock controls in a form Pin
Sebastian T Xavier20-Jun-08 4:24
Sebastian T Xavier20-Jun-08 4:24 
GeneralRe: Lock controls in a form Pin
Tom Deketelaere23-Jun-08 1:09
professionalTom Deketelaere23-Jun-08 1:09 
GeneralRe: Lock controls in a form Pin
Sebastian T Xavier25-Jun-08 21:35
Sebastian T Xavier25-Jun-08 21:35 
GeneralRe: Lock controls in a form Pin
Tom Deketelaere25-Jun-08 21:54
professionalTom Deketelaere25-Jun-08 21:54 
GeneralRe: Lock controls in a form Pin
Sebastian T Xavier25-Jun-08 23:04
Sebastian T Xavier25-Jun-08 23:04 
GeneralRe: Lock controls in a form Pin
Tom Deketelaere26-Jun-08 3:10
professionalTom Deketelaere26-Jun-08 3:10 
QuestionWrong datetime will get when using Date in vb6 Pin
cocoonwls18-Jun-08 15:39
cocoonwls18-Jun-08 15:39 
AnswerRe: Wrong datetime will get when using Date in vb6 Pin
nishkarsh_k18-Jun-08 17:05
nishkarsh_k18-Jun-08 17:05 
GeneralRe: Wrong datetime will get when using Date in vb6 Pin
cocoonwls18-Jun-08 18:49
cocoonwls18-Jun-08 18:49 
GeneralRe: Wrong datetime will get when using Date in vb6 Pin
nishkarsh_k18-Jun-08 22:14
nishkarsh_k18-Jun-08 22:14 
GeneralRe: Wrong datetime will get when using Date in vb6 Pin
cocoonwls22-Jun-08 16:45
cocoonwls22-Jun-08 16:45 
AnswerRe: Wrong datetime will get when using Date in vb6 Pin
Tom Deketelaere18-Jun-08 20:58
professionalTom Deketelaere18-Jun-08 20:58 
Questionimages in vb.net Pin
salam ellayan18-Jun-08 10:37
salam ellayan18-Jun-08 10:37 
AnswerRe: images in vb.net Pin
nishkarsh_k18-Jun-08 17:01
nishkarsh_k18-Jun-08 17:01 
GeneralRe: images in vb.net Pin
salam ellayan18-Jun-08 22:42
salam ellayan18-Jun-08 22:42 
GeneralRe: images in vb.net Pin
nishkarsh_k18-Jun-08 23:53
nishkarsh_k18-Jun-08 23:53 
GeneralRe: images in vb.net Pin
salam ellayan19-Jun-08 22:23
salam ellayan19-Jun-08 22:23 

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.