Search:

Type: Posts; User: ForumAccount

Page 1 of 13 1 2 3 4

Search: Search took 0.06 seconds.

  1. VS 2008 Re: Want a list of all files in a folder, getfiles command failing at junctions

    There are too many different permutations of behavior for what the developer might want with a file/folder list retrieval. This is why most of the time they expect the developer to write their own...
  2. VS 2008 Re: Want a list of all files in a folder, getfiles command failing at junctions

    If you want to be able to get a list of files from a folder, and skip folders/files where you don't have access (or some other exception), then you'll have to write your own recursive or queue based...
  3. Density-Based Spatial Clustering of Applications with Noise (DBSCAN)

    How to use:

    1. Add Dbscan.vb to your project.
    2. Add Dbscan.txt to your project, set the Copy to Output Directory property to Copy always on it.
    3. Add a chart (from the...
  4. Density-Based Spatial Clustering of Applications with Noise (DBSCAN)

    How to use:

    1. Add Dbscan.cs to your project.
    2. Add Dbscan.txt to your project, set the Copy to Output Directory property to Copy always on it.
    3. Add a chart (from the...
  5. VS 2010 Re: reading x amount of bytes from a networkstream.

    An alternative is to return an empty array:

    Return New Byte() {}
    But this really depends on how the function will be used.
  6. Re: Cannot Understand how to do simple multi tread.

    Check out BackgroundWorker components. They provide support for cancellation and you can easily find some documentation and examples that will show you how to properly implement it.
  7. Re: Getting ugly code outputted. Any suggestions?

    1. Turn Option Strict On for all your future projects.
    2. It's actually not TextBox3, it looks like it is Label3:

    Label3.Text += String.Concat(userInput1, operatorSymboladd, userInput2)
  8. Replies
    4
    Views
    844

    VS 2012 Re: Parse a string into a list

    Yes, you could do this with a regex. In general, it would work fine. The only issue I see would be if you nest classes inside a class. All methods inside that nested class would get pulled out but...
  9. Re: VS 2012 exp + MS Access + TableAdapter Insert Question - Get AutoNum value?

    To answer a couple of your side questions:

    1) I (personally) wouldn't use MS Access. MySQL is compatible with the Entity Framework.
    2) I'd probably use the Entity Framework for this application....
  10. Re: VS 2012 exp + MS Access + TableAdapter Insert Question - Get AutoNum value?

    MAX(AutoNumberColumn) should work. I know that (unless it has changed) there is no @@IDENTITY or SCOPE_IDENTITY() equivalent in Access, however the seed used by the table should always increase and...
  11. Replies
    2
    Views
    828

    Re: Saving a PDF in SQL 2008

    Every file is just binary, that means you can represent all of them in .NET using a byte array. Sounds like you've already setup the SQL column to be varbinary, perfect, that is what you need. You...
  12. Replies
    5
    Views
    2,796

    Re: GCHandle to Convert Bitmap to IntPtr

    "SomeAPICall" would be where you pass in the address of your now pinned bitmap to whatever API you wanted to use it with. It is not crucial to the pinning process, it's merely showing that you can...
  13. Replies
    9
    Views
    6,740

    VS 2010 Re: Formatting the chart control

    Formatting Axes

    98433
    98435
    98437
    98439

    Controlling Scaling
    98433
    98435
  14. Re: [.NET 3.5+] ShellFile - Managed Wrapper To Retrieve Extended Properties

    No, wrap the code in a Try Catch Block and place a breakpoint on the Catch clause. Drill into the exception properties (View Details) and retrieve that stacktrace. You can also go to Debug >...
  15. Re: [.NET 3.5+] ShellFile - Managed Wrapper To Retrieve Extended Properties

    Please provide the stack trace of the error message.
  16. Re: Faster way to get the last N newest files in a directory???

    You can call EnumerateFiles with a DirectoryInfo. All this information is in the documentation, I know that Stanav could have figured it out.
  17. Re: Faster way to get the last N newest files in a directory???

    I would suggest not using GetFiles, it will have to populate the entire array before the function returns, the EnumerateFiles is a much better choice for large file sets - this is mentioned in the...
  18. Re: Faster way to get the last N newest files in a directory???

    Right off the top I can suggest Directory.EnumerateFiles. The following is a quote from the documentation for the method:

    This will basically mean that the EnumerateFiles will have deferred...
  19. Thread: New look

    by ForumAccount
    Replies
    26
    Views
    3,459

    Re: New look

    Hate the new look. You would think as programmers we would understand "don't fix what ain't broke" the best. I am not an old-timer like some of the posters that have mentioned that should make their...
  20. Replies
    4
    Views
    991

    VS 2010 Re: Check if today's date changes

    Set the timer interval to whatever internal you want, store the previous date and do a comparison of the .Day property of the previous date to the current date.
  21. VS 2008 Re: Getting coordinates from a bookmark in msword

    There is a Bookmarks property on the DocumentClass, my guess is that you would loop through that to get what you need. Relevant information here: DocumentClass.Bookmarks Property
  22. VS 2010 Re: Using System.Drawing in console app

    Just add a reference to the System.Drawing library under the .NET tab.
  23. Replies
    2
    Views
    707

    VS 2010 Re: scrolling container?

    A DataGridView will supply scrollbars if the content does not fit entirely on the screen. If you want actual controls, such as buttons or comboboxes to appear 'off screen' so the user has to scroll...
  24. Re: Can executable packers protect .NET based application from decompiling?

    Currently working on a hack for Shaggy's mind, will post source code when done. Preliminary results show that Shaggy's thought distribution is:

    80% Llamas
    15% How to feed Llamas
    5% What was I...
  25. Replies
    3
    Views
    1,009

    Re: Visual Basic Memory Info

    There is no image, as for an answer, I do not know. Maybe with WMI but I haven't checked - that's your job.
  26. VS 2008 Re: Open a CommonDialog(VB6..esque) to let user choose a directory?

    FolderBrowserDialog lets you browse for a directory. For some advanced Vista/Windows 7 dialogs (such as a folder browser dialog that looks like the Open/SaveFileDialog) you can check out this link:...
  27. Replies
    4
    Views
    3,132

    VS 2010 Re: show multiple Crystal Report

    It is possible to merge PDFs, however there is no managed way to do it. You will have to look at third party libraries such as iTextSharp and see if they support that functionality.
  28. VS 2010 Re: How do I tell the garbage collector to dispose of a class?

    This completely depends on the scope of the class. Will you be actually accessing resources (such as streams) in the class that will require it to be disposed and release objects properly? If yes,...
  29. Replies
    5
    Views
    1,634

    Re: Finding a Memory Leak In My Code...

    First, a memory leak pertains to objects not getting disposed properly. The actual memory usage of the application will go up in this case. You mentioned CPU, this is something different. I glanced...
  30. Re: Conversion failed when converting the varchar value ' ' to data type int.

    Check your insert statement and verify that the correct columns are mapping to the correct parameters.
  31. Replies
    8
    Views
    2,135

    Re: Converting this 2008 code to 2010.

    As Shaggy said, what is happening is that you are encountering Option Strict. This should have been on from the beginning because it's clear that you don't see what is happening. Going forward, you...
  32. Replies
    4
    Views
    3,132

    VS 2010 Re: show multiple Crystal Report

    I see a few problems with your code:

    If you want to loop through the selected rows of the DataGridView, you should be using the .SelectedRows collection.
    You declare a new report at the top of...
  33. Re: Conversion failed when converting the varchar value ' ' to data type int.

    This won't affect anything.

    Go to where you are adding the value for 'CCAF', make sure that you are indexing the row with that column name and not just passing that column name (sneaking...
  34. Replies
    8
    Views
    11,079

    Re: Sorting list of objects

    Paul, what unit of weight are you using?!
  35. Re: Can executable packers protect .NET based application from decompiling?

    Nothing is secure in this day and age, but for the sake of the thread did you look at .netshrink?

    Pick any language you want, it won't be secure. If it were, don't you think software giants such...
  36. Re: VB 2010 Express: Disallow Enter Anything in Textbox

    Unless the user want's to copy the text from said text box... Then the label is the frustrating part.
  37. Re: VB 2010 Express: Disallow Enter Anything in Textbox

    Set the ReadOnly property to true.
  38. Re: VB 2010 Express Add Reference COM or .NET

    Yes it is a typo. The Office libraries are COM and not .NET. Use the COM one.
  39. Re: Conversion failed when converting the varchar value ' ' to data type int.

    In the first post you are accessing the values from the row. That is how you should still be doing it. Specify the value from the row (index with your column names) as the Value for your AddWithValue...
  40. Re: Conversion failed when converting the varchar value ' ' to data type int.

    The next parameter is the value, what value do you want? Where does it come from? Fill it in there.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width