Click here to Skip to main content
15,922,533 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generaldatagirds and tablestyles Pin
FastFriedMonkey8-Apr-05 15:52
FastFriedMonkey8-Apr-05 15:52 
GeneralRe: datagirds and tablestyles Pin
Dave Kreskowiak9-Apr-05 4:54
mveDave Kreskowiak9-Apr-05 4:54 
GeneralSystem.Reflection Error. Parameter count mismatch. Pin
mcupryk8-Apr-05 13:57
mcupryk8-Apr-05 13:57 
GeneralRe: System.Reflection Error. Parameter count mismatch. Pin
Dave Kreskowiak9-Apr-05 4:50
mveDave Kreskowiak9-Apr-05 4:50 
GeneralJavascript in VB Pin
VB .NET Newbie8-Apr-05 11:24
sussVB .NET Newbie8-Apr-05 11:24 
GeneralRe: Javascript in VB Pin
Anonymous8-Apr-05 12:51
Anonymous8-Apr-05 12:51 
GeneralRe: Javascript in VB Pin
Anonymous8-Apr-05 12:53
Anonymous8-Apr-05 12:53 
GeneralTwo Logical Problems With DOTNET prog. Pin
zaigham_chaudhry8-Apr-05 10:24
zaigham_chaudhry8-Apr-05 10:24 
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
GeneralInsert BLOB Field with ADO Pin
shinay8-Apr-05 9:37
shinay8-Apr-05 9:37 
GeneralClean up unused Icons in system tray Pin
yuancn8-Apr-05 7:42
yuancn8-Apr-05 7:42 
GeneralRe: Clean up unused Icons in system tray Pin
Anonymous8-Apr-05 9:18
Anonymous8-Apr-05 9:18 
GeneralWho's a begginer, cause i am. Pin
SWillard8-Apr-05 5:51
SWillard8-Apr-05 5:51 
GeneralRe: Who's a begginer, cause i am. Pin
Daniel Turini8-Apr-05 6:11
Daniel Turini8-Apr-05 6:11 
GeneralRe: Who's a begginer, cause i am. Pin
GizzoF8-Apr-05 6:14
GizzoF8-Apr-05 6:14 
GeneralRe: Who's a begginer, cause i am. Pin
vertig07308-Apr-05 6:15
vertig07308-Apr-05 6:15 
GeneralRe: Who's a begginer, cause i am. Pin
Daniel Turini8-Apr-05 6:23
Daniel Turini8-Apr-05 6:23 
GeneralRe: Who's a begginer, cause i am. Pin
rwestgraham8-Apr-05 12:37
rwestgraham8-Apr-05 12:37 
GeneralRe: Who's a begginer, cause i am. Pin
Mitch F.8-Apr-05 10:51
Mitch F.8-Apr-05 10:51 
GeneralRe: Who's a begginer, cause i am. Pin
Mitch F.8-Apr-05 10:54
Mitch F.8-Apr-05 10:54 
GeneralRe: Who's a begginer, cause i am. Pin
jtart210-Apr-05 12:32
jtart210-Apr-05 12:32 
Generalvb concept Pin
feeha8-Apr-05 4:55
feeha8-Apr-05 4:55 
GeneralRe: vb concept Pin
vertig07308-Apr-05 5:30
vertig07308-Apr-05 5:30 
GeneralRe: vb concept Pin
GizzoF8-Apr-05 5:40
GizzoF8-Apr-05 5:40 
GeneralWindows Service Pin
H@is@here8-Apr-05 4:41
H@is@here8-Apr-05 4:41 
GeneralRe: Windows Service Pin
Dave Kreskowiak8-Apr-05 4:51
mveDave Kreskowiak8-Apr-05 4:51 

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.