4 Replies - 972 Views - Last Post: 24 December 2015 - 12:57 PM Rate Topic: -----

#1 Jimbo7136   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 43
  • Joined: 01-July 12

C# Application using Windows forms

Posted 24 December 2015 - 06:25 AM

I'm making a simple chat app in C#/Visual Studio as an exercise.

I wonder what control would be best for the chat window?

It needs to be something that can handle multiple lines of text like most chat/IM apps, ie what user sent, what was received from the other party in the conversation.

I could try googling/reading on windows controls, but it seems like something more experienced users might have some insight into, and is kind of crucial to the design of the app, I think.

Is This A Good Question/Topic? 0
  • +

Replies To: C# Application using Windows forms

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15478
  • View blog
  • Posts: 62,012
  • Joined: 12-June 08

Re: C# Application using Windows forms

Posted 24 December 2015 - 06:36 AM

What is wrong with w multiline text box?
Was This Post Helpful? 0
  • +
  • -

#3 Jimbo7136   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 43
  • Joined: 01-July 12

Re: C# Application using Windows forms

Posted 24 December 2015 - 06:43 AM

Nothing. In fact I first intended to use one, but it seems the control for textbox is single line? I thought I must need a different control.

--Edit-- Doh! There's an option to make it multiline. I feel silly now, lol.

This post has been edited by Jimbo7136: 24 December 2015 - 06:45 AM

Was This Post Helpful? 0
  • +
  • -

#4 Curtis Rutland   User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 5106
  • View blog
  • Posts: 9,283
  • Joined: 08-June 10

Re: C# Application using Windows forms

Posted 24 December 2015 - 11:10 AM

TextBox is going to be your absolute most basic. You can disable it so that the user can't modify the text you put in there, but you can't do any kind of formatting at all, other than just space-separating things.

In other words, it's a good starting point; a good simple way to prototype your application. But realistically you want something formattable and not editable.

So, I have one major suggestion for you: Start this project in WPF and not Windows Forms. If you're learning, you might as well learn what's current, and not what's past. And there are several constructs that will make a rich chat window more easy to make (though the learning curve on WPF is somewhat steep, that said I'm obviously recommending it).
Was This Post Helpful? 1
  • +
  • -

#5 Jimbo7136   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 43
  • Joined: 01-July 12

Re: C# Application using Windows forms

Posted 24 December 2015 - 12:57 PM

@Curtis Rutland Thanks for the advice.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1