Click here to Skip to main content
16,005,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Programmatically selecting a tab Pin
User 27100923-Feb-08 3:21
User 27100923-Feb-08 3:21 
GeneralRe: Programmatically selecting a tab Pin
Tekkie23-Feb-08 4:46
Tekkie23-Feb-08 4:46 
GeneralRe: Programmatically selecting a tab Pin
User 27100923-Feb-08 4:59
User 27100923-Feb-08 4:59 
GeneralRe: Programmatically selecting a tab Pin
Tekkie23-Feb-08 15:15
Tekkie23-Feb-08 15:15 
GeneralRe: Programmatically selecting a tab Pin
User 27100923-Feb-08 15:33
User 27100923-Feb-08 15:33 
GeneralRe: Programmatically selecting a tab Pin
Tekkie23-Feb-08 17:09
Tekkie23-Feb-08 17:09 
GeneralRe: Programmatically selecting a tab Pin
User 27100924-Feb-08 0:16
User 27100924-Feb-08 0:16 
Generalcasting object failed Pin
helelark12322-Feb-08 21:19
helelark12322-Feb-08 21:19 
Hello,

I would like to Change control color dynamically, every time I am sending in the following function another control (Button, Label,...) and change the backcolor of it.
I trying to do the following:


Private MyCtrl as New Object
Public Sub ChangeControlColor(ByVal _MyCtrl As Object)
Dim t As System.Type
t = _MyCtrl.GetType()
CType(MyCtrl,t).backColor=Color.red
End Sub

I got message that t is not defined(the last line: "CType(MyCtrl,t).backColor=Color.red")

Please help

Shay Noy

AnswerRe: casting object failed Pin
Guffa23-Feb-08 0:54
Guffa23-Feb-08 0:54 
AnswerRe: casting object failed Pin
helelark12324-Feb-08 18:52
helelark12324-Feb-08 18:52 
GeneralRe: casting object failed Pin
Dave Kreskowiak23-Feb-08 4:55
mveDave Kreskowiak23-Feb-08 4:55 
AnswerRe: casting object failed Pin
helelark12324-Feb-08 18:53
helelark12324-Feb-08 18:53 
Questionneed help Pin
pandapatin22-Feb-08 15:05
pandapatin22-Feb-08 15:05 
GeneralRe: need help Pin
Christian Graus22-Feb-08 15:09
protectorChristian Graus22-Feb-08 15:09 
GeneralRe: need help Pin
pandapatin22-Feb-08 16:22
pandapatin22-Feb-08 16:22 
GeneralRe: need help Pin
Christian Graus22-Feb-08 16:33
protectorChristian Graus22-Feb-08 16:33 
GeneralRe: need help Pin
pandapatin22-Feb-08 16:40
pandapatin22-Feb-08 16:40 
GeneralRe: need help Pin
Christian Graus22-Feb-08 16:53
protectorChristian Graus22-Feb-08 16:53 
GeneralRe: need help Pin
pandapatin22-Feb-08 17:19
pandapatin22-Feb-08 17:19 
QuestionIncreasing width of the scrollbar programmatically Pin
xbiplav22-Feb-08 7:43
xbiplav22-Feb-08 7:43 
GeneralRe: Increasing width of the scrollbar programmatically Pin
Dave Kreskowiak22-Feb-08 9:12
mveDave Kreskowiak22-Feb-08 9:12 
GeneralRe: Increasing width of the scrollbar programmatically Pin
xbiplav22-Feb-08 11:09
xbiplav22-Feb-08 11:09 
QuestionUploading file problem [modified] Pin
Darshon22-Feb-08 5:18
Darshon22-Feb-08 5:18 
GeneralRe: Uploading file problem Pin
Dave Kreskowiak22-Feb-08 6:16
mveDave Kreskowiak22-Feb-08 6:16 
GeneralRe: Uploading file problem Pin
Darshon22-Feb-08 15:08
Darshon22-Feb-08 15: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.