Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
GeneralRe: OCX Control .NET Heath Can you help? Pin
sbeausol2-Apr-04 10:56
sbeausol2-Apr-04 10:56 
GeneralRe: OCX Control .NET Heath Can you help? Pin
Heath Stewart2-Apr-04 11:00
protectorHeath Stewart2-Apr-04 11:00 
GeneralStill fails in C# Pin
sbeausol2-Apr-04 11:18
sbeausol2-Apr-04 11:18 
GeneralRe: Still fails in C# Pin
Heath Stewart3-Apr-04 3:14
protectorHeath Stewart3-Apr-04 3:14 
GeneralRe: Still fails in C# Pin
sbeausol3-Apr-04 6:17
sbeausol3-Apr-04 6:17 
GeneralRe: save datagrid Pin
Heath Stewart1-Apr-04 5:11
protectorHeath Stewart1-Apr-04 5:11 
GeneralRe: save datagrid Pin
bertcox1-Apr-04 5:35
bertcox1-Apr-04 5:35 
GeneralRe: save datagrid Pin
Heath Stewart1-Apr-04 5:56
protectorHeath Stewart1-Apr-04 5:56 
The DataSet doesn't have to be declared public if its in the same class as the code that's trying to access it. It can be private. Calling methods on the object is not affected by its access modifiers, only accessing the object is dictated by its access modifiers. So, if your button1_Click event handlers was in a different class and you tried to access a privately declared ds from another class, that would be a problem.

Access modifiers only have to do which whether or not objects can be access just within a class (private), by derivative classes (protected), by all classes (public), by classes defined in the same assembly (internal), and either derivative classes or classes defined in the same assembly (protected internal).

 

Microsoft MVP, Visual C#
My Articles
GeneralInterop Question. Again... Pin
DrGreen1-Apr-04 3:15
DrGreen1-Apr-04 3:15 
GeneralRe: Interop Question. Again... Pin
Dave Kreskowiak1-Apr-04 3:41
mveDave Kreskowiak1-Apr-04 3:41 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 3:57
DrGreen1-Apr-04 3:57 
GeneralRe: Interop Question. Again... Pin
Dave Kreskowiak1-Apr-04 4:11
mveDave Kreskowiak1-Apr-04 4:11 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 5:39
protectorHeath Stewart1-Apr-04 5:39 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:06
DrGreen1-Apr-04 6:06 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 6:23
protectorHeath Stewart1-Apr-04 6:23 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:33
DrGreen1-Apr-04 6:33 
GeneralRe: Interop Question. Again... Pin
leppie1-Apr-04 6:17
leppie1-Apr-04 6:17 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 6:30
protectorHeath Stewart1-Apr-04 6:30 
GeneralRe: Interop Question. Again... Pin
leppie1-Apr-04 6:10
leppie1-Apr-04 6:10 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:20
DrGreen1-Apr-04 6:20 
GeneralC# listbox, combobox trouble Pin
abidkayani11-Apr-04 2:49
abidkayani11-Apr-04 2:49 
GeneralC # problem (app block) Pin
abidkayani11-Apr-04 2:43
abidkayani11-Apr-04 2:43 
GeneralRe: C # problem (app block) Pin
Mazdak1-Apr-04 2:59
Mazdak1-Apr-04 2:59 
GeneralRe: C # problem (app block) Pin
abidkayani11-Apr-04 12:15
abidkayani11-Apr-04 12:15 
GeneralC# problem Pin
abidkayani11-Apr-04 2:41
abidkayani11-Apr-04 2:41 

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.