Click here to Skip to main content
16,019,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: Making Serial Port Visible Pin
C-P-User-330-Oct-12 12:33
C-P-User-330-Oct-12 12:33 
GeneralRe: Making Serial Port Visible Pin
C-P-User-330-Oct-12 13:09
C-P-User-330-Oct-12 13:09 
GeneralRe: Making Serial Port Visible Pin
Big Daddy Farang30-Oct-12 13:42
Big Daddy Farang30-Oct-12 13:42 
GeneralRe: Making Serial Port Visible Pin
C-P-User-331-Oct-12 4:43
C-P-User-331-Oct-12 4:43 
GeneralRe: Making Serial Port Visible Pin
Pete O'Hanlon31-Oct-12 5:02
mvePete O'Hanlon31-Oct-12 5:02 
GeneralRe: Making Serial Port Visible Pin
C-P-User-32-Nov-12 6:47
C-P-User-32-Nov-12 6:47 
GeneralRe: Making Serial Port Visible Pin
Big Daddy Farang31-Oct-12 5:38
Big Daddy Farang31-Oct-12 5:38 
GeneralRe: Making Serial Port Visible Pin
C-P-User-331-Oct-12 6:56
C-P-User-331-Oct-12 6:56 
I tried to declare this public in one method...
C#
public string ThePortName = "";

...but then no other method could see it.

When I moved it way up to the top along with the first ints just after the class was named, like this...

C#
public partial class Form1 : Form
{

    :
    :
    :
    public string ThePortName;
    :

public Form1()
{



...then everybody could see it.

There is, as I understand it, only one class in this practice app; so there are probably things that I need to increase in my understanding about this.

Again, NewBee NoClue here, flying high.
GeneralRe: Making Serial Port Visible Pin
C-P-User-331-Oct-12 7:02
C-P-User-331-Oct-12 7:02 
GeneralRe: Making Serial Port Visible Pin
David Knechtges31-Oct-12 7:16
David Knechtges31-Oct-12 7:16 
GeneralRe: Making Serial Port Visible Pin
C-P-User-331-Oct-12 7:39
C-P-User-331-Oct-12 7:39 
GeneralRe: Making Serial Port Visible Pin
Big Daddy Farang31-Oct-12 8:26
Big Daddy Farang31-Oct-12 8:26 
GeneralRe: Making Serial Port Visible Pin
C-P-User-32-Nov-12 7:52
C-P-User-32-Nov-12 7:52 
GeneralRe: Making Serial Port Visible Pin
C-P-User-331-Oct-12 8:09
C-P-User-331-Oct-12 8:09 
GeneralRe: Making Serial Port Visible Pin
Big Daddy Farang31-Oct-12 8:37
Big Daddy Farang31-Oct-12 8:37 
GeneralRe: Making Serial Port Visible Pin
C-P-User-331-Oct-12 10:29
C-P-User-331-Oct-12 10:29 
GeneralRe: Making Serial Port Visible Pin
C-P-User-32-Nov-12 6:58
C-P-User-32-Nov-12 6:58 
QuestionC# acess user roles Pin
classy_dog30-Oct-12 9:16
classy_dog30-Oct-12 9:16 
AnswerRe: C# acess user roles Pin
Pete O'Hanlon30-Oct-12 10:29
mvePete O'Hanlon30-Oct-12 10:29 
QuestionWPF - beginner Pin
Nitin S30-Oct-12 1:14
Nitin S30-Oct-12 1:14 
AnswerRe: WPF - beginner Pin
V.30-Oct-12 1:22
professionalV.30-Oct-12 1:22 
AnswerRe: WPF - beginner Pin
Abhinav S30-Oct-12 6:31
Abhinav S30-Oct-12 6:31 
Question"Attempted to read or write protected memory." why am i getting this exception. Pin
Member 943048330-Oct-12 0:37
Member 943048330-Oct-12 0:37 
AnswerRe: "Attempted to read or write protected memory." why am i getting this exception. Pin
Richard MacCutchan30-Oct-12 0:49
mveRichard MacCutchan30-Oct-12 0:49 
AnswerRe: "Attempted to read or write protected memory." why am i getting this exception. Pin
David Knechtges30-Oct-12 2:59
David Knechtges30-Oct-12 2:59 

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.