Search:
Type: Posts; User: Empyreal
Search:
Search took 0.05 seconds.
-
Alright; that gave me a few ideas. I'll try them out, see what I come up with and update this post with the results when I'm done. Thanks for your help so far.
-
Ok, I have a list of websites. What the program does is navigate to each of those websites in the list, retrieve the innertext of an HtmlElement, then navigate to another page depending on data...
-
I guess that could work, but since the load time for each page is variable, this method would either navigate to the next page before it was done loading, or leave a lot of extra time between...
-
Here's the situation: I need to navigate to a list of sites and retrieve data from them; I know how to retrieve the data, but I'm unsure of the best way to navigate to each of these sites.
...
-
I went ahead and tried a few of the other overloads and found one that worked. Here is the modified code.
Dim DestRect As New RectangleF(0, 0, (ImageFile.Width / 3), (ImageFile.Height / 3))
Dim...
-
I'm not sure how to use DrawImageUnscaled to draw only a specific portion of an image. It doesn't seem to have arguments that are similar to the DrawImage function.
Edit: Alright; I'll try using a...
-
-
I'm trying to split an image into 9 smaller images; the code I wrote works fine for an image with dimensions that are evenly divisible by 3 (i.e. 150x150), but seems to cut stuff off for images with...
-
Wow; that could get really confusing. I think I understand it enough for now, I'll keep this in mind should I come across this again. Thanks everyone. Thread resolved.
-
This post is EXTREMELY confusing.
@Shaggy Hiker: I get it now, thanks for the explanation.
I just want to confirm that I can use:
Dim NewList As New List(Of Integer)...
-
To be blunt, that sucks. Is this a known error or is this just "how it works."
-
I was making a program just to experiment with assorted sorting algorithms, and I found that even though I was using ByVal (not ByRef) my list was being sorted outside of the function I was sorting...
-
There are a number of things wrong with this; first, both of your current if blocks have similar conditions in them, for this reason, I'd pull them out and make a nested if stated; second, the '&'...
-
Wow; that was simply an excellent answer. Thread resolved. Thanks everyone for your help.
Now everything makes sense.
-
@Tassa: Haha; I'm kind of disappointed in myself that that worked. But do you have any idea on how to give it a default value of something other than nothing?
@Kebo: If you ever figure out that...
-
Yes; all optional parameters need default values, but I'm unsure of how to give a list a default value when it is a parameter.
I thought it'd be something like this:
Optional ByRef...
-
I understand there are advantages to using overloaded functions, but I'm not extending my function any more than that one optional parameter. Another reason I decided to use an optional parameter...
-
Ok, now I get it. But that seems kind of redundant. I mean what you suggested is exactly what the optional parameter is for. I was more looking for a solution than a workaround.
-
I don't understand how what you suggested pertains to my question.
-
Is it possible to have an optional parameter of the type list?
Ex.
Private Function TestFunction(Optional ByRef MyList As List(Of Double))
The real problem is giving the list a default...
-
What will it be clicking on?
-
-
This is getting ridiculous; stop telling us what it does. We know. What are you going to use it for? Why do you want to send a click for every click you make? "Just because" is not a valid answer.
-
By color do you mean the color of the text, the background color, or another specific part of the control?
Most controls have a forecolor and backcolor property that will change the color of the...
-
If Me.txtEquation.Text <> String.Empty Then
Me.txtSeperated.Text = "<number> "
For Each EquChar In Me.txtEquation.Text
Dim OperatorMatch As Match = Regex.Match(EquChar,...
-
http://www.regular-expressions.info/anchors.html
Above is another site with a really good explanation of anchors. Look at the "Using ^ and $ as Start of Line and End of Line Anchors" section.
-
Well, yes it wouldn't match the newline character, but isn't that what the "$" does?
-
No, that's the period (.). The star (*) matches the character(s) preceding it 0 or more times.
I.e. "[a-z]*" would match "a", "abfds", "asdlfkdjalskfjasladfgklad", and so on.
-
Your right; it did work. But why?
-
Thanks for that site; I'll actually probably use that a lot now =P
I set up a simple test to compare that site to Vb.net:
Regex: "^[a-z]*$"
Text:
"testone
testtwo
testthree"
-
I'm talking about the multiline option in the regex class. Sorry, should have been more specific but I forgot all about the multiline property of the textbox =P
Anyway, I'm not trying to use regex...
-
I could do that, but, to my understanding, that's exactly what the multiline option does, so why go through all that trouble?
-
-
If this was my string:
"oneword
twoword
threeword"
Your regex would return the following matches:
(0)"oneword
twoword
-
I've been working with Regex and I've run into something that doesn't make sense to me; I either misunderstood how the Multiline option works, I'm not using it right, or it really just doesn't work...
-
Assuming you only want valid decimals, this would be a better approach:
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
...
-
You could change the DropDownStyle of the combobox to DropDownList; then the user won't be able to type in anything at all.
-
Create another form:
Dim AnotherForm As New Form
Show the form:
AnotherForm.Show()
Hide the form:
AnotherForm.Hide()
Close the form:
-
The for each statement uses an enumerator, which is used to handle a collection of objects that do NOT change; so when you remove a control, the size of the enumerator changes, and you get an error;...
-
TextBox1.Text = "Process.Start(""Http://Google.com"")"
Probably could have easily found the answer to this by searching...
Good search engine: http://www.google.com
|
Click Here to Expand Forum to Full Width
|