Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: setup distribution without .NET framework Pin
Dave Kreskowiak9-Apr-05 5:33
mveDave Kreskowiak9-Apr-05 5:33 
Generaldialing and answer telephone Pin
mehdipg8-Apr-05 17:45
mehdipg8-Apr-05 17:45 
GeneralRe: dialing and answer telephone Pin
Dave Kreskowiak9-Apr-05 5:22
mveDave Kreskowiak9-Apr-05 5:22 
Generallate binding - mscorlib error Pin
abandito8-Apr-05 13:11
abandito8-Apr-05 13:11 
GeneralQuick listbox question. Pin
AndriMar8-Apr-05 12:00
AndriMar8-Apr-05 12:00 
GeneralRe: Quick listbox question. Pin
leppie8-Apr-05 20:21
leppie8-Apr-05 20:21 
GeneralWebBrowser Navigate Pin
Member 6282798-Apr-05 11:59
Member 6282798-Apr-05 11:59 
GeneralTwo Logical Problems With DOTNET Prog. Pin
zaigham_chaudhry8-Apr-05 10:21
zaigham_chaudhry8-Apr-05 10:21 
Hi there:

I strongly beleive there is a strange logical problem with the overall docking behavior of the dotnet controls. What a developer needs is that what control he docks first, gets docked first regardless of in what order the controls were added to the container. But dotnet IDE docks the controls in a specific order that somehow depends upon in what order the controls were added to the container. The worst is dotnet doesn't explains what is that specific order. Let me xplain the problem by an xample:

1) In any form, add a panel.
2) Create 2 label controls on the form called label1 and label2.
3) Drag label1 to the panel.
4) Drag label2 to the panel.
5) Set the Dock property of both to bottom.
6) Doesn't matter, in what order u perform the step 5, label2 will always be at the bottommost position.


Now repeat the same procedure as above, but change the following steps.
2) Create 2 label controls directly on the panel called label1 and label2.
6) Doesn't matter, in what order u perform the step 5, label1 will always be at the bottommost position.


SO u can clearly see that docking behavior is changed in both cases. In step6 of first one, label2 will always be docked at the bottommost position, while in 2nd case, label1 will always be docked at the bottommost position. Is this behavior justified and can developers rely on this type of uncertain behavior. Plz. comment on that.


The practical problem, i'm facing due to this uncertain and unjustified behavior is that:
1) I have made a custom container control, which has a label(acting as a caption). This label must always be docked to the topmost position in this control, so i have set Dock=Top for this label.
2) But due to dotnet docking behavior, when a user adds another control to this custom container and sets the dock property of that control to top, it gets docked at the topmost position and the caption label gets one level down, while it is not expected to change the position inside the control.

Is there another solution available, so that my label always stays at the topmost docking position.


There is anoher issue, at which i need ur comments, although i'm not sure whether its really an issue or not. The issue is based on the basic OOP principle of Composition. In original C++ or Java, when ur class(say ClassA is composed of two or more classes(assume its two classes named ClassP, ClassQ), then none of the classes ClassP or ClassQ is supposed to lose any of its functionality in any way when contained within ClassA. But in dotnet it happens. How?

1) Start a new Cutom Control Project.
2) To ur custom control add a label, that is supposed to act as a caption. Dock it to top.
3) Add a panel to ur custom control and Dock it to "Fill".
4) Build the project.
5) Add a new windows application project as the testing project to ur solution and to the form in that project,add an instance of ur custom control.
6) Run the project and u see the panel has lost its functionality as a container.Y??

In answer u may tell me that if i want my custom control to be a container, i should inherit it from ContainerControl Class. But no, the whole of the control is not supposed to be a container in my case, only the area that contains the panel, need to act as a container. So while talking about the basic Composition principles of OOP, the ClassP and ClassQ should not lose their functionality, but in dotnet panel loses its main functionality as a container.

If u feel these are the problems, plz. tell me how can i notify microsoft about that so that they corret these bugs in their next .net release.

PLZ. HELP ME OUT
ZAM
Questionhow to create a XP style ToolBar? Pin
sssa20008-Apr-05 10:17
sssa20008-Apr-05 10:17 
AnswerRe: how to create a XP style ToolBar? Pin
afinnell8-Apr-05 14:25
afinnell8-Apr-05 14:25 
GeneralSource Control in VS.net Pin
rt78-Apr-05 7:16
rt78-Apr-05 7:16 
GeneralVS 2005 Express (is it safe?) Pin
Anonymous8-Apr-05 6:02
Anonymous8-Apr-05 6:02 
GeneralRe: VS 2005 Express (is it safe?) Pin
Judah Gabriel Himango8-Apr-05 7:05
sponsorJudah Gabriel Himango8-Apr-05 7:05 
GeneralRe: VS 2005 Express (is it safe?) Pin
Anonymous8-Apr-05 10:22
Anonymous8-Apr-05 10:22 
GeneralForms.Timer Problem Pin
Apusnaias8-Apr-05 5:44
Apusnaias8-Apr-05 5:44 
GeneralRe: Forms.Timer Problem Pin
hooray8-Apr-05 7:14
hooray8-Apr-05 7:14 
GeneralRe: Forms.Timer Problem Pin
Apusnaias8-Apr-05 8:45
Apusnaias8-Apr-05 8:45 
GeneralXML verus Traditional Files Pin
felopater8-Apr-05 5:28
felopater8-Apr-05 5:28 
GeneralRe: XML verus Traditional Files Pin
Judah Gabriel Himango8-Apr-05 7:08
sponsorJudah Gabriel Himango8-Apr-05 7:08 
GeneralRe: XML verus Traditional Files Pin
Steven Campbell8-Apr-05 10:10
Steven Campbell8-Apr-05 10:10 
GeneralRe: XML verus Traditional Files Pin
DavidNohejl8-Apr-05 10:56
DavidNohejl8-Apr-05 10:56 
QuestionHow to use non .NET DLLs in .NET environment? Pin
Khang Nguyen8-Apr-05 5:26
Khang Nguyen8-Apr-05 5:26 
AnswerRe: How to use non .NET DLLs in .NET environment? Pin
DavidNohejl8-Apr-05 5:42
DavidNohejl8-Apr-05 5:42 
GeneralRe: How to use non .NET DLLs in .NET environment? Pin
Khang Nguyen8-Apr-05 6:29
Khang Nguyen8-Apr-05 6:29 
QuestionHow do i associate file extensions to app's in the registry? Pin
Anthony Mushrow8-Apr-05 4:30
professionalAnthony Mushrow8-Apr-05 4:30 

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.