Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.22 seconds.

  1. Re: Is creating subroutines instead of nested ifs a waste or inefficient.

    I was talking in more of a general sense and, when I say "very small", I actually mean "miniscule" in most cases.
  2. VS 2013 Re: import all filenames from HD into single column in access database

    Look at the AcceptChanges method.
  3. Replies
    6
    Views
    141

    VS 2010 Re: Problem with User Control

    That should be:
    For Each pchk As Control In panEngine.Controls
    If TypeOf pchk Is PicCheckBox Then
    pchk.BackColor = Color.Transparent
    End If
    Nextor, even better:
    For Each pchk In...
  4. Replies
    6
    Views
    141

    VS 2010 Re: Problem with User Control

    I don't see how that first code snippet makes sense. You have a For Each loop but you don't use the loop control variable inside the loop and you do exactly the same thing each iteration. Should...
  5. Replies
    6
    Views
    181

    Re: modifying the code

    Are you saying that you want to display a series of numeric ranges? Something like this:
    Dim increment = 1000

    For minValue = 0 To 5000 Step increment
    MessageBox.Show(minValue & " - " &...
  6. Re: Need clarification about the use of Namespaces

    Certainly the secondary purpose of namespaces is to categorise types. There are so many types in the .NET Framework, your own projects and third-party libraries that finding them and knowing what...
  7. Re: Need clarification about the use of Namespaces

    Yes, that's exactly what you would do. What don't you get? What exactly do you think the MyDLLApp part is in that code? It's a namespace! That is what you get from namespaces: the ability to...
  8. Re: Need clarification about the use of Namespaces

    There is no "standard" TextBox. There is the System.Windows.Forms.TextBox and there is the System.Web.UI.WebControls.TextBox and there are others too.

    In any code you write, every type name you...
  9. VS 2013 Re: import all filenames from HD into single column in access database

    Maybe you should actually read what I posted. I didn't do it for my health and I don't expect to have to post the same thing twice because you couldn't be bothered to read it properly the first...
  10. Re: Need clarification about the use of Namespaces

    You may think that you didn't define a namespace but you actually did. When you create a project, a root namespace is defined in the project properties and, by default, it is the same as the project...
  11. VS 2013 Re: import all filenames from HD into single column in access database

    OK, so that means that you're inserting the data rather than updating it. Do you understand how a data adapter works? Presumably not.

    A data adapter is basically an object that aggregates the...
  12. VS 2013 Re: import all filenames from HD into single column in access database

    Perhaps you could post the error message, rather than a screenshot of the error message that is too small to read.
  13. Re: How to calculate sum of all the total text box to Grand Total Text Box in VB 2010

    You're hijacking this thread for a topic unrelated to the original question. Once you have access to the controls, summing their contents is the same regardless. You're asking how to access and...
  14. Re: Is creating subroutines instead of nested ifs a waste or inefficient.

    Code like that is basically self-documenting, as long as the method names are descriptive. Even if it's well-commented, a single method with many lines of code and lots of nesting soon gets...
  15. Re: VS 2013 - Updating TableAdapterManager Raises An Error

    To be precise, a primary key isn't actually necessary. If you want to be able to act upon a specific record then you have to be able to identify that record, which means that it must have some...
  16. Re: How to calculate sum of all the total text box to Grand Total Text Box in VB 2010

    Personally, I would pretty much never rely on control names if I could avoid it, especially for controls created at run time. Those controls should be added to a specific container - maybe the form...
  17. VS 2013 Re: import all filenames from HD into single column in access database

    I don't believe you knew that the FileInfo objects were going to be required when you made that original suggestion, so I don't hold you responsible. ;) This shows why people need to look at code...
  18. Replies
    8
    Views
    170

    Re: Batch command in specific folder ??

    So what did you find when you read the documentation for Process.Start to see what arguments it does take? Don't sit and wait for information to find you. Go look for it. There's a Help menu in...
  19. VS 2013 Re: import all filenames from HD into single column in access database

    So, can you not get the extra data before saving the data? If you do that then all you need is to insert all the data once.
  20. Replies
    8
    Views
    170

    Re: Batch command in specific folder ??

    You don't call Shell. You should basically never call Shell in VB.NET. You call Process.Start.
  21. Re: Statement is not valid in namespace (TIC TAC TOE)

    Most likely the class declaration was there but deleted, either accidentally or on purpose.
  22. VS 2010 Re: When you begin creating an application, what........

    I guess we need to differentiate here between project planning and application design. Every project should be planned quite carefully, unless it's something you're doing for interest's sake and you...
  23. VS 2008 Re: VB.Net, mdb, datatable, error in update records

    When you get that message about a syntax error in an insert or update command while using a command builder, it is almost certainly because one or more of your column names either are reserved words...
  24. Replies
    9
    Views
    206

    Re: Multithreading many times.

    Why exactly do you need a specific number of threads? It's not really recommended. It's generally better to use the ThreadPool and let it manage the number of threads.
  25. VS 2013 Re: import all filenames from HD into single column in access database

    So what's the answer?
  26. VS 2013 Re: import all filenames from HD into single column in access database

    What's not to understand? It's all the same data isn't it? The only difference is the brand. If you were creating a database for sales in a store, would you have a separate table for the purchases...
  27. VS 2013 Re: import all filenames from HD into single column in access database

    What are you actually trying to do here: just insert new rows, just update existing rows or potentially both?
  28. 2.0 Re: SQL connection in the app.config file?

    Check out this CodeBank thread of mine:

    http://www.vbforums.com/showthread.php?532768-NET-2-0-Protected-Configuration-%28Encrypting-Config-Files%29&highlight=

    It's a VB project but it...
  29. VS 2013 Re: import all filenames from HD into single column in access database

    Using Directory.GetFiles to get a list of file paths and then looping through that list and creating a FileInfo for each one is silly. Just use DirectoryInfo.GetFiles in the first place and you'll...
  30. Replies
    8
    Views
    170

    Re: Batch command in specific folder ??

    Go to the VB.NET CodeBank forum and sort by Thread Starter. Amongst the threads started by gigemboy you will find one about Automating A Command Prompt, which shows you how to redirect the output...
  31. VS 2010 Re: When you begin creating an application, what........

    I haven't ready every post in detail but I'm not sure that anyone has touched on experience level as factor in how much planing you should do. Unfortunately, the less experienced people are, the...
  32. Re: I am having issues upload attachments

    This is not a General PC issue. It's a forum issue and thus belongs in Forum Feedback. I have asked the mods to move this thread.
  33. Re: VS 2013 - Updating TableAdapterManager Raises An Error

    Firstly, some house-keeping. To be precise, you're not updating a table adapter. The table adapter is updating the database. I think that it's important to think of these things in the correct way...
  34. Replies
    8
    Views
    188

    Re: Need help to make my Pay button work.

    Firstly, please use formatting tags when posting code snippets. Especially with long snippets, lack of indenting makes them very hard to read. Here's how your code should look:
    Public Class...
  35. Re: A question about Visual Basic 2010 Express project folder

    I think that Tortoise should have a filter set up by default that should exclude pretty much all the files that you don't need to keep under source control. Look in the options and see what the...
  36. Re: Prevent WebBrowser Control open external browser

    I'm not sure why they chose to do it this way but one of the weaknesses of the .NET WebBrowser control is that the NewWindow event doesn't get raised under all circumstances in which a new window...
  37. Re: Want to practice inheritance of a windows control.

    Firstly, what you've shown is a method rather than a property. Secondly, every control already has a Right property, so what you are suggesting is not useful or even possible without shadowing.
    ...
  38. Re: How can you properly benchmark a VB .NET or any other application

    The first place you should look is the System.Diagnostics namespace. If you want details of system resource usage then the PerformanceCounter class is almost certainly going to be useful.
  39. VS 2013 Re: Check to see if a DateTime.Now is between two variable times.

    The first thing to determine is whether the start and end times will always be on different sides of midnight or not. If they are then the logic is as follows:

    If the current time is greater than...
  40. Replies
    9
    Views
    302

    Re: Message Box "OK" Hijacked by Timer

    The .NET implementation of MsgBox actually calls MessageBox.Show internally. That means that anything MsgBox can do, MessageBox.Show can do. Some of those things would require use of Integers where...
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.