|
I just edited my post and included the sample usage code that I thought I put in there last night.
To verify that this code should work, I copied and pasted from my post into VS2010 Express and it all ran fine.
Like I said above, maybe you made a typo in your attempt.
|
|
|
|
|
A docking pane is set to AutoHidePortion and permitted docking is DockLeft with AllowEndUserDocking = False
The design width of the form is 200px and the initialisation command is .Show(dockPanel, DockState.DockLeftAutoHide)
Despite the fact that AutoHidePortion is > 1 the pane is showing at around 315px = 1/4 the form width.
I have just moved from DPS ver 2.5 to ver 2.8 and in ver 2.5 this behaviour is not apparent and the form (pane) displays at the required size. I an using VB 2010.
Does anyone have any further information on this, workarounds or fixes?
I can't seem to find anything specific on the web, or in Code Project.
Thanks.
modified 31-Jan-14 11:09am.
|
|
|
|
|
TheComputerMan wrote: I can't seem to find anything specific on the web, or in Code Project. That's probably because it is not part of the .NET Framework.
Are you referring to this[^] suite? If yes, then your question should go here[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
It is implemented in Visual Basic therefore the question is legitimate. I will ask in the suggested forum however although I have already searched that and found nothing specific.
|
|
|
|
|
TheComputerMan wrote: It is implemented in Visual Basic therefore the question is legitimate. I never said it wasn't.
TheComputerMan wrote: I will ask in the suggested forum however although I have already searched that and found nothing specific. I doubt that there'll be specific information readily available. The reason I pointed there is because a support forum dedicated to that suite will probably have more expertise than a general .NET forum.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
It's OK I understand what you were saying, but I was thinking that maybe people ding the job had come across the problem and fixed it or got a workaround.
Unfortunately there is nothing much about it on that site. The problem gets a mention. Apparently it appeared in 2.6 and has not been fixed satisfactorily as far as I can tell. The forum is a bit 'thin' to say the least.
In the end, because the code has to address .NET 4.0 I simply re-compiled version 2.5 to target the .NET 4.0 framework. Since the problem does not exist in 2.5 I am happy and I am not concerned about the additions in later versions that i will not have by using 2.5.
At least if someone else experiences the problem our discussion is here to give them a pointer. Thanks for your input. 
|
|
|
|
|
TheComputerMan wrote: I simply re-compiled version 2.5 to target the .NET 4.0 framework. Since the problem does not exist in 2.5 I am happy Whehe, nice pragmatic approach
Well done 
|
|
|
|
|
Hello,
I have built a custom control where I use a label to effectively work as a button on this control.
The problem is, when I place this control on my forms, I want the click event of that label to handle the click event of the user control. The label takes up the whole UserControl form.
Hope this makes sense, and any help would be appreciated!
Thanks
|
|
|
|
|
I really do not understand what you mean by " I want the click event of that label to handle the click event of the user control.". If you mean that you want to raise the usercontrol click event when the label is clicked, then this should do the trick.
Public Class UserControl1
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
OnClick(e)
End Sub
End Class
|
|
|
|
|
That's what I meant, and that's what I need!
Thanks you very much, this does the trick 
|
|
|
|
|
If the Label takes up the entire surface of the UserControl, the UserControl will never fire the Click event. The click will land on the Label since the mouse cannot "see" the UserControl surface through the label.
Or is there something you're not describing in your post??
|
|
|
|
|
Yes the label taking up the entire surface was the issue, solved with Me.OnClick(EventArgs.Empty). Thank you for your reply sir 
|
|
|
|
|
Hi Community,
i have designed a database model with entity designer in vs 2013 express. the project results in a database and the datacontext class.
every table has an id column, witch is the primary key. my problem is now, that i want to impelement an interface for each entity wich contains a property id -> is needed for the generic repository pattern. i have tried to extend the designer generated code of the datacontext, but every time the project is rebuild, the manually added code is lost.
there must be an better way to extend the designer code with the interface implementation or?
best regards from northern germany
|
|
|
|
|
You cannot modify the designer generated code, you need to add your code to a separate source file.
Veni, vidi, abiit domum
|
|
|
|
|
HI Richard,
i know, but how?
I have an Entity for instance
MyEntity with a Property Id as the primary key. And i need to impelement an Interface called IEntity with the Property ID. How can this be done with partial classes or so?
|
|
|
|
|
I assume that it creates a partial class (I have not used this feature) so you just need to edit, or create, the source file that implements these parts of the class.
Veni, vidi, abiit domum
|
|
|
|
|
Hi,
I wanted to ask, is there a way/how would I go about creating an application, in terms of how would I structure my code, if I wanted to create, for lack of a better term, a backend-manager (application) to allow me to easily control/manage certain aspects of the program that I would distribute to the public?
Sort of like a content management system for self-developed software?
This may be a very stupid thing to ask, incase what I'm asking is nonsense, but I'm convinced that something like this is possible?
I believe it's called Dynamic-something?
Where each component of my main application is stored in a database or something, that I could access or modify?
Any help that you can/are willing to provide me about this topic would be greatly appreciated.
Many thanks in advanced!
And if there's anything that I've written which doesn't make sense/you need me to expand upon then just say!
Thanks again for reading!
Long.
Live.
Play.
^.^
#Wreck'D
|
|
|
|
|
|
What will be the attributes for this project??
|
|
|
|
|
Only you can answer that question. Talk to your customer(s) and gather all the requirements of the project. Analyse those details and identify the inputs and outputs, database tables etc. Only then can you start thinking about actual coding, at which time you may have some more specific questions.
Veni, vidi, abiit domum
|
|
|
|
|
Actually i'am a student of bca 2nd year.I have to create a mini project on construction management.And i dont have any idea about these project and how to deal with these attribute....
|
|
|
|
|
Unfortunately that is not a programming problem. If you have no idea how to even start the project then you should talk to your tutor about finding a project that is more in line with what you have learned on your course.
Veni, vidi, abiit domum
|
|
|
|
|
I have complete knowledge on visual basic but not on the topic given to me..
|
|
|
|
|
Fine, but this is a programming forum, we cannot provide the design specifications for your project.
Veni, vidi, abiit domum
|
|
|
|
|