powerpacks

Iterate thru DataRepeater (VB.Net PowerPack)

I am using the winform datarepeater control from vb.net power pack. All of the items on the repeater are readonly except for a checkbox column. I want to iterate over the items and find out which checkboxes are checked. I can't find a collection of datarepeateritems on the control and help is scarce. Thanks for the help. ...

Handle Button Click in WinForm DataRepeater C# Power Pack

hi, i want to handle winform button click in the DataRepeater, how can i do it? all button are placed in a DataRepeater Thank you very much ...

Dynamically bind a DataRepeater (Microsoft.VisualBasic.PowerPacks)

I am using a DataRepeater to show data from a business objects on the screen. I am using windows forms in C# to accomplish this. The datasource is not available at compile time so I want to bind the datasource at runtime. Here is the simplified scenario. I'm using this business class: public class Product { private double _price; ...

Draw a new Curved Shape inherited from LineShape

Hello, I use Microsoft.VisualBasic.PowerPacks. LineShape component. This component is good, but I want to draw a curve instead of a right line. I stardet to modify the OnPaint: protected override void OnPaint(PaintEventArgs pevent) { //base.OnPaint(pevent); pevent.Graphics.DrawLines(Pens.Green, new ...

Link two controls in one

Hello, guys! I wonder if there is a possibility to (visually and functionally) link two controls(components)? (.NET2) Simplifying the things, I have two labels - one of them is the main label (it can be deplaced with the mouse) and an other - the description label - it needs to follow the main label on a specified distance. Also, the...

Detect the intersection point of 2 lines

I have 2 (VisualBasic.PowerPacks)LineShapes on my form: When I click on one of them, a specific context menu appears. The lines can be moved by the user. A context Menu is associated with a line. However, if the user clicks in the intersection point(if exists) I need to display an other menu, that will select one of intersection lines...

GDI+ How to change Line SmoothingMode?

Is it possible to change PowerPacks.LineShape smoothingMode? I tried to use this code(a class that inherits LineShape): Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim g As Graphics = e.Graphics ' no difference when changing the SmoothingMode ' g.SmoothingMode = SmoothingMode.AntiA...

LineShape control drag n drop

This is the code which I am using for LineShape control drag n drop.LineShape control from powerpacks.dll I am not able to move the Lineshape control freely. Cursor is slipping while drag n drop . Any ideas? I have to move the lineshape control freely like lineshape control at design time with mouse cursor. Dim fdragging As Boolean =...

Help Repainting a Line

I am doing a custom control (inherited from VisualBasic.PowerPacks.LineShape), that should be painted like as standard one, but also having a Icon displayed near it. So, I just overrided OnPaint like this: protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) { e.Graphics.DrawIcon(myIcon, StartPoint.X, StartPoint.Y...

A way to remove selected LineShape shadow effect?

Is there a way to remove the LineShape shadow effect when selecting the lineShape? I tried Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim g As Graphics = e.Graphics g.SmoothingMode = SmoothingMode.AntiAlias Dim oldmode As SmoothingMode = g.SmoothingMode g.DrawLine(_Pen, X1, Y1, X...

How get to work ShapeContainer.Scale methods?

Microsoft.VisualBasic.PowerPacks How should I get to work ShapeContainer.Scale methods? Are they implemented? private void button1_Click(object sender, EventArgs e) { // this works for the common form controls this.Scale(new SizeF(1.1f, 1)); // // but has any effect on the powerpacks.Shapes ...

F# 2.0 with Powerpack 2.0, fslex error 1

In namespace RSLispV3.RunTime: http://pastebin.com/XNb9qi11 LispParser.fsy: http://pastebin.com/pymF1Vvm LispLexer.fsl: http://pastebin.com/pfXdDuxs I got in MSBuild the PowerPacks targets, calling them from the .fsprog. When building with VS2008 I get error: "fslex.exe" exited with code 1. Help? ...

Crazy errors with FsLex and FsYacc

I am trying to compile this project: http://ramon.org.il/Here.zip But I get a bunch of non-sense errors. They got text I am familiar with, but in the position there is nothing like that (like unexpected ')' at an empty row). Help me, please! ...

Zoom a Rectangle in .NET

In a WinForm I use rectangles, ovals and lines of Microsoft.VisualBasic.PowerPacks. Is it possible to make a zoom on it? How? ...

Unbound Data Repeater Scroll Issue

Hi, I Dragged a DataRepeater into my form. Added a TextBox to the DataRepeaterItem. Added A button to the form. Wrote these 2 Lines of Code : Private Sub Button1_Click(..) Handles Button1.Click DataRepeater1.VirtualMode = True DataRepeater1.AddNew() End Sub Run Project Press Add Button in the textBox Write "1" Press Add Butto...

line and opacity

I would like to draw an opaque line on a control in c#. I tried this with visual basic powerpacks shapecontrol.. but I couldn't find any properties that set opacity. How do I draw an opaque line ? Thanks, ...