Click here to Skip to main content
15,885,767 members
Home / Discussions / C#
   

C#

 
QuestionGenerics? Pin
David Knechtges5-Nov-12 5:50
David Knechtges5-Nov-12 5:50 
AnswerRe: Generics? Pin
Alan Balkany5-Nov-12 5:53
Alan Balkany5-Nov-12 5:53 
AnswerRe: Generics? Pin
harold aptroot5-Nov-12 5:59
harold aptroot5-Nov-12 5:59 
AnswerRe: Generics? Pin
Matt T Heffron5-Nov-12 11:29
professionalMatt T Heffron5-Nov-12 11:29 
QuestionMy DataGridView - FirstDisplayedScrollingRowIndex Pin
Paramu19735-Nov-12 5:06
Paramu19735-Nov-12 5:06 
QuestionGetter Pin
C-P-User-35-Nov-12 2:49
C-P-User-35-Nov-12 2:49 
AnswerRe: Getter Pin
J4amieC5-Nov-12 3:01
J4amieC5-Nov-12 3:01 
GeneralRe: Getter Pin
C-P-User-35-Nov-12 4:30
C-P-User-35-Nov-12 4:30 
Thank you, for both the examples, and the description of how to find the answers on my own. I believe that I used a similar method for searching for the answers.

The first two examples left me saying "Duh"

The third example helped a little. I still don't have a clear definition in my head of just exactly what "Get" and "Set" are doing in terms of what byte goes where.

So, C# has this new way of setting values ? With the GET and SET thing ?

Please forgive my lack of vocabulary and nomenclature.

This is the way I had been thinking...

C#
private void Button1_Command_01_Click(object sender, EventArgs e)
{
    try
    {
        The_Action_For_Button1(The_Data_For_Button1);
        return;
    }

    catch (Exception ex)
    {
        MessageBox.Show(ex.ToString());
    }


But I'm off track with that kind of approach ?

What I'm after is an interface where the user clicks a button and the machine sends that command out the serial port. Currently, I'm trying to figure out how to arrange one method in one file to be visible to other methods in other files so that I can call the method from other methods in other files. (e.g., like subroutines in other languages)

C# has some sort of structure and rule system which is preventing me from doing that at this moment.

I'm still experimenting; will try the static word (suggested by another member in another thread earlier) in a few minutes from now.

modified 12-Nov-12 12:23pm.

GeneralRe: Getter Pin
Dave Kreskowiak5-Nov-12 4:43
mveDave Kreskowiak5-Nov-12 4:43 
GeneralRe: Getter Pin
J4amieC5-Nov-12 4:44
J4amieC5-Nov-12 4:44 
GeneralRe: Getter Pin
Pete O'Hanlon5-Nov-12 4:47
mvePete O'Hanlon5-Nov-12 4:47 
AnswerRe: Getter Pin
Abhinav S5-Nov-12 5:37
Abhinav S5-Nov-12 5:37 
GeneralRe: Getter Pin
C-P-User-35-Nov-12 7:18
C-P-User-35-Nov-12 7:18 
GeneralRe: Getter Pin
Pete O'Hanlon5-Nov-12 8:01
mvePete O'Hanlon5-Nov-12 8:01 
AnswerRe: Getter Pin
DaveyM695-Nov-12 8:06
professionalDaveyM695-Nov-12 8:06 
GeneralRe: Getter Pin
C-P-User-35-Nov-12 8:29
C-P-User-35-Nov-12 8:29 
GeneralRe: Getter Pin
DaveyM695-Nov-12 8:41
professionalDaveyM695-Nov-12 8:41 
GeneralRe: Getter Pin
Pete O'Hanlon5-Nov-12 8:45
mvePete O'Hanlon5-Nov-12 8:45 
QuestionFORMAT ASSEMBLY Pin
Member 91410335-Nov-12 2:01
Member 91410335-Nov-12 2:01 
AnswerRe: FORMAT ASSEMBLY Pin
Eddy Vluggen5-Nov-12 2:13
professionalEddy Vluggen5-Nov-12 2:13 
GeneralRe: FORMAT ASSEMBLY Pin
Member 91410335-Nov-12 2:23
Member 91410335-Nov-12 2:23 
GeneralRe: FORMAT ASSEMBLY Pin
Eddy Vluggen5-Nov-12 2:27
professionalEddy Vluggen5-Nov-12 2:27 
GeneralRe: FORMAT ASSEMBLY Pin
Member 91410335-Nov-12 2:29
Member 91410335-Nov-12 2:29 
QuestionRe: FORMAT ASSEMBLY Pin
Eddy Vluggen5-Nov-12 2:42
professionalEddy Vluggen5-Nov-12 2:42 
AnswerRe: FORMAT ASSEMBLY Pin
Member 91410335-Nov-12 3:15
Member 91410335-Nov-12 3:15 

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.