Click here to Skip to main content
15,887,676 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDatabase connection Pin
s3rro1-Nov-07 10:31
s3rro1-Nov-07 10:31 
AnswerRe: Database connection Pin
Dave Kreskowiak1-Nov-07 10:37
mveDave Kreskowiak1-Nov-07 10:37 
AnswerRe: Database connection Pin
Paul Conrad1-Nov-07 15:53
professionalPaul Conrad1-Nov-07 15:53 
GeneralRe: Database connection Pin
Luc Pattyn1-Nov-07 16:02
sitebuilderLuc Pattyn1-Nov-07 16:02 
Questionuse PAINT method in TEXTBOX Pin
saeed_rezaei1-Nov-07 9:41
saeed_rezaei1-Nov-07 9:41 
AnswerRe: use PAINT method in TEXTBOX Pin
Luc Pattyn1-Nov-07 9:56
sitebuilderLuc Pattyn1-Nov-07 9:56 
AnswerRe: use PAINT method in TEXTBOX Pin
Christian Graus1-Nov-07 10:52
protectorChristian Graus1-Nov-07 10:52 
AnswerRe: use PAINT method in TEXTBOX Pin
Ajay.k_Singh1-Nov-07 11:18
Ajay.k_Singh1-Nov-07 11:18 
TextBox is repainted by Form, therefore you may use form’s paint method to do custom drawing in text box.

Following is a small code snippet which may give you some idea about use of Form’s paint event-

Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint

For Each cntrl As Control In Me.Controls

If TypeOf (cntrl) Is TextBox Then

cntrl.BackColor = Color.Red

End If

Next

End Sub

I hope this helps.

-Dave.

Dave Traister,
ComponentOne LLC.
www.componentone.com

QuestionLimits of OpenFileDialog (Compact Framework) Pin
Hurricane30001-Nov-07 7:31
Hurricane30001-Nov-07 7:31 
QuestionAdding and nameing Columns To Datagrid Pin
FreakNikon1-Nov-07 4:06
FreakNikon1-Nov-07 4:06 
AnswerRe: Adding and nameing Columns To Datagrid Pin
AliAmjad1-Nov-07 4:37
AliAmjad1-Nov-07 4:37 
Questioninput validation Pin
Abbhie1-Nov-07 2:32
Abbhie1-Nov-07 2:32 
AnswerRe: input validation Pin
AliAmjad1-Nov-07 2:45
AliAmjad1-Nov-07 2:45 
GeneralRe: input validation Pin
Abbhie1-Nov-07 3:37
Abbhie1-Nov-07 3:37 
GeneralRe: input validation Pin
AliAmjad1-Nov-07 4:57
AliAmjad1-Nov-07 4:57 
QuestionRe: input validation Pin
bob3231-Nov-07 11:15
bob3231-Nov-07 11:15 
AnswerRe: input validation Pin
The ANZAC1-Nov-07 21:55
The ANZAC1-Nov-07 21:55 
GeneralRe: input validation Pin
The ANZAC1-Nov-07 21:52
The ANZAC1-Nov-07 21:52 
AnswerRe: input validation Pin
The ANZAC1-Nov-07 21:51
The ANZAC1-Nov-07 21:51 
QuestionAbstract Class Pin
danasegaranea1-Nov-07 1:49
danasegaranea1-Nov-07 1:49 
AnswerRe: Abstract Class Pin
AliAmjad1-Nov-07 2:51
AliAmjad1-Nov-07 2:51 
GeneralRe: Abstract Class Pin
danasegaranea1-Nov-07 3:14
danasegaranea1-Nov-07 3:14 
GeneralRe: Abstract Class Pin
AliAmjad1-Nov-07 3:33
AliAmjad1-Nov-07 3:33 
QuestionRe: Abstract Class Pin
bob3231-Nov-07 11:14
bob3231-Nov-07 11:14 
Questionquery string Pin
fazeepk31-Oct-07 23:44
fazeepk31-Oct-07 23:44 

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.