Search:

Type: Posts; User: Zach_VB6

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    5,444

    Re: Shutting Down VB 6.0

    This is a classic question and the FAQs are a great reference on this topic:
    Classic VB - Why is using the 'End' statement (or VB's "stop" button) a bad idea?
    Classic VB - How should I close my...
  2. Re: Adding Multpile Things To List Box At Same Time

    Yoda, using an Object array here is not causing any harm. When you add it to the ListBox, it is converted to a string (.ToString()) and ultimately turned into a ListBoxItem, etc...

    The Integer...
  3. Re: Accessing SQL Server Database List from within VB.Net app?

    I just wrote on a thread that talked about the problem with SqlDataSourceEnumerator.GetDataSources, read here.
    http://www.vbforums.com/showthread.php?820029-SqlDataSourceEnumerator-Instance

    The...
  4. Re: Accessing SQL Server Database List from within VB.Net app?

    blakemckenna - There is a way using the Microsoft.SqlServer.Management.Smo Namespace. I'll find it and edit this post.
  5. Re: Regex Split on Whitespace EXCEPT in single quotes

    Why Split? I found Match to work here:


    Dim str = "a b c 'a b c' d e f"
    Dim match = Regex.Match(str, "('[^']*'|\S)+")
  6. Replies
    14
    Views
    8,909

    Re: SqlDataSourceEnumerator.Instance

    If you're looking for a solution, I would suggest running the PS script inside VB. You can also access WMI using ManagementObjectSearcher, but I find it's simpler this way.


    Imports...
  7. Replies
    12
    Views
    2,936

    VS 2005 Re: Parsing a string

    Since there are so many different delimiters, I would use Regular Expressions for this. I've written IRC bots in the past, and Regex has always been good to me!
    'Imports...
  8. Thread: vb error

    by Zach_VB6
    Replies
    7
    Views
    2,109

    Re: vb error

    Have you tried googling the error message?

    I found this post on VBforums: http://www.vbforums.com/showthread.php?596953-RESOLVED-Crystal-Reports-License-Error&p=3711789&viewfull=1#post3711789
    The...
  9. Replies
    11
    Views
    4,123

    Re: Getting real-time weather information

    OP probably doesn't want or need to pay for an API. He starts with "this is probably WAY over my abilities.."

    I think connecting to...
  10. Thread: VB Stocks

    by Zach_VB6
    Replies
    11
    Views
    2,746

    VS 2015 Re: VB Stocks

    Ok Ignore the WPF part - you may be able to understand data binding.

    Are you using a SQL database?
  11. Replies
    14
    Views
    8,909

    Re: SqlDataSourceEnumerator.Instance

    Quoted from MSDN:


    Shaggy - do me a favor and try running this PowerShell script. (Copy below code, Start->Run->type 'powershell'->right click in the blue area, press enter).


    #stolen from...
  12. Re: Creating interfaces and separating code

    This is how I would structure something like this. I don't see inheritance being of much help - however I think following general OOP rules and breaking things into smaller, localized classes will...
  13. Replies
    17
    Views
    2,267

    VS 2015 Re: Can someone help

    newborn63 - your first post has a serious logic flaw. You are parsing the user's input from TextBox1.Text into integer I. Then you using I as the Counter variable in the For loop. If you intend on...
  14. Thread: VB Stocks

    by Zach_VB6
    Replies
    11
    Views
    2,746

    VS 2015 Re: VB Stocks

    Newborn63 - when reading/writing from an external data source, I would highly recommend DataBinding and/or WPF :)
  15. Replies
    14
    Views
    8,909

    Re: SqlDataSourceEnumerator.Instance

    Relevant VS bug report: https://connect.microsoft.com/VisualStudio/feedback/details/1719418

    Have you tried changing the Target Framework to .NET 3.5?
  16. Replies
    13
    Views
    8,826

    Re: download file from dropbox by vb.net

    Imagine they do update the download process flow to something more complicated... Let's say it's moved off HTTP to HTTPS? Let's say they do add a captcha? Let's say they add a page that says "Click...
  17. VS 2010 Re: Make a program where the program count the even's and odds in a interruptin

    Your example doesn't make sense. Is your range meant to be inclusive (i.e. do we include 0 and do we include 20 in the range)? Your odds example - Odds [0, 21] would have 11 numbers if the range is...
  18. Thread: SQL Help

    by Zach_VB6
    Replies
    3
    Views
    613

    Re: SQL Help

    Did you mean to ask for a .NET implementation of the SQL request?
  19. Re: MSDN: A tri-value boolean, which can have five values, but only two are supported

    Yes we also have nullable? boolean in .NET
  20. Re: need help for some calculations in vb

    Dim product As Double = Math.Round(CDbl(Text1.Text) * CDbl(Text2.Text), 2)
    Dim leftSide As Integer = Fix(product)
    Dim rightSide As Double = product - leftSide
    Result1.Text...
  21. VS 2012 Re: Tech IQ: How Well Do You Know Visual Basic.NET 2012?

    I would have aced it if it wasn't for the Windows 8 questions! I fear Windows 8 :(
  22. Replies
    10
    Views
    2,361

    Re: Rock paper scissors code problem

    You have:
    Do Until loopCounter = 5
  23. VS 2010 Re: Good method to obtain linkage images of google images without API

    Oops, I meant to use System.Net.WebClient, not .WebBrowser
    Using wb As New System.Net.WebClient()
    Dim query = "Halo 4"
    query = query.Replace(" ", "+")
    Dim HTML =...
  24. Replies
    4
    Views
    978

    Re: Invoking button click

    Maybe instead of clicking the button you could try submitting the form?



    htmlform.InvokeMember("submit")
  25. VS 2010 Re: Good method to obtain linkage images of google images without API

    First step: GET source of https://www.google.com/search?q=halo+4&tbm=isch
    Second step: Use Regex or other string manipulation to parse image URLs out:


    Using wb As New System.Net.WebBrowser()...
  26. Replies
    46
    Views
    5,346

    VS 2010 Re: List displayed in a Textbox

    for reference
  27. Replies
    3
    Views
    845

    Re: Code to model a phone

    What is the displayLength method?

    Function displayLength() - no arguments, yet you call it with 1 parameter
  28. Re: Program for word palindromes using functions, almost finished program!

    StrReverse :'(

    Function Reverse(ByVal value As String) As String'http://www.dotnetperls.com/reverse-string-vbnet
    ' Convert to char array.
    Dim arr() As Char = value.ToCharArray()
    ' Use...
  29. VS 2010 Re: Using Regex to replace all characters before a specific word

    Dim output = Regex.Replace(input, "^[a-z0-9 ]+: ", String.Empty, RegexOptions.IgnoreCase Or RegexOptions.Multiline)
  30. Replies
    4
    Views
    1,999

    Re: Inventory Collection Form

    What is the .txt format?

    Also I'd recommend Do Until inventoryFile.Peek < 0
  31. Replies
    3
    Views
    949

    5.0 Re: [RESOLVED] Open a CSV file

    Debug the value of values[2], it may not be an integer.
  32. Replies
    10
    Views
    1,167

    Re: calculation help (takeaway)

    Try using DateAdd (doc: http://www.vb6.us/tutorials/understanding-vb6s-dateadd-function)


    TextBox1.Text = DateAdd("n", -10, TextBox2.Text)
  33. Replies
    32
    Views
    5,864

    Re: form load not firing

    Have you tried adding breakpoints? Is the code executing? What is not working?
  34. Re: Counter. How many times form opened?

    You would have to connect to a website to do something like that.
  35. Re: Screenshot taken every X seconds and displayed on a website...

    Ok this might take a little work. Here's a developerfusion Class that could help you! It is in C# but also has a VBNet version.
    http://www.developerfusion.com/code/4630/capture-a-screen-shot/

    ...
  36. Replies
    32
    Views
    5,864

    Re: form load not firing

    Is it possible other code is running before MyBase.Load?

    Try putting your intialization code in Public Sub New()
    Public Sub New()

    ' This call is required by the designer.
    ...
  37. Replies
    19
    Views
    2,708

    Re: Loop through alphabet to find a file

    Check out Directory.EnumerateFiles: http://msdn.microsoft.com/en-us/library/dd383571%28VS.100%29.aspx

    The EnumerateFiles and GetFiles methods differ as follows: When you use EnumerateFiles, you...
  38. Replies
    10
    Views
    3,053

    VS 2012 Re: Move focus rectangle listbox items

    'Down:
    lstBox.SelectedIndex = Math.Min(lstBox.SelectedIndex + 1, lstBox.Items.Count - 1)
    'Up:
    lstBox.SelectedIndex = Math.Max(lstBox.SelectedIndex - 1, 0)
  39. Replies
    10
    Views
    1,694

    Re: listbox loop then start over.

    How many times do you want it to loop back to the beginning?

    Simply take your listbox loop:

    For y = 0 To List1.ListIndex - 1
    '...
    Next y

    And put that inside of a loop:
  40. Replies
    13
    Views
    1,919

    Re: find and display email address from textbox1

    Dim m As Match = Regex.Match(TextBox1.Text, "\b[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}\b", RegexOptions.IgnoreCase)
    Dim emails As String = String.Empty
    While m.Success
    emails &=...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width