Search results for query: *

  1. M

    Multi-Threading

    Typically when doing VB.net id use the main application thread as the UI thread. This means you instantiate your form when the app runs (as with a non-multi-threaded app), and then I would create new threads from there to do your background processing. So have a button your main form which...
  2. M

    NewRow with DataGridView bound to list of objects

    Thankyou for the solution sir - as always very detailed and thorough. I think ill use the BindingSource wrapper for now - looks like the easiest way to achieve what I want. Ill prob revisit and look at implementing my own BindingLists later.
  3. M

    NewRow with DataGridView bound to list of objects

    Hey all, When you bind a DataGridView to a DataTable it is easy to programmatically add rows - by just adding to the bound DataSource (which in this case is a DataTable). Ive been binding typed lists of objects to my DataGridView. This works fine, but I am unable to display new rows in the...
  4. M

    custom keypad

    Post some code.. And maybe I can help.
  5. M

    TextBox custom borders and background

    You probably arent getting any results from this because you didnt add this line in the constructor of your derived TextBox class: Public Sub New() MyBase.New() Me.SetStyle(ControlStyles.UserPaint, True) End Sub The problem you have with adding a border is that the ClipRectangle for the...
  6. M

    Add rows at design time

    No it's not possible to add rows at design time. Rows consititute actual data - and at design time you're only building structure and format.. Why would you want to do this anyway?
  7. M

    Replace the field column name

    Hey knockyo, im not sure if you're trying to say you want to do this automatically somehow.. but you can do it by creating a DataGridTableStyle before binding your grid to your DataSource. The table style has a collection of DataGridColumnStyle objects - each of which have a property called...
  8. M

    .NET 1.1 DataGrid Selection

    Ok man, thanks for your help. Ive been having all kinds of trouble with this - i created my own custom ColumnStyle which overrode the Edit method to do nothing, which didnt work. I then overrode the Edit method to just put a Label control in the DataGrid cell and then just Commit the original...
  9. M

    .NET 1.1 DataGrid Selection

    Yeh sorry about that - I live in .NET 2.0 world, it's just this app ive been developing as a favour for someone is 1.1 (hence the post's subject!) DataGridTextBoxColumn certainly is in 1.1 - im using it.. As for the final point, there is no such thing as a "standard" column - the default is a...
  10. M

    .NET 1.1 DataGrid Selection

    Hey all, Does anyone know a way to stop a DataGridTextBoxColumn from displaying it's TextBox? I have a ReadOnly grid, where each row selects in full, but it looks crappy when the TextBox shows up in each cell. Here's the code to force the selection of the whole row: Private Sub...
  11. M

    CurrencyManager + DataGridTableStyle

    One quick question about some examples that I found on t'internet: Why would one pass a CurrencyManager into a DataGridTableStyle constructor? I've always just used the MappingName to associate a TableStyle with the appropriate source data on a grid.. I cant seem to see why this functionality...
  12. M

    .NET 1.1 grid Woe

    Hey all, Im being forced to develop an .NET 1.1 app, which is causing me much pain and suffering. Ive got a DataGrid bound to a DataTable, which the user cannot edit. dgEvents.SetDataBinding(dsEvents, "tbl_events") As you might guess, the DataGrid lists events as they occur. I've set the...
  13. M

    Immediate Awkwardness

    Hey all, Hopefully this is an easy answer for the person who knows it ;) In the Form.Load of my small application, why is it the case that I can MsgBox the Application.ProductVersion and get a result, but then in the Immeadiate window I get an error...
  14. M

    DataGrid and Add/Remove Handler

    Hey all, Im doing a bit of .NET 1.1 atm and have the situation where I want to parse text entered into a cell on a datagrid. See the code: Private Sub dgPlayers_ItemChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemChangedEventArgs) Handles cm.ItemChanged If...
  15. M

    Invoke Windows Copy Dialog

    Hey all, Is there a clean and nice .NET way to invoke the system file copy dialog? My app has to move some files around in the background and we just hit one that is over 300MB. While the file copies it would be nice to fire off the XP process that normal occurs when you copy/paste a file...
  16. M

    Threading Issues

    I kind of taught myself VB.NET and sometimes I encounter a problem that feels as though its been created by my habit of doing things the "wrong" way. This might be one of those cases, so I thought Id post on the forum to see if anyone had a suggestion for dealing with this situation. My...
  17. M

    VB.NET Coding Standards

    All very interesting chaps - ive got one question, is there a valid unary operator in VB.NET? IIf doesnt exist in the main framework classes.. Also, with all this talk of Modules, surely you could just implement the same thing with a class and protect it from instantiation in this fashion...
  18. M

    DataGrid Binding Format in .NET 1.1

    Just incase anyone ever stumbles across this post in the future - I solved it with a rather simple answer in the end.. I created an additional column in my dataset which was of type String, then format my seconds count using my own method, and stick it into this column. The integer timestamp...
  19. M

    DataGrid Binding Format in .NET 1.1

    Ive got to work in .NET 1.1 for this project, so bear that in mind when you read this: Ive got a DataTable bound to a DataGrid and one of the columns has data which needs processing before it is displayed in the grid. Essentially it is a timestamp (a number of seconds) which I need to convert...
  20. M

    Code Efficiency

    One app we have written at work has to do a lot of data comparison stuff. We are looking at doing this on the SQL server but technical issues (with computed columns :mad: ) are currently causing us greif. In one instance, the following code gets iterated about half a billion times. Removing...
Back
Top