Search results for query: *

  1. capella07

    Question Need to Invoke a Method, Not a Control, From Another Thread

    JohnH You're AWESOME!!!! That was it! I used your code passing the CommandCode object and it worked!!!! Thank you!!!! Think I used enough exclamation points?!?!!!!!!!!!!!!!! Okay, I'm done. ! ;)
  2. capella07

    Question Need to Invoke a Method, Not a Control, From Another Thread

    Still not sure what you're referring to when you talk about a "Queue". Maybe some pseudocode would help? Thanks!
  3. capella07

    Question Need to Invoke a Method, Not a Control, From Another Thread

    Hey, InertiaM. Thanks for replying. Please see my comments to your post: It's already in its own class. I didn't include that code in my post, but on the main form's load event the scanner class is instantiated. The scanner itself is an always-on model, so the DataRecieved event (which is in...
  4. capella07

    Question Need to Invoke a Method, Not a Control, From Another Thread

    I was told by an MS moderator at the MSDN forums that the delegate must be an instance of EventHandler, so I can't Invoke a method. I'm wondering if there's some other way to accomplish what I'm trying to do: from the DataRecieved event of the scanner class/thread call a method in a form that...
  5. capella07

    Question Need to Invoke a Method, Not a Control, From Another Thread

    This is for .NET Compact Framework 2.0 Here's the flow of what I'm trying to do: 1. On the main form a scanner class is instantiated that (in the scanner's constructor) sets the scanner settings (baud rate, parity, etc) and opens the scanner for use 2. A barcode is scanned (via a scanner...
  6. capella07

    Unintentionally closed thread!

    Geez I feel stupid! If a forum moderator could please open that thread back up or let me know & I'll repost in to a new thread. Sorry!
  7. capella07

    Question Need help understanding constructors & data access

    Hello, all I'm pretty new to VB programming (or any kind of programming for that matter!) - only about a year. I'm working on a project for WinCE. I'm trying to use the following block of code to save to an existing record in a database on the device:Dim i As Integer m_cWOs =...
  8. capella07

    How to create sql connection, populate DataGrid from code-behind

    Sure, can do if it'd be more appropriate there... Then again, this IS the ADO.NET forum, is it not?
  9. capella07

    How to create sql connection, populate DataGrid from code-behind

    This really is such a simple problem I know that many of you will be able to answer it. I think my not knowing the answer really is the result of learning Web design in the "drag-n-drop" design environment VS2005 allows... but that's for another thread... Anyway, due to the functionality I...
  10. capella07

    How to convert file to OLE for SQL table

    Essentially, yes. Originally, there was an Access interface/module writing to a SQL table and a different, separate Access module reading what the first Access module wrote. It appears that Access adds information on to what it writes to the image datatype/OLE column. That's how the 2nd Access...
  11. capella07

    How to convert file to OLE for SQL table

    Thanks for replying, cjard. The bigger picture is, I am replacing (with a Windows program) a module that was created in Access. To do its job, the Access module mixed VBA, macros, and queries for both Access and SQL 2000 database tables. Part of what it did/does is save an email attachment...
  12. capella07

    How to convert file to OLE for SQL table

    I barely understand what I need to do myself, so if you need clarification, let me know. Here's the relevant code from a Sub I'm working in (in Visual Studio Pro 2005): Dim mailAtmtName As String mailAtmtName = redempMailItem.Attachments.Item(atmtCounter).FileName Dim filePath As String...
  13. capella07

    files as image datatypes in VB and SQL

    Thanks for the explaination, jmc. Currently my code iterates through an Oulook folder and determines if an email has an attachment (and how many). Then, if it does, it writes that email's information to the SQL table. 'Get attachment's file name to write to db table Dim mailAtmtName As...
  14. capella07

    files as image datatypes in VB and SQL

    cjard, sorry I wasn't clear enough. I'm creating a Windows form in VB.NET 2005 and working with a database table in SQL Server 2000.
  15. capella07

    files as image datatypes in VB and SQL

    Thanks jmc, Actually, I'm going to include both columns. Currently it has to be saved as an image due to the way it's displayed in another Access module. However, eventually I'll be able to change that to just providing a link to the file itself. So, to answer your question, my question is...
  16. capella07

    files as image datatypes in VB and SQL

    Hello, everyone This is kind of a big project (what I'm posting here is only a very small part), so any suggestions on different approaches in what I need to do would be greatly appreciated! I have a Sub in a VB.NET 2005 Windows form that, among other things, copies an email's...
  17. capella07

    How to insert records from DataGridView to SQL Server Database 2000

    [Resolved & Lessons learned] Okay, after a lot of more searching, trial and error, a good night's sleep, and some more trial and error this morning, I finally got it working properly! :D :) Below is the final, working code. For the benefit of others, I'm going to include some...
  18. capella07

    How to insert records from DataGridView to SQL Server Database 2000

    Apparently Tracy's problem was resolved, as there haven't been any posts here since Oct. 26th. Much of what Tracy posted here is what I am dealing with. My code looks very much like the examples posted. I've encountered all of the errors mentioned here, but still can't get my data written to...
Back
Top