Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. display message in c#

display message in c#

Scheduled Pinned Locked Moved C#
csharptutorialquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sajjad Leo
    wrote on last edited by
    #1

    Dear All, I am working in c sharp i am new with c# i am facing very basic problems i need to ask please tell me how i can use message to display any this if true or false i mean to say just guide me is their any class required to import in c# and then message can be display easily or no class or names peace required for using message in c sharp language please send me code of display message and also guide me what to do? Thanx Sajjad Ali

    C S 2 Replies Last reply
    0
    • S Sajjad Leo

      Dear All, I am working in c sharp i am new with c# i am facing very basic problems i need to ask please tell me how i can use message to display any this if true or false i mean to say just guide me is their any class required to import in c# and then message can be display easily or no class or names peace required for using message in c sharp language please send me code of display message and also guide me what to do? Thanx Sajjad Ali

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Gosh - that was one sentence ? If you're doing a windows project, then MessageBox.Show("This is my message") is the easiest way to get a message on screen. If you're new, you should probably start with console apps. Console.WriteLine("hello world"); will work here. Note, your console app needs to end with Console.ReadLine() so it will stop long enough for you to read the output.

      Christian Graus Driven to the arms of OSX by Vista.

      S 1 Reply Last reply
      0
      • S Sajjad Leo

        Dear All, I am working in c sharp i am new with c# i am facing very basic problems i need to ask please tell me how i can use message to display any this if true or false i mean to say just guide me is their any class required to import in c# and then message can be display easily or no class or names peace required for using message in c sharp language please send me code of display message and also guide me what to do? Thanx Sajjad Ali

        S Offline
        S Offline
        shiyulun1984
        wrote on last edited by
        #3

        sorry,I don't understand your meaning!:confused:

        C 1 Reply Last reply
        0
        • S shiyulun1984

          sorry,I don't understand your meaning!:confused:

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Why bother to post that when I already answered him ?

          Christian Graus Driven to the arms of OSX by Vista.

          B 1 Reply Last reply
          0
          • C Christian Graus

            Gosh - that was one sentence ? If you're doing a windows project, then MessageBox.Show("This is my message") is the easiest way to get a message on screen. If you're new, you should probably start with console apps. Console.WriteLine("hello world"); will work here. Note, your console app needs to end with Console.ReadLine() so it will stop long enough for you to read the output.

            Christian Graus Driven to the arms of OSX by Vista.

            S Offline
            S Offline
            Sajjad Leo
            wrote on last edited by
            #5

            dear i am using web application but when i am typing for message intelisence window does not showing me MessageBox.Show why i also worked in vb.net application but this is very different what should i say please send me with detail what should i do.

            C 1 Reply Last reply
            0
            • S Sajjad Leo

              dear i am using web application but when i am typing for message intelisence window does not showing me MessageBox.Show why i also worked in vb.net application but this is very different what should i say please send me with detail what should i do.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              OK, well, you should have said 1 - you should learn your language BEFORE learning ASP.NET. 2 - in ASP.NET you show messages using javascript, so alert("this is the message"), in a script block. But, I really think you should learn VB before ASP.NET and javascript.

              Christian Graus Driven to the arms of OSX by Vista.

              1 Reply Last reply
              0
              • C Christian Graus

                Why bother to post that when I already answered him ?

                Christian Graus Driven to the arms of OSX by Vista.

                B Offline
                B Offline
                Bino B
                wrote on last edited by
                #7

                void JSAlert(string strMessage) { this.Page.RegisterClientScriptBlock("","<script type='text/javascript'>window.onload = function(){alert('"+ strMessage +"')}</script>"); } and call this method wherever u need with the message as parameter.

                Cheers Bino www.codepal.co.in

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups