Click here to Skip to main content
16,010,650 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to store an object into a database? Pin
James T. Johnson5-Mar-02 10:06
James T. Johnson5-Mar-02 10:06 
AnswerRe: How to store an object into a database? Pin
James T. Johnson6-Mar-02 10:20
James T. Johnson6-Mar-02 10:20 
GeneralRe: How to store an object into a database? Pin
AndyG6-Mar-02 18:26
AndyG6-Mar-02 18:26 
Generalhelp in treeview needed Pin
4-Mar-02 22:38
suss4-Mar-02 22:38 
GeneralRe: help in treeview needed Pin
Anand Amirineni5-Mar-02 14:12
Anand Amirineni5-Mar-02 14:12 
QuestionHow to use SSL Pin
Felix Nielsen4-Mar-02 9:19
Felix Nielsen4-Mar-02 9:19 
QuestionHow to sublass visually a C# class Pin
4-Mar-02 6:03
suss4-Mar-02 6:03 
AnswerRe: How to sublass visually a C# class Pin
James T. Johnson4-Mar-02 14:12
James T. Johnson4-Mar-02 14:12 
You can't visually design a Control it -- by definition -- is only drawn via OnPaint and you wouldn't gain anything from visually designing because it isn't a container.

A UserControl is what you use if you want to visually design a new control. It is a container that contains other controls. Therefore a visual interface is a nice feature to use (almost required in some cases).

JerzyPeter wrote:
(btw, UserControl doesn't have Dock and BorderStyle properities).

It does have the Dock property since it inherits from Control; all Control's have the Dock property, BorderStyle doesn't exist though.

JerzyPeter wrote:
Btw: Why, depending where the cursor is positioned, I getting different interface for creating the class.

I think this is by design, this has been the case since Beta 2.

Hope I gave you some direction on what you should use for a new control.

If you want to create a class and not a control, create a new class via the the C# Class Wizard then in the class view you should be able to add methods, properties, fields, and indexers (accessing a class instance like an array).

James

Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978

GeneralRe: How to sublass visually a C# class Pin
5-Mar-02 3:19
suss5-Mar-02 3:19 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson5-Mar-02 7:37
James T. Johnson5-Mar-02 7:37 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 2:44
suss6-Mar-02 2:44 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 9:02
James T. Johnson6-Mar-02 9:02 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 10:59
suss6-Mar-02 10:59 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson6-Mar-02 12:42
James T. Johnson6-Mar-02 12:42 
GeneralRe: How to sublass visually a C# class Pin
7-Mar-02 3:31
suss7-Mar-02 3:31 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson7-Mar-02 6:06
James T. Johnson7-Mar-02 6:06 
QuestionAre ownerdrawn buttons available? Pin
4-Mar-02 3:53
suss4-Mar-02 3:53 
AnswerRe: Are ownerdrawn buttons available? Pin
James T. Johnson4-Mar-02 14:23
James T. Johnson4-Mar-02 14:23 
GeneralAccessing the shell Pin
4-Mar-02 1:51
suss4-Mar-02 1:51 
GeneralRe: Accessing the shell Pin
James T. Johnson4-Mar-02 14:30
James T. Johnson4-Mar-02 14:30 
GeneralRe: Accessing the shell Pin
4-Mar-02 21:19
suss4-Mar-02 21:19 
GeneralRe: Accessing the shell Pin
James T. Johnson4-Mar-02 22:13
James T. Johnson4-Mar-02 22:13 
GeneralRe: Accessing the shell Pin
5-Mar-02 1:37
suss5-Mar-02 1:37 
GeneralRe: Accessing the shell Pin
James T. Johnson5-Mar-02 8:21
James T. Johnson5-Mar-02 8:21 
GeneralRe: Accessing the shell Pin
5-Mar-02 20:57
suss5-Mar-02 20:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.