Click here to Skip to main content
15,910,121 members
Home / Discussions / C#
   

C#

 
GeneralRe: FolderBrowseDialog problems Pin
Heath Stewart21-Apr-04 8:32
protectorHeath Stewart21-Apr-04 8:32 
GeneralGet a string in a Textbox on Cursoposition Pin
Eolus20-Apr-04 21:00
Eolus20-Apr-04 21:00 
GeneralRe: Get a string in a Textbox on Cursoposition Pin
«_Superman_»20-Apr-04 21:14
professional«_Superman_»20-Apr-04 21:14 
GeneralRe: Get a string in a Textbox on Cursoposition Pin
Eolus20-Apr-04 21:43
Eolus20-Apr-04 21:43 
Generala XSD problem Pin
wokankan20-Apr-04 20:59
wokankan20-Apr-04 20:59 
GeneralRe: a XSD problem Pin
wokankan20-Apr-04 21:02
wokankan20-Apr-04 21:02 
GeneralRe: a XSD problem Pin
Heath Stewart21-Apr-04 4:01
protectorHeath Stewart21-Apr-04 4:01 
GeneralClass instantiation question Pin
ecnava20-Apr-04 17:44
ecnava20-Apr-04 17:44 
Is there a way to control instantiation of a class/object in c#?

I am trying to replicate the functionality of VB6 which allows you to specify whether the class can be instantiated by anyone, or whether it can only be used by other classes in the same project. What this would allow is the class being instantiated, and even returned by a "factory" construct, other code could USE the class, but it couldn't be instantiated elsewhere.

I've tried using "internal" in C#, but perhaps I'm using it wrong - or this doesn't really do what I'm wanting to do.

However, c# seems to insist that if a class is out there, it can be created anywhere.

Is there a way to do this?

Thanks.
GeneralRe: Class instantiation question Pin
Roman Rodov20-Apr-04 20:44
Roman Rodov20-Apr-04 20:44 
GeneralRe: Class instantiation question Pin
scadaguy21-Apr-04 3:36
scadaguy21-Apr-04 3:36 
GeneralRetrieve DateTime Pin
Apusnaias20-Apr-04 16:02
Apusnaias20-Apr-04 16:02 
GeneralRe: Retrieve DateTime Pin
Angel Reyes20-Apr-04 18:49
Angel Reyes20-Apr-04 18:49 
GeneralRe: Retrieve DateTime Pin
Apusnaias21-Apr-04 3:01
Apusnaias21-Apr-04 3:01 
GeneralRe: Retrieve DateTime Pin
Heath Stewart21-Apr-04 4:05
protectorHeath Stewart21-Apr-04 4:05 
GeneralRe: Retrieve DateTime Pin
Apusnaias21-Apr-04 4:21
Apusnaias21-Apr-04 4:21 
GeneralRe: Retrieve DateTime Pin
Heath Stewart21-Apr-04 6:23
protectorHeath Stewart21-Apr-04 6:23 
GeneralRe: Retrieve DateTime Pin
Apusnaias22-Apr-04 6:12
Apusnaias22-Apr-04 6:12 
Generalwindows media player question Pin
Marveyles20-Apr-04 15:57
Marveyles20-Apr-04 15:57 
GeneralRe: windows media player question Pin
Mazdak21-Apr-04 2:27
Mazdak21-Apr-04 2:27 
GeneralRe: windows media player question Pin
Marveyles22-Apr-04 15:09
Marveyles22-Apr-04 15:09 
Generalexposing a class library as a COM object Pin
User 96257820-Apr-04 9:40
User 96257820-Apr-04 9:40 
GeneralRe: exposing a class library as a COM object Pin
Heath Stewart20-Apr-04 9:47
protectorHeath Stewart20-Apr-04 9:47 
GeneralCould someone please post a tutorial Pin
MeterMan20-Apr-04 8:54
MeterMan20-Apr-04 8:54 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart20-Apr-04 9:09
protectorHeath Stewart20-Apr-04 9:09 
GeneralRe: Could someone please post a tutorial Pin
MeterMan20-Apr-04 15:34
MeterMan20-Apr-04 15:34 

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.