Click here to Skip to main content
15,124,134 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a Module class in C# similar to VB .NET Pin
Estys25-Jan-11 2:29
MemberEstys25-Jan-11 2:29 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
LAPEC25-Jan-11 2:40
MemberLAPEC25-Jan-11 2:40 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
Pravin Patil, Mumbai25-Jan-11 2:52
MemberPravin Patil, Mumbai25-Jan-11 2:52 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
Estys25-Jan-11 3:17
MemberEstys25-Jan-11 3:17 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
LAPEC25-Jan-11 3:19
MemberLAPEC25-Jan-11 3:19 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
OriginalGriff25-Jan-11 3:25
mveOriginalGriff25-Jan-11 3:25 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
OriginalGriff25-Jan-11 3:22
mveOriginalGriff25-Jan-11 3:22 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
Estys25-Jan-11 3:01
MemberEstys25-Jan-11 3:01 
You can't instantiate static classes, You can only refer to it's properties and methods.
So
UserClient temp = obj;

is wrong.
The error you're getting has nothing to do with that however.

UserClient temp = obj as UserClient;
if (!temp == null) { .. }

would work, but not for a static class. Similarly, in VB you can't 'create' a module.

see http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx[^]

[edit] maybe it would work, never tried such a thing Blush | :O [/edit]
Cheers
If you can read this, you don't have Papyrus installed

AnswerRe: How to create a Module class in C# similar to VB .NET Pin
Pravin Patil, Mumbai25-Jan-11 2:41
MemberPravin Patil, Mumbai25-Jan-11 2:41 
QuestionTextbox Validation against IP Pin
Rei ho24-Jan-11 23:36
MemberRei ho24-Jan-11 23:36 
AnswerRe: Textbox Validation against IP Pin
OriginalGriff24-Jan-11 23:52
mveOriginalGriff24-Jan-11 23:52 
GeneralRe: Textbox Validation against IP Pin
Rei ho24-Jan-11 23:55
MemberRei ho24-Jan-11 23:55 
GeneralRe: Textbox Validation against IP Pin
OriginalGriff25-Jan-11 0:00
mveOriginalGriff25-Jan-11 0:00 
GeneralRe: Textbox Validation against IP Pin
Thomas Krojer25-Jan-11 0:11
MemberThomas Krojer25-Jan-11 0:11 
GeneralRe: Textbox Validation against IP Pin
OriginalGriff25-Jan-11 0:14
mveOriginalGriff25-Jan-11 0:14 
GeneralRe: Textbox Validation against IP Pin
Pete O'Hanlon25-Jan-11 0:49
mvePete O'Hanlon25-Jan-11 0:49 
GeneralRe: Textbox Validation against IP Pin
Rei ho25-Jan-11 15:43
MemberRei ho25-Jan-11 15:43 
GeneralRe: Textbox Validation against IP [SOLVED] Pin
Rei ho25-Jan-11 16:07
MemberRei ho25-Jan-11 16:07 
QuestionWPF DataGrid add rows and cells in runtime Pin
Mc_Topaz24-Jan-11 23:33
MemberMc_Topaz24-Jan-11 23:33 
QuestionLoading a video from a web server and displaying it on my application Pin
Rei ho24-Jan-11 21:30
MemberRei ho24-Jan-11 21:30 
AnswerRe: Loading a video from a web server and displaying it on my application Pin
RobCroll24-Jan-11 22:33
MemberRobCroll24-Jan-11 22:33 
GeneralRe: Loading a video from a web server and displaying it on my application Pin
Rei ho24-Jan-11 23:40
MemberRei ho24-Jan-11 23:40 
GeneralRe: Loading a video from a web server and displaying it on my application Pin
RobCroll25-Jan-11 0:54
MemberRobCroll25-Jan-11 0:54 
QuestionExtracting numeric from string Pin
nitin_ion24-Jan-11 21:23
Membernitin_ion24-Jan-11 21:23 
AnswerRe: Extracting numeric from string Pin
Pravin Patil, Mumbai24-Jan-11 22:32
MemberPravin Patil, Mumbai24-Jan-11 22:32 

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.