Search:
Type: Posts; User: Zach_VB6
Search:
Search took 0.10 seconds.
-
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...
-
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...
-
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...
-
blakemckenna - There is a way using the Microsoft.SqlServer.Management.Smo Namespace. I'll find it and edit this post.
-
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)+")
-
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...
-
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...
-
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...
-
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...
-
Ok Ignore the WPF part - you may be able to understand data binding.
Are you using a SQL database?
-
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...
-
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...
-
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...
-
Newborn63 - when reading/writing from an external data source, I would highly recommend DataBinding and/or WPF :)
-
Relevant VS bug report: https://connect.microsoft.com/VisualStudio/feedback/details/1719418
Have you tried changing the Target Framework to .NET 3.5?
-
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...
-
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...
-
Did you mean to ask for a .NET implementation of the SQL request?
-
Yes we also have nullable? boolean in .NET
-
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...
-
I would have aced it if it wasn't for the Windows 8 questions! I fear Windows 8 :(
-
You have:
Do Until loopCounter = 5
-
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 =...
-
Maybe instead of clicking the button you could try submitting the form?
htmlform.InvokeMember("submit")
-
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()...
-
-
What is the displayLength method?
Function displayLength() - no arguments, yet you call it with 1 parameter
-
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...
-
Dim output = Regex.Replace(input, "^[a-z0-9 ]+: ", String.Empty, RegexOptions.IgnoreCase Or RegexOptions.Multiline)
-
What is the .txt format?
Also I'd recommend Do Until inventoryFile.Peek < 0
-
Debug the value of values[2], it may not be an integer.
-
Try using DateAdd (doc: http://www.vb6.us/tutorials/understanding-vb6s-dateadd-function)
TextBox1.Text = DateAdd("n", -10, TextBox2.Text)
-
Have you tried adding breakpoints? Is the code executing? What is not working?
-
You would have to connect to a website to do something like that.
-
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/
...
-
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.
...
-
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...
-
'Down:
lstBox.SelectedIndex = Math.Min(lstBox.SelectedIndex + 1, lstBox.Items.Count - 1)
'Up:
lstBox.SelectedIndex = Math.Max(lstBox.SelectedIndex - 1, 0)
-
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:
-
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 &=...
|
Click Here to Expand Forum to Full Width
|