Search results for query: *

  1. B

    Question Displaying data from related table in DataGridView

    that´s OK, but there is a little problem: I don´t use any dataadapter or real database. I read data directly do the Dataset from XML. (DataSet.ReadXml('mydata.xml'))
  2. B

    Image Recognition/Compare

    Certainly there are many approaches. If your application doesn´t rely much on speed, you could scan each line in the image and make a histogram from which you then compute some values like median, dispersion or something like that. But you have to decide what to measure: amount of contrast...
  3. B

    create an ellipse on an image

    you can create an ellipse class that would hold the position, color, tag or some other info about the point you just clicked. After clicking you could add the instance of this object into an array. On mouse move you could iterate through al the elements in the array to check which ellipse the...
  4. B

    Question TestComplete

    Does anyone use TestComplete to make automated tests? Do you like this tool?
  5. B

    Zooming picturebox?

    it depends on wether you draw something onto the picturebox using gdi+ or you are just assigning an image to the picturebox. In case you use gdi+, you can use transforms (scaletransform) to scale up/down everything that is drawn afterwards. The coordinate system gets scaled, but if you use the...
  6. B

    Question Displaying data from related table in DataGridView

    I have 2 tables in my dataset: - Items - Warehouse The Items table contains a column named 'WarehouseID'. It tells me which warehouse this item belongs to. The Warehouse table contains an 'ID' column and a 'Name' column. Now if I display the contents of Items table in a datagridview I will...
  7. B

    Question Get bounds of GraphicsPath

    OK, I tried it and it seems to be working perfectly. You can see the original path drawn with black line and the flattened path drawn in red on the appended image from my application. I´ve increased the flattness value to 10 to verify if it really works. I also took the next step and used the...
  8. B

    Question Get bounds of GraphicsPath

    Hi, I wonder if there is a way I can get the REAL bounding rectangle for a graphicspath, for example a path consisting from one or more bezier curves. The bezier curves in the path have control points and the function .GetBounds takes these points in account. But I only want to get the bounds...
  9. B

    Question LINQ on array of objects

    Let´s say I have an array (I named it "Points") of objects. Each object has a custom property called for example "Selected". The property type is Boolean. Can I use LINQ to determine the INDEX of the element in the "Points" array where "Selected=True"? (I´ve ensured that only one element can...
  10. B

    testing tools?

    If you prefer Visual User Interface Testing, then I would suggest TestComplete. It can run automated tests for VB6 and .Net applications.
  11. B

    How to Make drop-down button?

    Just use ContextMenuStrip that shows up in a proper position when the button is clicked and you could add some image to the button that changes on MouseOver and MouseClick.
  12. B

    Question Container region of a panel

    Hi, is there a way to make a user control (similar to panel) that has a custom container area? Ordinary panel has a container area that is almost the same size as the panel itself, and I don´t know a way to change it. The new control should have a container area (where I can place other...
  13. B

    DataGrid Column Position

    Hi guys, I found it at last. I can get the column bounds using: DataGridView.GetColumnDisplayRectangle(ColumnIndex, CutOverflow) This function returns the bounding rectangle for a column specified by index.
  14. B

    Question Get DataGrid sort direction

    Hi, I know how to set sorting direction on each column in datagrid programatically, but I wonder how to do the opposite: obtain the sorting direction for a particular column. Does anyone know? Thanks
  15. B

    DataGrid Column Position

    Hello, I have a datagrid in my project and I want to place label controls above each of its columns and those labels should stay above each column even when I resize columns. I need something like "Datagrid.Columns(i).Left", but of course there is no such property. Is there a way to obtain such...
  16. B

    DataGrid refreshing

    thank you for the tip, I´ll give it a try
  17. B

    DataGrid refreshing

    Hello there. What I am breaking my teeth on right now is this: I have a simple database application that shows data using a datagridview. This control is bound to a DataView (so I can apply filtering). The Dataview is bound to a DataSet which is then filled from a DataAdapter using Fill method...
  18. B

    Read changed data

    Tom, you were right. The records count is only rising but never declining. So I simply placed: DS.Tables(0).Rows.Clear before the fill and it works great now. Many thanks ;)
  19. B

    Label TextAlign

    I decided to rather resize the label in code, because there are other controls to the left of the label. Thank you anyway ;)
  20. B

    Label TextAlign

    Hi, I have a simple but tricky problem: I have a label inside a container control (form, panel, or whatever). The labels anchor is set to bottom & right, auto-size is set to true and the textalign property is set to middle right. The length of the text changes during runtime. I want to ensure...
Back
Top