Click here to Skip to main content
15,918,808 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to click a button then mySQL will create the procedure? [urgent] Pin
campbells17-Oct-06 15:44
campbells17-Oct-06 15:44 
AnswerRe: how to click a button then mySQL will create the procedure? [urgent] Pin
Christian Graus17-Oct-06 15:55
protectorChristian Graus17-Oct-06 15:55 
QuestionVB6/WinAPI - Setting process priority to interactive Pin
darkoex17-Oct-06 14:46
darkoex17-Oct-06 14:46 
QuestionDrag and Drop file to Desktop, Email, etc. Pin
CarlMoser17-Oct-06 9:06
CarlMoser17-Oct-06 9:06 
AnswerRe: Drag and Drop file to Desktop, Email, etc. Pin
CarlMoser18-Oct-06 7:44
CarlMoser18-Oct-06 7:44 
QuestionRunning application first time after install. Pin
dptalt17-Oct-06 8:02
dptalt17-Oct-06 8:02 
AnswerRe: Running application first time after install. Pin
aparna.shukla117-Oct-06 21:35
aparna.shukla117-Oct-06 21:35 
QuestionWorking with a textbox's read only property at runtime . . . Pin
Shawn Owens17-Oct-06 6:57
Shawn Owens17-Oct-06 6:57 
Hello -
I am trying to make all textboxes, comboboxes, and datetimepickers on my form ReadOnly.
But only if certain criteria is True therefore, I need to do this at runtime.
Also, there are lots of controls on my form that need to be switched so I would love to be able to
make this switch to ReadOnly without having to explicitly nameing each contol
for example I don't want to have to write the following code for every control :
textbox1.readonly = TRUE

I would like to be able to use the control collection if possible.

For x = 0 To (Me.Controls.Count - 1)
Select Case Me.Controls(x).GetType.Name
Case "Textbox"
. . .

Case "Button"
. . .

Case "Label"
. . .

Case Else
Me.Controls(x).Enabled = False
End Select
Next x

Does anyone have any suggestions ?
Thank you for all replys

Shawn Owens

AnswerRe: Working with a textbox's read only property at runtime . . . Pin
Christian Graus17-Oct-06 7:11
protectorChristian Graus17-Oct-06 7:11 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Shawn Owens17-Oct-06 7:20
Shawn Owens17-Oct-06 7:20 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Christian Graus17-Oct-06 8:09
protectorChristian Graus17-Oct-06 8:09 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Shawn Owens17-Oct-06 8:32
Shawn Owens17-Oct-06 8:32 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Christian Graus17-Oct-06 9:58
protectorChristian Graus17-Oct-06 9:58 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Dave Kreskowiak17-Oct-06 10:24
mveDave Kreskowiak17-Oct-06 10:24 
GeneralRe: Working with a textbox's read only property at runtime . . . Pin
Shawn Owens18-Oct-06 10:23
Shawn Owens18-Oct-06 10:23 
QuestionFew Questions " dialog box" " global variable" Pin
Ultima Reborn17-Oct-06 5:52
Ultima Reborn17-Oct-06 5:52 
AnswerRe: Few Questions " dialog box" " global variable" Pin
Christian Graus17-Oct-06 7:08
protectorChristian Graus17-Oct-06 7:08 
AnswerRe: Few Questions " dialog box" " global variable" Pin
UltraCoder17-Oct-06 7:52
UltraCoder17-Oct-06 7:52 
GeneralRe: Few Questions " dialog box" " global variable" Pin
Dave Kreskowiak17-Oct-06 10:02
mveDave Kreskowiak17-Oct-06 10:02 
AnswerRe: Few Questions " dialog box" " global variable" Pin
UltraCoder17-Oct-06 10:11
UltraCoder17-Oct-06 10:11 
GeneralRe: Few Questions " dialog box" " global variable" [modified] Pin
Dave Kreskowiak17-Oct-06 10:25
mveDave Kreskowiak17-Oct-06 10:25 
QuestionRe: Few Questions "dialog box""global variable" Pin
Ultima Reborn17-Oct-06 10:28
Ultima Reborn17-Oct-06 10:28 
AnswerRe: Few Questions "dialog box""global variable" Pin
UltraCoder17-Oct-06 10:56
UltraCoder17-Oct-06 10:56 
GeneralRe: Few Questions "dialog box""global variable" Pin
Christian Graus17-Oct-06 12:44
protectorChristian Graus17-Oct-06 12:44 
GeneralRe: Few Questions "dialog box""global variable" Pin
Dave Kreskowiak17-Oct-06 17:41
mveDave Kreskowiak17-Oct-06 17:41 

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.