J
Jim
I'm a little new to the C# way of doing thisgs... Although
I've done this sort of thing before in VS 6 / MFC...
creatnig controls, ActiveX controls, etc. Creating
controls in MFC is pretty straightforward and dare I say
intuitive? (well, as intuitive as you can get w/ MFC.)
Anyhow, I am wanting to create some controls of my own w/
C#. I'm not quite sure where to start though. I created
a Windows Control library project, and I get
a "Usercontrol1.cs" file / designer, now what? I tried
changing the class to inherit from a Textbox insted of a
UserControl, and my designer wouldnt' render the image
anymore, althuogh a text box did show up in my test
container, but now I'm a little stuck...
With MFC, I had a source listing of the base class so I
could tell what things I needed to override. I don't have
that in C#, and some of the functions (like OnDraw())
dont' seem to be the same, so I don't knwo where to go
from here.
What I want to create, for now at least, is just a simple
text box control for entering an IP address. I have
another post out abuot this subject, abuot the IP adderss
control that is already in Windows (somewhere) but in this
case, I want to create the control just for the practice
of doing it in C#. I am trying to get up to speed on this
now that I'll be working with it. Thanks!
JIM
I've done this sort of thing before in VS 6 / MFC...
creatnig controls, ActiveX controls, etc. Creating
controls in MFC is pretty straightforward and dare I say
intuitive? (well, as intuitive as you can get w/ MFC.)
Anyhow, I am wanting to create some controls of my own w/
C#. I'm not quite sure where to start though. I created
a Windows Control library project, and I get
a "Usercontrol1.cs" file / designer, now what? I tried
changing the class to inherit from a Textbox insted of a
UserControl, and my designer wouldnt' render the image
anymore, althuogh a text box did show up in my test
container, but now I'm a little stuck...
With MFC, I had a source listing of the base class so I
could tell what things I needed to override. I don't have
that in C#, and some of the functions (like OnDraw())
dont' seem to be the same, so I don't knwo where to go
from here.
What I want to create, for now at least, is just a simple
text box control for entering an IP address. I have
another post out abuot this subject, abuot the IP adderss
control that is already in Windows (somewhere) but in this
case, I want to create the control just for the practice
of doing it in C#. I am trying to get up to speed on this
now that I'll be working with it. Thanks!
JIM