Results 1 to 3 of 3

Thread: C# operator...

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Location
    Denmark
    Posts
    67

    C# operator...

    Code:
            private void Form1_MouseClick(object sender, MouseEventArgs e)
            {
                label1.Text = "x:" && MousePosition.X.ToString();
            }
    i get an error saying that Error, Operator '&&' cannot be applied to operands of type 'string' and 'string'

    I know that in VB.net i can just type "string" & something.text & "string"
    what am i doing wrong in C# ?

    how can i get the "x:" and the mouseposition to stand on one line ? :S
    Last edited by RoflJOE; Nov 14th, 2006 at 07:16 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width