Search results for query: *

  • Users: mafrosis
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. M

    Smart Tags

    Hey all, I've been asked to build something for Word which can replace keywords with images (or icons) as a person types. This sounds very much like a Smart Tag to me - does anyone know of a good resource to read about this stuff? All MSDN articles I have found date 2001/2003 - and don't seem...
  12. M

    BindingNavigator & Form Validation

    Hey all, I recently used a BindingNavigator object to give some of our novice users a familiar Access-style interface for moving through a large dataset. The problem I found was validating a form when the person changes record - which event did any of you guys catch? Its a pain because...
  13. M

    Parse Text From Images

    Hey all, Does anyone know of a component which could retrieve text from an image? We have lots (about 5000) bitmaps with text in them which we would like to strip out - every image has the text part in the same place, with the same contrast, so it seems like a real possiblity to automate...
  14. M

    BackgroundWorker & Exceptions

    Hey all, another day, another stupid .NET problem.. :D Ive got a BackgroundWorker which imports data from an Access file and does a chunk of validation on it. I throw one of a variety of custom exceptions if the data is invalid. When I run in debug mode, I always get a break in execution and an...
  15. M

    For Loops

    Ok maybe a stupid question, but in VB can you force a For loop onto the next iteration? Like continue in Java/C. We've got Exit For which is the same as break, but im looking to optimise a loop with a continue type statement. Cheers guys
  16. M

    File in use by another process

    I had to write a tool for novice users to recompile a project and copy a DLL to a remote server. Basically, they use a handbook/guide to add new DataSet objects to a project and then use this tool to recompile and release an updated file. It's a bit too much power in the hands of novices if you...
  17. M

    Get arguments passed to WinForms exe

    Hey guys, is there a way to get command line arguments passed to a windows forms app? Basically i have a small updater application which reads some stuff to do from a config file and then displays a nice progress bar while it does it. It would be nice to start this updater from another...
  18. M

    Access Project Resources via Code

    Hey all, You can add image resources to a project via the Resources tab in the project properties, but is there a way to access these images via code?? Currently im loading some images by path using Image.FromFile() - so it would be neater to use the project resource lib. Cheers mafro
  19. M

    Network Unavailable

    Hey all, I've been having loads of trouble with the network suddenly going down at my workplace - there are many different ways of handling this, but I just wanted to check if anyone has a good suggestion for managing exceptions on network access throughout an application? I was thinking...
  20. M

    Delete Objects

    Hey all, A simple question really - if I create an object to use very breifly and then discard, is there any need for the final line in this code? Dim wsi As New WorkStreamInst(Me.workstream_id, Me.workstream_rev) Me.data_class = wsi.data_class Me.sp_prefix = wsi.sp_prefix Me.ui_control =...
Back
Top