Search results for query: *

  1. S

    Types and structs between VB6 and VB.NET interop

    Hi I'm working on some interpo between VB6 and VB.NET and I've hit (another?) brick wall. I need to pass an array of "stuff" between VB6 and VB.NET. This contains an ADO recordset and 4 string values. There could be any number of these 5 items passed, so they will have to be an array of...
  2. S

    Populate a datacontrol with a COM object

    Hi Guys I've a COM object in my project that returns a recordset. I want to populate a DataGridView control with this recordset but can't see how. I thought it would be as easy as setting the control's DataSource property to the COM object but this just didn't do anything, although it didn't...
  3. S

    StreamReader - reset to the top

    Good grief, I posted this original question 5 years ago (October 2004) and have absolutely no idea now of what I was trying to achieve, why I was doing or what I did in the end. Thanks anyway for your contribution Regards Sam
  4. S

    Get a GUID for a file

    Fixed it...... Hadn't DIM'd the TypeLibInfo and TLIApplication correctly. Sam
  5. S

    StreamReader - reset to the top

    Hi When using StreamReader how can you reset the "pointer" to the beginning? I'm reading some lines then, when a certain condition is met I want to read the whole file. I've tried setting the BaseStream.Position = 0 but that acheives nothing. This is my (extremely simplified) code...
  6. S

    Get a GUID for a file

    Hi Can anyone give me some pointers on how to access the GUID of an existing file? You can do it in VB6 by using the a reference to tlb32.dll and "tli.TypeLibInfoFromFile" however in .NET TypeLibInfoFromFile doesn't exist Thanks Sam
  7. S

    Running from a network share

    Hi OK, I know this has been discussed everywhere but I'm fairly new to .NET and am confused. I've written a windows forms application that I want to install on a network share for others to use. It fails when running from the network share because of a security error. I've read that I can...
  8. S

    TreeView (and SourceSafe)

    Sorted... Hi OK I've finally got it sorted.... I realise that I probably can't populate the complete tree in one go, so I just populate the top-level, then when a user clicks on a node I go to my database and get the child values and then create all the child nodes. Only downside with...
  9. S

    TreeView (and SourceSafe)

    Neal / all Here's a snippet of VB6 that populates a treeview control... ------------------------------------------------------ Private Sub ExploreProject(vssProject As vssItem) Dim vssItem As vssItem '' a SourceSafe item - project or file Dim xNode As Node ' Only list...
  10. S

    TreeView (and SourceSafe)

    Hi I've newish to .net so forgive what's (hopefully) an easy question I'm struggling to populate a treeview. I'm reading the data from the SourceSafe object model and can only retrieve it an item at a time so it would seem obvious to me to add the items (plus the image) as each one is...
Back
Top