Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.31 seconds.

  1. Re: add form from project to another project

    That's got nothing to do with making a button then. If your projects are part of the same solution then you simply drag and drop the form in the Solution Explorer. Otherwise, right-click the...
  2. Replies
    4
    Views
    101

    VS 2010 Re: What does File.Encrypt do?

    I just tested for myself and I got this error message:From the very quick research that I did, it seems that you need to set up a certificate first.
    ...
  3. Replies
    2
    Views
    76

    VS 2008 Re: Error of MSCORLIB.dll

    If an older version of the code runs when you debug then that suggests that your project is failing to compile for some reason. I would suggest that you open the project folder in Windows Explorer...
  4. Replies
    4
    Views
    106

    VS 2013 Re: help plz send mail attachment

    I thought that I'd already answered this but maybe it was at another forum. The Attachment needs to open the file in order to read the data and send it with the email. You need to dispose the...
  5. Replies
    9
    Views
    103

    VS 2010 Re: Get window form with HWND?

    Argh! I just realised that your application is C# rather than VB and there are no default instances in C#. I was going to say this earlier but please don't post in the VB.NET forum in future unless...
  6. Replies
    4
    Views
    101

    VS 2010 Re: What does File.Encrypt do?

    If only there was some way for us to know what the error message was. :rolleyes: Have you read the documentation for the File.Encrypt method to see what exceptions it can throw and, if one of them...
  7. VS 2012 Re: The process cannot access the file error on Vista but not Win 8.1

    My guess would be that you're trying to access a file that has just been created and it hasn't been released by the creator at that stage on Vista while on Win8 it has. I haven't used the FSW much...
  8. Replies
    9
    Views
    103

    VS 2010 Re: Get window form with HWND?

    That suggests that your MainForm class has no default instance. The only reason that I'm aware of for that is that it has no parameterless constructor. Is that the case? Did you declare your own...
  9. Replies
    4
    Views
    101

    VS 2010 Re: What does File.Encrypt do?

    You can't use File.Encrypt when creating any file. That method operates on a file in place. You would create the file exactly as you normally would and then call File.Encrypt to encrypt it in...
  10. Replies
    9
    Views
    103

    VS 2010 Re: Get window form with HWND?

    By using the class name like that you are trying to use the default instance of that form. That will only work if the instance of the form you're trying to get the information from actually is the...
  11. Replies
    9
    Views
    103

    VS 2010 Re: Get window form with HWND?

    Firstly, let's not use the common term for homosexual people here in a context that means bad. It's really quite offensive because, regardless of what you mean when you say it, the derivation is...
  12. Replies
    9
    Views
    103

    VS 2010 Re: Get window form with HWND?

    If you mean a form within your own application then you would use the Handle property of the form. If you mean any window then you can use the FindWindow API.
  13. Replies
    6
    Views
    116

    VS 2010 Re: Updating datagrid column

    What would be the point of that? What would you use the row index for? Presumably to get the row, but you already have the row. That's the whole point of a For Each. You don't use the Rows...
  14. Replies
    1
    Views
    70

    VS 2008 Re: abstract class and enums

    Disregarding the enumeration for a moment, it makes no sense for each instance of a class to have a method that has to be passed itself. If the method needs to refer to the current instance then it...
  15. Re: On UI i can delete the record, but i am unable to delete the record from DB????

    When you create a foreign key, it is configured to do nothing on delete by default. Because the foreign key value in the child table must exist in the primary key column(s) in the parent table, that...
  16. Re: [RESOLVED] Two variables in an array name, nested for loop

    If you don't explain what you want then we are unlikely to be able to provide an adequate solution and we end up wasting our time and yours by trying.
  17. Re: Help with multithreaded tcp server

    Don't forget to use the Thread Tools menu to mark your thread Resolved. :)
  18. Thread: lenovo

    by jmcilhinney
    Replies
    11
    Views
    239

    Re: lenovo

    Good to hear. My partner needs a new machine as her old Dell XPS 15, which was my old Dell XPS 15 before I got my new Dell XPS 15, gave up the ghost recently so I might put her onto it. Have you...
  19. Re: Two variables in an array name, nested for loop

    At no point prior to that post did you mention that you were working with controls so how would we have known that that would be appropriate?
  20. 3.0/LINQ Re: How to execute a Function() and wait for it?

    Is the method being executed inherently asynchronous?
  21. VS 2012 Re: Logic Error in Form_Load does stop execution. Why

    To answer your question, this issue has been written about a great deal in a great many places. If I remember correctly, it only occurs on 64-bit systems and, while I'm not sure of the details,...
  22. Re: VS 2010 Convert XLSX file to csv

    Have you referenced the Excel COM library? Also, are you aware that any user of your app will have to have Excel installed for that code to work?
  23. Replies
    2
    Views
    100

    Re: Object Reference Error

    Obviously 'tvm' itself is not null or you'd see the exception on an earlier line. Presumably your 'timeIn' field/property is an array type. You must not have actually created the array and assigned...
  24. Re: How to trigger the CellBeginEdit Event?

    Have you read that back to yourself? As the name suggests, the CellBeginEdit event is raised when the user begins editing a cell. Don't you think that it's a bit late to make a cell read-only when...
  25. Re: Help with multithreaded tcp server

    Follow the CodeBank link in my signature below and check out my thread on Asynchronous TCP.
  26. Re: How to initialize a null column to blank in VB 2010

    Yes you should. You can make your database easier to work with for reports and the like by creating a view or the like to massage the data into a more usable form but changing the way you store data...
  27. Re: How to initialize a null column to blank in VB 2010

    No, but it's mission bad idea.
  28. Replies
    1
    Views
    78

    Re: Register in database via TextBox?

    Follow the CodeBank link in my signature and check out my thread on Retrieving & Saving Data. Probably the most relevant example for you in this particular case is one calling ExecuteNonQuery.
  29. VS 2013 Re: Counting Rows with certain value in datagridview?

    Is the grid bound or unbound? If bound, what is it bound to?
  30. Re: Two variables in an array name, nested for loop

    Again, explain what you're trying to achieve rather than how you're trying to achieve. Your code makes no sense and "insert a variable into another variable" also makes no sense. Why do you think...
  31. Replies
    9
    Views
    171

    VS 2010 Re: Webcam Delay

    I didn't notice the name and thought that you were the OP asking a further question.
  32. Replies
    7
    Views
    175

    VS 2010 Re: Visual Inheritance

    You're going about it the wrong way. The handler for the Click event of the Button goes in the base class only. As always, if you want to define behaviour in a base class and then change that...
  33. Re: Two variables in an array name, nested for loop

    Please provide an explanation of what you're actually trying to achieve rather than how you're trying to achieve it because the way you're trying to achieve it is almost certainly very wrong. ...
  34. Replies
    2
    Views
    114

    Re: Database defaults

    Is the DefaultValue property of that DataColumn set? It seems logical that it would be but, whether by design or oversight, I believe that the column defaults from the database don't carry through...
  35. Replies
    9
    Views
    171

    VS 2010 Re: Webcam Delay

    You might start by actually creating a handler for the Tick event of the Timer.
  36. VS 2010 Re: Threads and Delegates confusion!

    What I'm saying is that that code is going to invoke the delegate that belongs to the default instance of the MainForm class for the thread that it's executed on. The MainForm instance that you can...
  37. Replies
    9
    Views
    171

    VS 2010 Re: Webcam Delay

    Use the Timer. Set a variable to 10 and decrement it on each Tick, doing whatever it is that you want to do when it reaches zero. Obviously you would set the Interval to 1000 so that you get a Tick...
  38. Replies
    9
    Views
    171

    VS 2010 Re: Webcam Delay

    You might try providing a proper explanation of what you're trying to achieve. A 10 second delay between what exactly?
  39. Re: The programming for handheld devices with SQL Server ?

    Obviously SQL Server is not going to be running on the device. You would create a web service to expose the data and then have your app make calls to that web service.

    If you want to use .NET...
  40. Re: add form from project to another project

    Your question actually doesn't make sense. Are you actually talking about moving items around in projects, which you do in Visual Studio, or are you talking about doing something in the application...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.