This forum is in archive mode. You will not be able to post new content.

Author Topic: How to develop my own .NET controls?  (Read 1586 times)

0 Members and 1 Guest are viewing this topic.

Offline Unbr0ken

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 1
    • View Profile
How to develop my own .NET controls?
« on: December 21, 2011, 06:37:07 AM »
I've been struggling for a long time with basic controls that Windows Forms offers to developers, but... right now, I am developing an application that requires more advanced control than normal "TextBox".

Since, at this time, my application is about memory management, I have to show in the form, the process memory in bytes (or other type of data) to the user, giving it the ability to modify it as he wants.

The problem comes here, because... if I show the data in a TextBox, it only allow me to display the data in read-only text because if I let the user modify the textbox directly, it will be very messy and unaesthetic.

I was reviewing some projects on SourceForge about C# and the handling of hexadecimal data, and i found a good project, called Be.HexEditor, which has a control developed and designed by its creators, but in GDI+.

The control is called HexBox, and that's just what I need to get.

Do any of you know how to develop a control like this?... I would greatly facilitate things. What kind of manuals/books should I read to learn this kind of development? I ask this because I ignore everything about GDI+.

Or... is there other way for do it?

Thx4Read.
« Last Edit: December 21, 2011, 06:40:00 AM by Unbr0ken »
[C] -> [C++] -> [C#]

Forgive
     To

 Forget

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: How to develop my own .NET controls?
« Reply #1 on: December 23, 2011, 12:24:01 AM »
Create a list/select box and then when you select it the data get transfered to an textbox so you can edit it and the save it?
~Factionwars

Offline Unbr0ken

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 1
    • View Profile
Re: How to develop my own .NET controls?
« Reply #2 on: December 23, 2011, 01:35:09 AM »
Create a list/select box and then when you select it the data get transfered to an textbox so you can edit it and the save it?

Hmm, not very aesthetic and/or orthodox. Thanks anyways, StackOverflow helped me. I've to study the GDI+ first.
« Last Edit: December 23, 2011, 01:35:33 AM by Unbr0ken »
[C] -> [C++] -> [C#]

Forgive
     To

 Forget

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.