Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 516497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:44:14+00:00 2026-05-13T07:44:14+00:00

I have a C# application which consists of 3 forms: 1: Battleship Game GUI

  • 0

I have a C# application which consists of 3 forms:

1: Battleship Game GUI
2: Network GUI (does client/server connections)
3: Chat GUI

Form 1 is loaded first. When the user selects setup network, Form 2 is displayed.

Chats are displayed when the user opts to send a chat or when a chat is received.

I would like Form 2 to process all the messages and pass on the relevant messages to the relevant GUI to decode the message further.

I’m still at an early stage of development. At the moment I am trying to use delegates to communicate between the forms.

Is this the best way of doing this? What are the best practices regarding components of an application sending messages to each other?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:44:15+00:00Added an answer on May 13, 2026 at 7:44 am

    ikurts, this is definitely not good practice. Your UIs, however many there are, should have absolutely nothing to do with communications. You should:

    • read up on model/view/controller in .Net to see a good way of structuring a project like yours
    • read up on using threading for your communications, ought to be simple

    It sounds like you want to follow best practices in setting up your app. You’re gonna get a lot of feedback on this question i think and all of it will sound something like this. Do yourself a favor and follow it. And stay away from comm logic in forms!!!

    A few more thoughts:

    i’m not sure why you want to break this up into three screens when two seem logical: 1) network settings dialog 2) game play dialog that could accommodate both the battleship UI and your chat UI. This configuration would also simplify your structure since only one screen, the gameplay/chat screen would need to be updated. The settings dialog would be just that.

    Here is an example of a threaded chat application on CodeProject which would server well as a code base to get started. i imagine that your battleship moves would simply be “special” chat messages that specify board hits.

    Also, here’s an example of a network enabled tic tac toe game that may yield clues as to developing a client/sever game.

    Don’t shy away from what seems difficult! My suggestion is to first write a chat/communication client which has no UI, perhaps just console output. Then add a screen and you’ll see that you won’t have to marry the window to the network stuff.

    Good luck!

    More links:

    Here’s a nice discussion about MVC/MVP that may enlighten your architecture.
    And here’s another… From a different angle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a mini-project which consists of doing a client-server chat application.
I have a facebook application that consists of a form which values i want
I have a solution which consists, to put it simply, a Windows Forms Application
We have a database server application which consists of the followings components: 1) A
I have a c# .net 2.0 winforms application which consists basically of one form
I have a windows form application which consists of a bunch of controls, but
I have a Java application that consists of a client and a server. The
I have a server which consists of several Zend Framework application. I want to
I have an application which consists of 2 pages. One of those pages generates
Currently, I have an Application which consists of a BasePage which as a header

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.