 |
|
 |
Hello my friend,
I've found that your controls is very very interesting.
But when i put a panel on the XPander and put windows control on it, then i hover on the XPander caption, the redraw look pretty ugly .
Is there any property that i can set to make this redraw looks nicer?
|
|
|
|
 |
|
 |
Hi i want to ask how to use this in an asp.net web application? i'm sttrugling how to make use of it for my web page.. i tried referencing this control but i cant use it in the toolbox.. any help pls..
vbrokkie
|
|
|
|
 |
|
 |
Hi
When i try to open a winform using the XPanderControl, i get this error on a Dialog Box:
"The control XPanderControl.XPanderList has thrown an unhandled exception in the designer and has been disabled.
Exception:
Object reference not set to an instance of an object.
Stack Trace:
at XPanderControl.XPanderListDesigner.OnPaintAdornments(PaintEventArgs e)"
This error only happened to me when i try to open the the winforms on another pc.
But when i open the winforms in my pc i have no problem at all.
Can anyone help me with these problem, i dunno what's wrong.
11
|
|
|
|
 |
|
 |
Hello,
We might be looking for some help with a programming project.
Email me from our website for more information:
www.chiro-chart.com
Thank you,
Alex Niswander
|
|
|
|
 |
|
 |
Think your heading for trouble with the admins....
Use the Job Postings section.
|
|
|
|
 |
|
 |
When I use the XPander control, my header has a verticle gradient instead of a horizontal gradient like the screenshot shows.
Any idea why? Or how to fix? Thanks!
|
|
|
|
 |
|
 |
Open XPaner.vb and change line 1090 from this:
Dim CaptionBrush As New LinearGradientBrush(rc, m_CaptionLeftColor, m_CaptionRightColor, LinearGradientMode.Vertical)
To this:
Dim CaptionBrush As New LinearGradientBrush(rc, m_CaptionLeftColor, m_CaptionRightColor, LinearGradientMode.Horizontal)
Regards.
|
|
|
|
 |
|
 |
I tried that before I posted and it didn't work. But I'll try it again as I must have done something wrong.
Thanks for the answer!
-rich
|
|
|
|
 |
|
 |
Appreciate your work and sharing!
That is the perfect control I'm looking for, and it help me so much in my work
|
|
|
|
 |
|
 |
Do you know how I could modify the XPander control to not error out when trying to place it in VS.NET 2005?
It goes on further in the stack, but I'll leave it at and if you need the rest, I can provide it.
Note that this is using the upgrade wizard from a 2003 project to 2005.
Currently I receive the following error:
Failed to create component 'XPander' The error messasge follows:
'System.NullReferenceException: Object not set to an instance of an object. at System.Resources.Tools.StronglyTypedResourceBuilder.DefineResourceFetchingProperty(String propertyName, String resourceName, ResourceData data, CodeTypeDeclaration srClass, Boolean internalClass, Boolean useStatic)
at System.Resources.Tools.StronglyTypedResourceBuilder.InternalCreate(Dictionary`2 resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, Boolean internalClass, String[]& unmatchable)
Thanks,
Nick
|
|
|
|
 |
|
 |
hi.
I am working to on VS 2005. And i have no problem with that. have you add correct the DLL to your toolbar and Reference list?
Works the Example Project?
|
|
|
|
 |
|
 |
Can this control support expanding from left to right instead of up to down?
Thanks
|
|
|
|
 |
|
 |
Unfortunately not at this moment. It should be fairly easy to implement though. If you look at the Expand and Collapse methods in XPander.vb, you will see that all they do is change the height of the control. Replacing the code in ChangeHeight to change width instead would do the trick. You will have to change the Timer1_Tick code also.
If I ever get around to posting a new version, I will make sure to include that.
|
|
|
|
 |
|
 |
When i have done with these helping from you, it has run but now it has another error:Additional information: Object reference not set to an instance of an object. Because I am the first doing VB.Net project so I can't understand it clearly. Now can you help? Thank you very much.
-- modified at 1:25 Thursday 1st September, 2005
|
|
|
|
 |
|
 |
It seems you are accessing an object with "new"ing it. Unfortunately I can't help you more with the limited information in your question. If you post a code snippet here, may be I can tell you more.
|
|
|
|
 |
|
 |
Thank you when you reply for your that letter. But i don't use XPander, i have used that idea for do otherwise for my project.Thank you for your time.
|
|
|
|
 |
|
 |
When i have done with these helping from you, it has run but now it has another error:Additional information: Object reference not set to an instance of an object. Because I am the first doing VB.Net project so I can't understand it clearly. Now can you help? Thank you very much.
|
|
|
|
 |
|
 |
Hello!
Before running,I go to Toolbox, add components XPander and XPanderList from Components, Then I have run it but this message i have recieved from it.
"A Project with an Output Type of class Library cannot be started direct...."
Please help me.
Thank You.
-- modified at 1:22 Thursday 1st September, 2005
|
|
|
|
 |
|
 |
You are making a simple mistake here. The Xpander project only builds a dll not an exe. You can only "run" either the demo project (included in the downloads) or create a new EXE project yourself and set it as startup (right click on the project in the Solution Explorer and select "Set as Startup Project")
Hope this helps
|
|
|
|
 |
|
 |
Hello,
First of all, I want to thank you for making such a nice control! It's really awsome, works great!!
I found a small bug: the MouseLeave event is never raised. This is because you have overriden it but forgot to call 'myBase.OnMouseLeave'
So this is the code snippet that contains this small bug:
Protected Overrides Sub OnMouseLeave(ByVal e As System.EventArgs)
If m_IsCaptionHighlighted Then
m_IsCaptionHighlighted = False
Cursor.Current = Cursors.Default
Invalidate()
End If
End Sub
So this needs to be inserted right before 'End Sub':
MyBase.OnMouseLeave(e)
Again, thanks a lot,
Pieter Agten!
|
|
|
|
 |
|
 |
You are right. Thanks for finding the bug. I will update the article and the code soon.
|
|
|
|
 |
|
 |
Hi,
I've been struggling to get XPanderList to recognize an XPander that is added at runtime.
I have been using
xpanderlist.controls.add(XPander)
Is it possible to place XPander at runtime?
I have dimmed the Xpander Friend WithEvents also, but no luck.
Thanks
There is no place like 127.0.0.1
|
|
|
|
 |
|
 |
Hi, first of all... congrats!!... it's a very nice and helpful control.
Jumping to the issue...
I need the XpanderList to support transparent background... I've set the background colors to Transparent and the XpanderList shows a Black one.
I looked into the code willing to find a harcoded 'Color.Black' but I didn't find nothing like that... I also change some Color values but I don't get any changes... Do you know how to fix this?
Tnks in advance!!
Matías
|
|
|
|
 |
|
 |
Try this. In XPanderList.vb::OnPaintBackground use the following..
If Me.BackColor.A = 0 Then
MyBase.OnPaintBackground(pevent)
Else
Dim rect As Rectangle = New Rectangle(0, AutoScrollPosition.Y, Me.Width, Me.Height)
Dim b As LinearGradientBrush = New LinearGradientBrush(Me.DisplayRectangle, m_BgColorLight, m_BgColorDark, LinearGradientMode.Vertical)
pevent.Graphics.FillRectangle(b, Me.DisplayRectangle)
End If
see if it helps atleast for "purely transparent" colors!
|
|
|
|
 |
|
 |
Let me also explain a little about what this new code does. The If loop checks the alpha component of the BackColor property (which is 0 if you set it to "Transparent") and then simply calls the base code. What this does is to "simulate" transparency. As per MSDN:
If the SupportsTransparentBackColor bit is set to true, and the BackColor is set to a color whose alpha component is less than 255, OnPaintBackground will simulate transparency by asking its parent control to paint the background. This is not true transparency.
(You can change the code to check for any transparency with If Me.BackColor.A < 255 )
So if the parent of your XPanderList is not derived from "Control" it won't work. Also if you have another control in between your XPanderList and its parent, you won't see the other control. So the code I suggested above is not the perfect solution. I will try to post a better one but for now this one just might work for you.
|
|
|
|
 |