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
  1. Home
  2. General Programming
  3. Visual Basic
  4. vb.net chat application

vb.net chat application

Scheduled Pinned Locked Moved Visual Basic
databasecsharpsql-serversysadmin
17 Posts 5 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.
  • A Alaa Dael

    hi can any one help plz i have application in vb.net and sql server 2005 db, many users can login by using there Username and password, I need to add a form for chatting any user login to the program his name show in that for so any one can chat with hem. I hop i clear my need SO PLEASE HELP ME THANKS SO MACH :^)

    D Offline
    D Offline
    David Mujica
    wrote on last edited by
    #8

    This sounds like a homework assignment. Try something like this ... Create a message table with timestamp, usernameTo, UserNameFrom, Status (Read/Unread), MessageText. When someone sends a message, you insert a record into this table. You would have to create a client application which checks to see if a message is pending for your current user and retrieve it from the db and display it in a chat window. The other guys who replied are correct, you need to investigate TCP/IP chatting otherwise your client application will be constantly polling the db for new messages. However, i think this basic design will get you through your homework assignment.

    A 1 Reply Last reply
    0
    • D Dave Kreskowiak

      Member 4048188 wrote:

      i get nothing except tcp\ip chating

      So how do you epect the messages to get across the Internet?? Carrier Pigeon?

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      A Offline
      A Offline
      Alaa Dael
      wrote on last edited by
      #9

      not necessary across the internet , its between users , that users use my application in local lan Example an accounting program in a company any user can send message to other user use the application i hop the issue is clear now thanks

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Member 4048188 wrote:

        i get nothing except tcp\ip chating

        So how do you epect the messages to get across the Internet?? Carrier Pigeon?

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        A Offline
        A Offline
        Alaa Dael
        wrote on last edited by
        #10

        not necessary across the internet , its between users , that users use my application in local lan Example an accounting program in a company any user can send message to other user use the application
        i hop the issue is clear now
        thanks

        1 Reply Last reply
        0
        • D David Mujica

          This sounds like a homework assignment. Try something like this ... Create a message table with timestamp, usernameTo, UserNameFrom, Status (Read/Unread), MessageText. When someone sends a message, you insert a record into this table. You would have to create a client application which checks to see if a message is pending for your current user and retrieve it from the db and display it in a chat window. The other guys who replied are correct, you need to investigate TCP/IP chatting otherwise your client application will be constantly polling the db for new messages. However, i think this basic design will get you through your homework assignment.

          A Offline
          A Offline
          Alaa Dael
          wrote on last edited by
          #11

          i well try i think this idea is fine thanks

          1 Reply Last reply
          0
          • A Alaa Dael

            not necessary across the internet , its between users , that users use my application in local lan Example an accounting program in a company any user can send message to other user use the application i hop the issue is clear now thanks

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #12

            Well, you did say in your original post "I hope I was clear". Nope. If you mention chat, everyone immediately thinks two remote machines over an IP network.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            A 1 Reply Last reply
            0
            • D Dave Kreskowiak

              Well, you did say in your original post "I hope I was clear". Nope. If you mention chat, everyone immediately thinks two remote machines over an IP network.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak

              A Offline
              A Offline
              Alaa Dael
              wrote on last edited by
              #13

              yes its not between 2 machines its between users thanks to you Dave

              D 1 Reply Last reply
              0
              • A Alaa Dael

                yes its not between 2 machines its between users thanks to you Dave

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #14

                That makes no sense. If it's not between machines and is instead between two users, couldn't they just turn their heads and talk to each other?? Of course it's between two machines!

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak

                A 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  That makes no sense. If it's not between machines and is instead between two users, couldn't they just turn their heads and talk to each other?? Of course it's between two machines!

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak

                  A Offline
                  A Offline
                  Alaa Dael
                  wrote on last edited by
                  #15

                  Of course it's between two machines when i mean two user that means two users use same accounting application, and that users one in department of company and other from another department "again same application on two machines and single DB 'SQL Server" thanks anyway Dave

                  D 1 Reply Last reply
                  0
                  • A Alaa Dael

                    Of course it's between two machines when i mean two user that means two users use same accounting application, and that users one in department of company and other from another department "again same application on two machines and single DB 'SQL Server" thanks anyway Dave

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #16

                    In a world where email is ubiquitous and, almost so, a corporate instant messaging system, is there really a need for this?? I think your application is trying to solve to entirely seperate and unrelated problems that do not need to be in a single application.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak

                    1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      Member 4048188 wrote:

                      i get nothing except tcp\ip chating

                      So how do you epect the messages to get across the Internet?? Carrier Pigeon?

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak

                      _ Offline
                      _ Offline
                      _obi_
                      wrote on last edited by
                      #17

                      Dave Kreskowiak wrote:

                      Carrier Pigeon?

                      You think that is safe? :rolleyes: -obi-

                      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