Search Results - VBForums

Search:

Type: Posts; User: dday9

Page 1 of 13 1 2 3 4

Search: Search took 0.14 seconds; generated 7 minute(s) ago.

  1. Replies
    17
    Views
    258

    Re: Lets Build a Program

    004 Private _x As Int32
  2. Replies
    4
    Views
    152

    VS 2013 Re: I really need your help

    As I said, it's very simple. Create a string variable at the form level, this variable will hold the original contents of the hosts file. Then in the form's load event use IO.File.ReadAllText to read...
  3. Replies
    17
    Views
    258

    Re: Lets Build a Program

    I'd like to see where this goes.


    002 Option Strict On
  4. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    125115
  5. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    Going... Gone... It's all relative.
  6. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    My in-laws have a FAT rabbit that they domesticated. I think one day they may not come home to a rabbit, and that same night I'll be chowing down on some good lean rabbit meat.
  7. Replies
    5
    Views
    86

    Re: zkemkeeper.dll issues with Windows 8

    I've split the post off onto it's own thread into the office development forum which is for VBA questions.
  8. Replies
    2
    Views
    159

    Re: vbforums.com very slow response

    I've been having the same issues, but not solely with VBForums. It seems to either be our provider or some networking issue, though we prefer to blame our provider.
  9. VS 2013 Re: vb.net How to remove double links from listbox

    One option to delete duplicates would be to get all items from the collection only using the distinct clause:

    Dim items(MyListBox.Items.Count - 1) As Object
    MyListBox.Items.CopyTo(items, 0)...
  10. Replies
    4
    Views
    152

    VS 2013 Re: I really need your help

    That would be simple, just store the value of the HOST file in a string variable when the form loads. Then if something goes wrong, use button3 to clear all the contents of the HOST file and write...
  11. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    But it did do it for the first one.
  12. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    Well apparently not because it didn't do it for that one.
  13. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    I just found that if you post in all caps, but size number 1, the casing gets lowered:
    THIS IS ALL CAPS = THIS IS ALL CAPS
  14. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    post race!
  15. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    That's because in the matter of a few minutes the post will be pages behind the most up to date post, forever lost in the abyss known as the post race.
  16. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    For some reason I read memo like Nemo is pronounced.
  17. Re: How to get a special txt file in a special file?

    Do not start a new thread on the same issue. I deleted the other thread.
  18. Thread: Post Race!

    by dday9
    Replies
    59,383
    Views
    2,387,867

    Re: Post Race!

    Post Race.
  19. Re: How to get a special txt file in a special file?

    If you noticed... I edited that out in #10 and that was never included in #14.
  20. Replies
    5
    Views
    121

    VS 2012 Re: Tax Calculations and Textbox Displaying

    Same here. Try displaying your code by pasting the code in code tags, they look like this:

    'Hello world!
  21. Re: How to get a special txt file in a special file?

    Yeah, I was using the EndsWith method wrong. Try this:

    Private Function ReturnFiles(ByVal directory As String) As IO.FileInfo()
    Return New...
  22. Re: How to get a special txt file in a special file?

    As I said, I'm unable to test it because I do not have Visual Studios installed on this computer. I'm testing everything on dotnetfiddle and you're unable to use IO commands due to security reasons....
  23. Replies
    5
    Views
    171

    Re: Get Names from Active Directory

    It is your outlook active directory path, I'm unsure of what it is. But that should be something that you know.
  24. Re: How to get a special txt file in a special file?

    Oh, ok. I misread your original question. Try this function instead:

    Private Function ReturnFiles(ByVal directory As String) As IO.FileInfo()
    Return New...
  25. Replies
    5
    Views
    171

    Re: Get Names from Active Directory

    You would call it as you would any other function:

    Dim matches() As IO.FileInfo = ReturnFiles("Active Directory Location Here", "TextBox Value Here")
  26. Replies
    5
    Views
    171

    Re: Get Names from Active Directory

    While I haven't tested it, try this function:

    Private Function ReturnFiles(ByVal directory As String, ByVal filename As String) As IO.FileInfo()
    Return New...
  27. Replies
    2
    Views
    566

    Re: Java Regex for PO Box Validation

    Here is one example of matching a PO Box:

    /(po|p.o|p.o.|p o){1} (box){1} (\d)+/ig

    Broken down...

    (po|p.o|p.o.|p o){1}
    Match either po, p.o, p.o., or p o exactly once. Followed by matching...
  28. Re: excel doenst respond after macro excel 2013

    Moved the thread to office development which is for VBA questions.
  29. Replies
    17
    Views
    354

    Re: Webpage Text Into Array

    I don't know why you're so hung up on trying to use an array for this, perhaps it is because your VB6 background. It is inefficient and there is a better way. That way is to load the HTML into an...
  30. Re: How to get a special txt file in a special file?

    Because the file is a Text file, then you will need to use one of the various IO commands:

    IO.File.ReadAllLines
    IO.File.ReadAllText
    IO.StreamReader.ReadToEnd

    In each of those links, there...
  31. Re: How to get a special txt file in a special file?

    Ok, so do you want to scan a folder to find all text files or do you want to scan a file to confirm that it is a text file?
  32. Re: How to get a special txt file in a special file?

    I don't understand what your question is.
  33. Re: How to get a special txt file in a special file?

    You can always use SubString:

    Dim fileName As String = "yhflkajslkasdjflae1.txt"
    Console.WriteLine(fileName.Substring(fileName.LastIndexOf(".txt") - 1, 1))

    Another option is to use RegEx:
    ...
  34. Replies
    7
    Views
    166

    Re: assigning arrays to a list box

    No, in the example that I gave I show how AddRange should be used. The code that you presented assigns your strArrayNames variable to your ListBox's Items's AddRange method which shouldn't even allow...
  35. Replies
    7
    Views
    166

    Re: assigning arrays to a list box

    The first step that you would need to do is to declare and initialize your arrays:

    Private names() As String
    Private numbers() As Integer

    Private Sub Form1_Load(ByVal sender As Object, ByVal e...
  36. Replies
    16
    Views
    272

    Re: Warm welcome to my recruit

    I think that boops boops will be upset :eek:
  37. Replies
    16
    Views
    272

    Re: Warm welcome to my recruit

    Thanks for joining blue_bubble! If you have any questions just ask away in the appropriate forum. What language are y'all primarily using dee-u?
  38. Replies
    2
    Views
    136

    VS 2013 Re: Changing string value with checkbox ?

    You're actually able to shorten 4x2y's code by using the If operator:

    Dim EncryptionKey As String = If(TextBox2.Enabled, TextBox2.Text, "12345")
  39. Thread: Fibonacci

    by dday9
    Replies
    0
    Views
    104

    Fibonacci

    The following is a code snippet representing the Fibonacci number:

    int fibonacci(int value) {
    if (value < 0) {
    return -1;
    } else if (value == 0) {
    return 0;
    } else if (value < 2) {...
  40. Replies
    12
    Views
    208

    Re: IndexOutofRangeException

    Take a look at this array if it is a single string:

    Imports System
    Public Module Module1
    Public Sub Main()
    Dim strData As String = "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00...
Results 1 to 40 of 484
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.