Click here to Skip to main content
16,006,001 members
Home / Discussions / C#
   

C#

 
GeneralRe: dbms extraction Pin
J4amieC11-Oct-04 0:18
J4amieC11-Oct-04 0:18 
GeneralRe: dbms extraction Pin
Stanciu Vlad11-Oct-04 0:18
Stanciu Vlad11-Oct-04 0:18 
GeneralRe: dbms extraction Pin
Anonymous11-Oct-04 5:32
Anonymous11-Oct-04 5:32 
GeneralRe: dbms extraction Pin
xiaowenjie11-Oct-04 5:39
xiaowenjie11-Oct-04 5:39 
GeneralRe: dbms extraction Pin
xiaowenjie11-Oct-04 18:06
xiaowenjie11-Oct-04 18:06 
GeneralRe: dbms extraction Pin
xiaowenjie11-Oct-04 21:58
xiaowenjie11-Oct-04 21:58 
GeneralControl dependent event-firing. Pin
NietzscheDisciple10-Oct-04 17:07
NietzscheDisciple10-Oct-04 17:07 
GeneralRe: Control dependent event-firing. Pin
Heath Stewart10-Oct-04 18:16
protectorHeath Stewart10-Oct-04 18:16 
If I understand you correctly, you just need some type checking. You're already doing it with as (a safe cast), but you can also use is or a simple type check using GetType and typeof.

You might also consider using polymorphism instead of class factories, since activation in the .NET Framework - both for local and remote classes - is already handled by the Framework. IF all your controls implement the same interface you wouldn't have to worry about differences in types as long as your interface exposes the properties, methods, and events you need.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralUrgent Plz.. Help needed on converting 12 bit greylevel... Pin
Kiran Satish10-Oct-04 14:42
Kiran Satish10-Oct-04 14:42 
GeneralRe: Urgent Plz.. Help needed on converting 12 bit greylevel... Pin
Christian Graus10-Oct-04 16:02
protectorChristian Graus10-Oct-04 16:02 
GeneralRe: Urgent Plz.. Help needed on converting 12 bit greylevel... Pin
Kiran Satish10-Oct-04 16:22
Kiran Satish10-Oct-04 16:22 
GeneralRe: Urgent Plz.. Help needed on converting 12 bit greylevel... Pin
Kiran Satish10-Oct-04 18:19
Kiran Satish10-Oct-04 18:19 
GeneralRe: Urgent Plz.. Help needed on converting 12 bit greylevel... Pin
Kiran Satish11-Oct-04 6:12
Kiran Satish11-Oct-04 6:12 
GeneralRe: Urgent Plz.. Help needed on converting 12 bit greylevel... Pin
Christian Graus11-Oct-04 10:18
protectorChristian Graus11-Oct-04 10:18 
GeneralXP visual styles Pin
Mr.Cooper10-Oct-04 13:44
Mr.Cooper10-Oct-04 13:44 
GeneralRe: XP visual styles Pin
Heath Stewart10-Oct-04 18:00
protectorHeath Stewart10-Oct-04 18:00 
GeneralRe: XP visual styles Pin
Alex Korchemniy11-Oct-04 16:40
Alex Korchemniy11-Oct-04 16:40 
Generalemail proxy Pin
edthered10-Oct-04 13:27
edthered10-Oct-04 13:27 
GeneralRe: email proxy Pin
benjymous10-Oct-04 23:13
benjymous10-Oct-04 23:13 
Generalplease help me to solve memory problem Pin
tifa10-Oct-04 12:44
tifa10-Oct-04 12:44 
GeneralRe: please help me to solve memory problem Pin
edthered10-Oct-04 13:29
edthered10-Oct-04 13:29 
GeneralRe: please help me to solve memory problem Pin
tifa10-Oct-04 13:33
tifa10-Oct-04 13:33 
GeneralRe: please help me to solve memory problem Pin
Heath Stewart10-Oct-04 18:06
protectorHeath Stewart10-Oct-04 18:06 
Generalon IE programming Pin
ppp00110-Oct-04 9:35
ppp00110-Oct-04 9:35 
GeneralRe: on IE programming Pin
Heath Stewart10-Oct-04 11:28
protectorHeath Stewart10-Oct-04 11:28 

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.