Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.01 seconds.

  1. Replies
    4
    Views
    99

    VS 2013 Re: Package CHM help file

    Is that a tool for creating the help file? It doesn't matter how it's created. A CHM file is a CHM file and, once you add it to your app, you would normally use the Help class and related types to...
  2. Replies
    4
    Views
    99

    VS 2013 Re: Package CHM help file

    Are you using Process.Start for a specific reason or are you unaware of the Help class and associated types available in WinForms applications?
  3. Replies
    2
    Views
    60

    Re: Online School Management System

    There had better be far more to it than what you've described if it's going to sell for $2000, which would mean that there's no way that we can make any sort of realistic judgement based on your...
  4. VS 2012 Re: how to make a list of color in datagridview (each row a different color)

    Why do you have two loops? It's obvious what the outer For Each loop is doing but what exactly is that inner loop supposed to be doing?

    I say this many times but this is an example of what...
  5. Replies
    10
    Views
    2,110

    Re: Using Distinct

    Option Strict has worked exactly the same way in all versions of VB.NET from 2002 up to the soon-to-be-released 2015. If it's On then late-binding and implicit widening conversions are disallowed...
  6. Replies
    7
    Views
    164

    VS 2010 Re: Arrow Key Lag On Pacman Clone

    But if you assign the same Image then there shouldn't be a change so there shouldn't be a refresh either. I'm not 100% sure that that's the case but I would expect so.
  7. Replies
    7
    Views
    164

    VS 2010 Re: Arrow Key Lag On Pacman Clone

    I wouldn't bother if all you're doing is setting a field. It's not like that is an expensive operation that needs to be avoided otherwise. The check would probably be comparable so you don't really...
  8. Replies
    7
    Views
    164

    VS 2010 Re: Arrow Key Lag On Pacman Clone

    As for the question, you have it all wrong. You should not be using a Timer to detect the key state. You should be using a Timer to move your (I assume) PictureBox. You should have a field that...
  9. Replies
    7
    Views
    164

    VS 2010 Re: Arrow Key Lag On Pacman Clone

    Firstly, if you're going to post code, please format it for readability:

    Private Sub Form2_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    ...
  10. Re: How to create a ContextMenu when the mouse button is pressed

    Given that you haven't posted in the WPF forum, it would have been a good idea to specify that this a WPF question. 4x2y has now wasted their time providing a Windows Forms example because that is...
  11. Replies
    5
    Views
    145

    VS 2013 Re: I can't find the Disassembly window

    I wonder whether your environment settings are such that that option is hidden. I always use General Developer but I know that a lot of VB developers choose the VB option and it does change certain...
  12. Replies
    4
    Views
    169

    Re: accepting arguments on opening .exe

    Actually, no. That code is going to detect whether a Shift key is depressed when that code is executed. It is possible that the user could have a Shift key depressed when they run the application...
  13. Replies
    4
    Views
    169

    Re: accepting arguments on opening .exe

    Then you don't mean opening a form at all. You mean running/executing the application. Once the application is running, it will then open a form.
  14. VS 2013 Re: Is there a better way to export a DataTable column to a text file?

    LINQ queries are a way to replace an explicit loop with more succinct code. They work in much the same way as SQL queries so understanding LINQ is much easier if you already have a good working...
  15. VS 2013 Re: Is there a better way to export a DataTable column to a text file?

    The whole point of using a typed DataSet is that it is customised to your data. When you use a standard DataSet then you have to use magic strings and magic numbers to identify tables and columns,...
  16. Re: Sorting data in a combobox using the underlying data model

    I have no hidden agenda. My agenda is to help people become the best programmers they can. If that means shocking them into thinking for themselves then so be it. I don't think it actually helps...
  17. VS 2010 Re: Acquire Sounds from the project folder itself

    I think that you need to wrap your file path in quotes in the command to mciSendString because it has spaces in it. I've never done it myself but I imagine that that's the case, i.e.
    retVal =...
  18. VS 2010 Re: Acquire Sounds from the project folder itself

    And have you made any effort to find out? I'll wager not. It's not magic. It's simply a String property so you use it like you would any other String.

    The obvious first thing to do is to check...
  19. VS 2010 Re: Acquire Sounds from the project folder itself

    Did you try that? Did it work? It should but that's the sort of thing that you try first and then ask questions later if it doesn't work.

    By the way, that is a file path, not a URL, so your...
  20. Replies
    4
    Views
    124

    Re: Connect to database

    Personally, I use the Entity Framework pretty much exclusively for data access and I would generally recommend that others do the same. There is something to be said for using ADO.NET though, as far...
  21. Replies
    4
    Views
    124

    Re: Connect to database

    There isn't too much difference at all. Many of the same types are used. The main difference is that, when you create a Data Source, the IDE generates some types for you to wrap up all the required...
  22. Re: Sorting data in a combobox using the underlying data model

    The first time I saw someone too lazy to do a simple web search I was quite polite in pointing it out. The few thousand times since then have depleted my patience. Maybe, just maybe, you should...
  23. Re: Sorting data in a combobox using the underlying data model

    Of there's a way and you've already been told what it is:Did you bother to make any effort to find out how to sort in descending order? I just Googled bindingsource sort descending and the first...
  24. VS 2010 Re: Acquire Sounds from the project folder itself

    It's important that you pay attention to the advice provided. In post #8 I said:You created a folder named "RPG Sounds" and placed your sound files in that, so they are going to exist in that...
  25. Replies
    9
    Views
    244

    VS 2008 Re: Disposing a custom class?

    You would dispose any objects that can be disposed, i.e. have a Dispose method. As for clearing fields, note that the TODO only says to clear large fields. It's not going to provide any benefit to...
  26. VS 2013 Re: Convert list of string to string

    Also, if you're targeting .NET 4.0 or later then there's no need to call ToArray. From .NET 4.0, String.Join takes an IEnumerable(Of String) or an IEnumerable(Of T) as well as a String array.
  27. Replies
    9
    Views
    244

    VS 2008 Re: Disposing a custom class?

    You really just have to look at the TODOs in the Dispose method. There are three tasks specified there:

    1. Dispose managed objects.
    2. Release unmanaged resources.
    3. Clear large fields.

    The...
  28. Replies
    9
    Views
    244

    VS 2008 Re: Disposing a custom class?

    The IDE basically tells you what to do if you let it. When you implement IDisposable, this is the boilerplate code that VS adds:Public Class Class1
    Implements IDisposable

    #Region...
  29. VS 2010 Re: Acquire Sounds from the project folder itself

    So you've added the file and copied it to the output folder. You still have to use it properly, so show us how you tried to do that. If it didn't work then presumably you did it wrong but we can't...
  30. VS 2010 Re: Acquire Sounds from the project folder itself

    No. This has got nothing to do with code. You add your files to your project in the Solution Explorer. There should be no resources folder because these are not resources. Resources are compiled...
  31. VS 2010 Re: Connecting to an FTP Server for access of a URL

    What would make you think that that would work? Read the words I posted and do what I said. Create a NetworkCredential object and assign it to the Credentials property of the WebClient.
  32. VS 2010 Re: Connecting to an FTP Server for access of a URL

    The WebClient has a Credentials property, to which you can assign a NetworkCredential object that you create.
  33. VS 2013 Re: Is there a better way to export a DataTable column to a text file?

    That is called a Lambda Expression. It's basically an inline method and can be used wherever a delegate is expected, where a delegate is a reference to a method. In the example, the Select method...
  34. VS 2013 Re: Is there a better way to export a DataTable column to a text file?

    You could do it more succinctly using a LINQ query but it's debatable whether that actually qualifies as "better" because it depends on your criteria. As I said in your other thread though, you're...
  35. VS 2013 Re: I need to find a more efficient way to derive a column in a DataTable

    The one thing that I can see that you're doing wrong is treating a typed DataRow like an untyped DataRow. Your TextToolsRow has a property for each column so you should be using those, not the Item...
  36. VS 2010 Re: Acquire Sounds from the project folder itself

    Using a Label is probably a bit too kludgy. If you wanted to you could call MessageBox.Show after creating the file path but this is a good chance to learn debugging techniques, i.e. set a...
  37. VS 2010 Re: Acquire Sounds from the project folder itself

    You probably did it wrong. What you should be doing is adding the file to the project in the Solution Explorer, setting its Build Action to Content and Copy To Output Directory to True. The IDE...
  38. VS 2010 Re: Acquire Sounds from the project folder itself

    The project folder doesn't exist at run time. Maybe you mean the program folder, i.e. the folder containing the EXE. In that case, you can use Application.StartupPath. You should also never use...
  39. VS 2013 Re: Read Text file / Search for Strings in Lines / Write to CSV file

    I'm not talking about that high-level logic. I'm talking about his part specifically:You need to be able to describe IN DETAIL how that is to be determined. It's obviously not as simple as just...
  40. VS 2013 Re: Read Text file / Search for Strings in Lines / Write to CSV file

    What is the actual logic you want to implement? Showing us an example is all well and good but if we don't know the logic then we don't know what to if the input is not exactly as it is in that...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width