Search:
Type: Posts; User: pimvdb
Search:
Search took 0.03 seconds.
-
I made up this very trivial trick to determine whether a HTML5 WebSocket disconnected because the connection was lost or because no connection could be made.
I don't think it's such a complicated...
-
Sometimes I just need a function which will execute something after a specified period of time. In JavaScript, this is extremely easy using setTiimeout. I miss this in VB.NET, so I implemented my own...
-
Wow, thanks a million, this really helped me!
This is what I ended up with, it's a kind of setTimeout equivalent from JavaScript in vb.net.
Friend timers As New Dictionary(Of Integer,...
-
Thanks for the detailed explanation, it's very helpful!
However, if I'm not wrong, the signature must be exactly the same. Actually I'd like to create a Sub, which takes a delegate and arguments...
-
I'd like to create a function myFunc with one parameter, which is a delegate. I should be able to call it with a delegate as parameter.
E.g.
myFunc(addressOf testFunc)
But how do I code myFunc,...
-
I love it, thanks.
Firstly, a tip: If you don't want the cursor changing (let it stay the default one), add this to cTabControl.vb:
Protected Overrides Sub OnGiveFeedback(ByVal e As...
-
Ok thanks, then I'll just leave it with only the X-Powered-By removed.
-
Thanks. I am requesting data from the server every 5 seconds with a XMLHttpRequest, so receiving headers like Server etc. is just a waste of bandwidth in my opinion.
I took a look at Apache, and I...
-
I am using a XMLHttpRequest to frequently request data from the server. The data is kept to a minimum, however I noticed that certain headers are sent every time. When I dived into Chrome's Developer...
-
That's much shorter indeed, I always leave code as it is when it's working... Thanks a lot!
-
Thanks both, in the end I ended up with something untidy, but it works... It's no regex though.
The string cannot contain a underscore, but that's never the case in my situation.
...
-
Is it possible to replace the commas by enters, but not the commas which are between brackets?
For example, the string
a, b, [c, d], e
should become:
a
b
-
It looks like a regular expression, it could mean that only numbers are allowed in he element.
This might be a nice website:
http://www.datypic.com/books/defxmlschema/chapter10.html
-
I'm a very beginner and don't even understand the basics of regexp yet. It looks much clearer and also very useful in certain situations like this. Thanks a lot, I'll start searchiing for some regexp...
-
Thanks for your reply and sorry for not being clear. The string I am actually working with is (it's from a game):
Selling 1 H.a.m. boots at 1810, 0% complete, earning 0 gp so far
I should also...
-
In such case it's very simple indeed, but I needed a function so that I can also get '20' out of 'I have 20 nice cookies' or something like that. But the function I posted above works perfectly for...
-
Well, I decided to make my own function for this, it works at least.
parseOut('I have 20 nice cookies', ' ', 2, ' ', 1);
returns 20. It's not exactly what I was asking for but this is what I...
-
I guess this is a stupid questen but I cannot find a solution. What I want is to split a string, but with a limit. Say I have the following string:
20 nice cookies
I'd like to get an array...
-
I've seen screenshot applications in which there is an option of selecting a region by choosing an object in a window. For example, you can select the textbox of Google Chrome; the screenshot...
-
That should not be too difficult.
Dim dlg=new SaveFileDialog
if dlg.showdialog = windows.forms.dialogresult.ok
dl.DownloadFileAsync(dwuri, dlg.filename)
end if
-
Thanks for the interesting article. I'll check it out. However, for fonts it doesn't say 'Microsoft sans serif, 8pt', but '{Name = "Microsoft Sans Serif" Size=8.25}'. It may also just be something...
-
This might be interesting:
http://vbcity.com/forums/t/148422.aspx
but it provides no solution.
-
Oh I'm sorry, I misread. I don't know the solution I'm afraid.
-
A small search resulted in the following code:
Function IsEmail(Byval email as string) as boolean
Static emailExpression As New...
-
Just to make it clear:
the Point class:
http://i40.tinypic.com/211u07.png
and my own class:
http://i39.tinypic.com/nqwwv8.png
-
Thanks. It does work when typing class.ToString in the Watch window, but not when typing class in the Watch window...
I think this is something different. For a Point, the ToString returns...
-
I already tried that, but with no luck. For testing purposes, I just have
Public Overrides Function ToString() As String
Return "test"
End Function
but it does not make it show...
-
First of all, I'm sorry for my unclear title but this is what I mean.
With most classes, you directly see the values of it whilst debugging. For example, if you have a Point variable, and you put...
-
Actually I already tried to enhance the speed, but with no luck. Removing the invalidating part even didn't matter, it was painted well without but didn't speed up the whole. My computer sure isn't...
-
This looks like something that can become very useful. :)
I'd really love to see the features you'd still like to have implemented. The first I already got working for a big part, but the second...
-
I like your project, especially how you've made the rectangle selection work.
However, to be honest the selection is drawn quite slowly. It might be my computer that is the problem, but...
-
It works perfectly, exactly what I wanted! Thanks! :wave:
-
That's amazing - I actually needed this in my application and by accident I see this! Perfect, I'm going to use it in my application!
-
I love this piece of code. I'm making a general DLL for my projects that contain all kinds of functions to make programming easier for me, and I'll certainly add your code to the library! Thanks!...
-
I am making an UserControl which has several properties. One of them should have a specific range of the value - it should only be possible to set the value of the property with a number from 1 to...
-
You're completely right, after another try it ran with administrator rights automatically.
Thanks!
-
I have an update app, which can be updated itself by another update app (so, the second app is an updater of the main updater). Both apps must have administrator permissions because of writing in the...
-
I now also see why it was not working at first - I already had declared a variable name 'a' somewhere in my code file. In the future I will try to make variable names which make more sense. I'm sorry...
-
What would you like to do? Read the contents and put the two contents in a textbox? You can use My.Computer.FileSystem.ReadAllText to read the contents into a string and do whatever you want with it.
-
I assume you have Visual Studio.
1) Open Visual Studio
2) Create a new project (standard Forms project)
3) In the solution explorer, click on the button 'Show all files' to show unhidden files...
|
Click Here to Expand Forum to Full Width
|