Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
GeneralDetermining if class is subclass Pin
gantww16-Feb-05 15:42
gantww16-Feb-05 15:42 
GeneralRe: Determining if class is subclass Pin
S. Senthil Kumar16-Feb-05 15:44
S. Senthil Kumar16-Feb-05 15:44 
GeneralRe: Determining if class is subclass Pin
gantww16-Feb-05 15:48
gantww16-Feb-05 15:48 
GeneralRe: Determining if class is subclass Pin
gantww16-Feb-05 16:05
gantww16-Feb-05 16:05 
QuestionHow to draw a fading Ellipse Pin
cchere16-Feb-05 15:08
cchere16-Feb-05 15:08 
AnswerRe: How to draw a fading Ellipse Pin
Magadass16-Feb-05 16:05
Magadass16-Feb-05 16:05 
GeneralRe: How to draw a fading Ellipse Pin
cchere17-Feb-05 3:10
cchere17-Feb-05 3:10 
Questioninaccessible due to its protection level ??? Pin
Radgar16-Feb-05 14:17
Radgar16-Feb-05 14:17 
The error is: 'Class1.frmAccount.txtOwnerName' is inaccessible due to its protection level.

<br />
public void ShowAddAccount(string Name)<br />
{<br />
frmAccount frmA = new Class1.frmAccount();<br />
frmA.txtOwnerName.text = Name;   // This is the line that causes the error<br />
frmA.ShowDialog();<br />
}<br />


When I change "private System.Windows.Forms.TextBox txtOwnerName;" to public in frmAccount then it says "'System.Windows.Forms.Control.text' is inaccessible due to its protection level"

I know this is a logical mistake but I still need help. Thanks in advance.


Radgar
"Imagination is more important than knowledge." - Albert Einstein
AnswerRe: inaccessible due to its protection level ??? Pin
Christian Graus16-Feb-05 14:25
protectorChristian Graus16-Feb-05 14:25 
GeneralRe: inaccessible due to its protection level ??? Pin
Radgar16-Feb-05 14:27
Radgar16-Feb-05 14:27 
QuestionOpen a Project, then close another one?? Pin
luckyShek16-Feb-05 13:43
luckyShek16-Feb-05 13:43 
AnswerRe: Open a Project, then close another one?? Pin
Christian Graus16-Feb-05 14:13
protectorChristian Graus16-Feb-05 14:13 
QuestionRenaming .exe file to .dll file ??? Pin
luckyShek16-Feb-05 13:26
luckyShek16-Feb-05 13:26 
AnswerRe: Renaming .exe file to .dll file ??? Pin
Christian Graus16-Feb-05 13:38
protectorChristian Graus16-Feb-05 13:38 
GeneralRe: Renaming .exe file to .dll file ??? Pin
luckyShek16-Feb-05 13:43
luckyShek16-Feb-05 13:43 
AnswerRe: Renaming .exe file to .dll file ??? Pin
leppie16-Feb-05 21:41
leppie16-Feb-05 21:41 
AnswerRe: Renaming .exe file to .dll file ??? Pin
Heath Stewart16-Feb-05 21:50
protectorHeath Stewart16-Feb-05 21:50 
QuestionPossible to do assignability checking during runtime? Pin
Kelvin Goh16-Feb-05 13:07
Kelvin Goh16-Feb-05 13:07 
AnswerRe: Possible to do assignability checking during runtime? Pin
Christian Graus16-Feb-05 13:31
protectorChristian Graus16-Feb-05 13:31 
AnswerRe: Possible to do assignability checking during runtime? Pin
S. Senthil Kumar16-Feb-05 15:52
S. Senthil Kumar16-Feb-05 15:52 
QuestionHow do i make a mouse's focus fall through a form to whatever is below Pin
FocusedWolf16-Feb-05 11:57
FocusedWolf16-Feb-05 11:57 
AnswerRe: How do i make a mouse's focus fall through a form to whatever is below Pin
Christian Graus16-Feb-05 13:40
protectorChristian Graus16-Feb-05 13:40 
GeneralRe: How do i make a mouse's focus fall through a form to whatever is below Pin
Luis Alonso Ramos16-Feb-05 19:09
Luis Alonso Ramos16-Feb-05 19:09 
GeneralRe: How do i make a mouse's focus fall through a form to whatever is below Pin
FocusedWolf17-Feb-05 5:29
FocusedWolf17-Feb-05 5:29 
GeneralWeb controls - newb question Pin
Esmo200016-Feb-05 10:31
Esmo200016-Feb-05 10:31 

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.