Search Results - VBForums

Search:

Type: Posts; User: dday9

Page 1 of 13 1 2 3 4

Search: Search took 0.15 seconds.

  1. Thread: Validate a file

    by dday9
    Replies
    8
    Views
    107

    VS 2013 Re: Validate a file

    All files have certain attributes which include:

    Created
    Modified
    Accessed


    So to find if the file was modified then do something like this:

    Dim pdfFile As String = "my_pdf_file.pdf"
  2. Replies
    1
    Views
    69

    Re: Month Calendar bolded dates color (style)

    The MonthCalendar control is different from pretty much all other controls in that the drawing is done solely by the operating system. I have a codebank contribution here:...
  3. Re: 'Application' is ambiguous between declarations in Modules...

    What I would do is bring up your find box(Control + F), change the file search from current document to entire solution, and search for the keyword application. Then ignore any that you use...
  4. [HTML5/CSS] Fluid Horizontal Navigatoin with Search

    The following provides for a fluid horizontal navigation with a search box. The navigation is styled using a FlexBox to keep all elements, regardless of type, properly aligned. The search TextBox has...
  5. VS 2015 Re: File Compare and Move - Same File Name with Different File Extensions

    Comparing file names is simple using the wildcard character. Take a look at this example:

    'Get all the files
    Dim files As List(Of IO.FileInfo) = New IO.DirectoryInfo(IO.Path.Combine("dell2011",...
  6. Re: Button that copy's to clipboard the contents of a listbox

    Try:

    .SetText(ListBox1.Text)
  7. VS 2010 Re: How Can Load .JPG İmage file from HDD to Picturebox ? But with File Name we choos

    Rather than just posting "solved" could you post your solution? Many people use Google to search for their problems and if they see that they have the same problem that you had then they'll be...
  8. VS 2010 Re: Importing a file with a list of URL's that are seperated by a line

    I touched on this in my original post:

    If the button is disabled while the array is empty then you know for a fact that the exception will not occur. If you use a conditional statement to check if...
  9. VS 2010 Re: Importing a file with a list of URL's that are seperated by a line

    For your first step, use an OpenFileDialog. Create a new instance of the dialog with the desired properties, check for when it opens if the user clicks the OK button, and if so then read each line in...
  10. VS 2013 Re: Accepted way to validate numeric data? Try/catch?

    I would modify your code a little bit to this:

    If Integer.TryParse(txtAge.Text, age) Then
    MessageBox.Show(age)
    Else
    MessageBox.Show("Numbers only for age!")
    With txtAge
    ...
  11. Thread: Index on textbox

    by dday9
    Replies
    14
    Views
    170

    Re: Index on textbox

    I was free-typing it and treating your Array as a List(as I so often do):

    Dim index As Integer = Array.IndexOf(txtY, TextBox1)
  12. Replies
    10
    Views
    132

    Re: How to convert Timer to hour format h:m:s:ms

    Even a Timer class in the Timers namespace would suffice in a Console Application project:

    Imports System

    Public Module Module1

    Dim tmr As New System.Timers.Timer(500)

    Public Sub...
  13. Replies
    10
    Views
    132

    Re: How to convert Timer to hour format h:m:s:ms

    I urge you to strongly consider using dbasnett's code because what you're doing now is completely unnecessary.
  14. Replies
    5
    Views
    82

    Re: trying to speed this up (regex)

    I just did a quick test and Join was slower on 16k items on average of about 3 milliseconds. So I think that with the amount of lines that you'd save by calling Join justifies using it in this...
  15. Replies
    5
    Views
    82

    Re: trying to speed this up (regex)

    Use String.Join:

    strRegex = String.Join("|", forbiddenwords.Lines)

    By the way you don't need to use RegEx either, you could use String.Replace.
  16. Replies
    10
    Views
    132

    Re: How to convert Timer to hour format h:m:s:ms

    I've taken a look at the namespace that you're using(here) and it appears as though you got a Double value representing the number of seconds elapsed since midnight, and then had to do all sorts of...
  17. Thread: WFA or WPF?

    by dday9
    Replies
    15
    Views
    287

    VS 2015 Re: WFA or WPF?

    One thing that I've noticed with our members in the .NET community(including myself) is that we're very supportive of moving forward even if that means that you move away from .NET, but the moment...
  18. Thread: New to vb

    by dday9
    Replies
    7
    Views
    113

    Re: New to vb

    Load your Visual Studios, click on your Help menu, and tell us which version of Visual Studios you're using.
  19. Thread: WFA or WPF?

    by dday9
    Replies
    15
    Views
    287

    VS 2015 Re: WFA or WPF?

    :thumb: all the way!

    I get more frustrated with JavaScript and JQuery but at the same time there is no denying how powerful the two are.
  20. Replies
    13
    Views
    185

    VS 2015 Re: Overhead of a Static Variable.

    If you don't need to access your Static variables outside of the scope that they're declared then you should have no issues using Static variables. However, I personally prefer to use Private...
  21. Thread: Index on textbox

    by dday9
    Replies
    14
    Views
    170

    Re: Index on textbox

    The language you provided is VB.NET(although you're using some legacy code) and it appears as though what I suspected in post #2 in that it is more than likely a custom class with custom properties...
  22. Thread: WFA or WPF?

    by dday9
    Replies
    15
    Views
    287

    VS 2015 Re: WFA or WPF?

    Windows Form Applications are your traditional Win32 projects that you're familiar with.

    Windows Presentation Foundation projects are little bit different in that they incorporate XAML to style...
  23. Thread: Index on textbox

    by dday9
    Replies
    14
    Views
    170

    Re: Index on textbox

    OK I see. If you want to mimic the same behavior, rather than setting the Name property the same(you can't in VB.NET) then you should set the Tag property of each desired control the same and then...
  24. Thread: Index on textbox

    by dday9
    Replies
    14
    Views
    170

    Re: Index on textbox

    The control may be a class that inherits the TextBox and has its own custom property named Index because the base TextBox class has no such property.

    Something that is confusing me is that you say...
  25. Replies
    11
    Views
    268

    Re: interacting with MRP system

    ODBC stands for Open Database Connectivity. As it would have it, there is a .NET namespace for it(here). While I've never used the namespace personally it appears as though you'd use it as you would...
  26. Replies
    13
    Views
    185

    VS 2015 Re: Overhead of a Static Variable.

    I did a quick test:

    Private pvt As Integer = 0

    Private Function Overhead() As Long()
    Dim tmr As New Stopwatch
    Dim lngs(1) As Long
    Static stc As Integer = 0
    ...
  27. Re: [RESOLVED] JQuery Get Elements in Article With Tag

    Lol, 4 minutes after I bumped this thread I found a solution. I decided to add the following to my conditional statement:

    $(this).closest('article').is(':visible') &&
  28. Re: JQuery Get Elements in Article With Tag

    It has been a few days so I felt the need to bump this post(even though it is still at the top of the forum :eek:)
  29. Re: Touch Input / Virtual Trackpad / Avoid mouse movement on touch

    Moderator Actions: Moved to WPF forum
  30. Replies
    1
    Views
    96

    Re: control multiple listbox from one button

    You're able to insert, delete, or update values in multiple ListBox controls by using a single Button. However, something that you should consider is how will the user know if they are inserting,...
  31. Thread: InputDialog Demo

    by dday9
    Replies
    6
    Views
    555

    Re: InputDialog Demo

    What I like to do is create my delegate functions inside of a Region so that they're easily collapsible and kind of out of the way. This is so that the relevant(ie - when you need to do the...
  32. Thread: InputDialog Demo

    by dday9
    Replies
    6
    Views
    555

    Re: InputDialog Demo

    You'd do the initial setup:

    Private Delegate Function IsValidInput(ByVal input As String) As Boolean

    Private Function IsValidChar(ByVal input As String) As Boolean
    Dim value As Char
    ...
  33. Thread: InputDialog Demo

    by dday9
    Replies
    6
    Views
    555

    Re: InputDialog Demo

    For your isValidInput() I'd suggest using this as a Delegate to shorten the code and make it more organized.

    All in all though :thumb:
  34. VS 2015 Re: Label text appearing before progress bar finished

    The ProgressBar control in newer versions of windows(Vista on up I think) have a little bit of a lag from the time the value changes and the time the GUI reflects the change. It is suppose to mimic a...
  35. Replies
    28
    Views
    514

    Re: Visual Basic 2010

    This can still handle badly formatted sentences, simply add a space after each punctuation delimiter:

    {" ", ". ", ", ", "; ", "! ", "? "}, 'Etc...
  36. Replies
    28
    Views
    514

    Re: Visual Basic 2010

    You want to do the same thing only with multiple files. If you don't care about which file it is located in then join all the text files together. Here is an example with accounting for punctuations:...
  37. Replies
    28
    Views
    514

    Re: Visual Basic 2010

    You can add multiple delimiters to account for punctuation(if needed):

    .Split({" ", ".", ",", ";", "!", "?"}

    Edit - As I said, RegEx is great but it truly is overkill in this situation. Plus...
  38. Replies
    28
    Views
    514

    Re: Visual Basic 2010

    I'm all for RegEx when it's needed but I don't think that this is the case for it. I'd be more inclined to use the built in .NET methods:

    Dim words() As String =...
  39. Re: Backgroundworker with TextBox AutoCompleteStringCollection

    One thing that I noticed is that you're setting the AutoCompleteMode and AutoCompleteSource for each control every single time the BackgroundWorker does work, this is unnecessary. Do it only once, if...
  40. Replies
    7
    Views
    179

    Re: Comparing field names of two tables

    Here is how I'd approach it... First I'd use a LINQ query to select all the columns that have the same name, second I'd loop through each row in your first DataTable, third I'd use a nested loop to...
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.