Search:

Type: Posts; User: pimvdb

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. [JavaScript] Distinguish between WebSocket timeout and connection lost

    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...
  2. Replies
    0
    Views
    12,547

    setTimeout equivalent in VB.NET

    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...
  3. Replies
    4
    Views
    6,426

    Re: Passing delegate as parameter

    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,...
  4. Replies
    4
    Views
    6,426

    Re: Passing delegate as parameter

    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...
  5. Replies
    4
    Views
    6,426

    [RESOLVED] Passing delegate as parameter

    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,...
  6. Re: [UPDATE] Custom TabControl incl Designer, Tab-specific ContextMenus and Tab-Dragg

    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...
  7. Replies
    5
    Views
    3,164

    Re: Remove response headers

    Ok thanks, then I'll just leave it with only the X-Powered-By removed.
  8. Replies
    5
    Views
    3,164

    Re: Remove response headers

    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...
  9. Replies
    5
    Views
    3,164

    [RESOLVED] Remove response headers

    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...
  10. Replies
    6
    Views
    1,115

    Re: [RESOLVED] Need regex help

    That's much shorter indeed, I always leave code as it is when it's working... Thanks a lot!
  11. Replies
    6
    Views
    1,115

    Re: Need regex help

    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.

    ...
  12. Replies
    6
    Views
    1,115

    [RESOLVED] Need regex help

    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
  13. Replies
    8
    Views
    1,180

    Re: value="([0-9])+"

    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
  14. Re: [RESOLVED] Javascript split on only first space

    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...
  15. Re: [RESOLVED] Javascript split on only first space

    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...
  16. Re: [RESOLVED] Javascript split on only first space

    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...
  17. Re: Javascript split on only first space

    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...
  18. [RESOLVED] Javascript split on only first space

    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...
  19. Get size of objects in another window/process

    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...
  20. Replies
    4
    Views
    836

    Re: Save Downloaded File

    That should not be too difficult.

    Dim dlg=new SaveFileDialog
    if dlg.showdialog = windows.forms.dialogresult.ok
    dl.DownloadFileAsync(dwuri, dlg.filename)
    end if
  21. Replies
    9
    Views
    1,482

    Re: Default ToString while debugging (?)

    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...
  22. Thread: Email Verifier

    by pimvdb
    Replies
    6
    Views
    3,852

    VS 2008 Re: Email Verifier

    This might be interesting:
    http://vbcity.com/forums/t/148422.aspx
    but it provides no solution.
  23. Thread: Email Verifier

    by pimvdb
    Replies
    6
    Views
    3,852

    VS 2008 Re: Email Verifier

    Oh I'm sorry, I misread. I don't know the solution I'm afraid.
  24. Thread: Email Verifier

    by pimvdb
    Replies
    6
    Views
    3,852

    VS 2008 Re: Email Verifier

    A small search resulted in the following code:

    Function IsEmail(Byval email as string) as boolean
    Static emailExpression As New...
  25. Replies
    9
    Views
    1,482

    Re: Default ToString while debugging (?)

    Just to make it clear:

    the Point class:
    http://i40.tinypic.com/211u07.png
    and my own class:
    http://i39.tinypic.com/nqwwv8.png
  26. Replies
    9
    Views
    1,482

    Re: Default ToString while debugging (?)

    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...
  27. Replies
    9
    Views
    1,482

    Re: Default ToString while debugging (?)

    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...
  28. Replies
    9
    Views
    1,482

    Default ToString while debugging (?)

    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...
  29. Thread: screen capture

    by pimvdb
    Replies
    42
    Views
    31,551

    Re: screen capture

    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...
  30. Replies
    2
    Views
    14,867

    Re: [WIP] Advanced ToolStripContainer

    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...
  31. Thread: screen capture

    by pimvdb
    Replies
    42
    Views
    31,551

    Re: screen capture

    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...
  32. Replies
    2
    Views
    3,326

    Re: UserControl Property Value Limit

    It works perfectly, exactly what I wanted! Thanks! :wave:
  33. Replies
    27
    Views
    27,902

    Re: [2008] Transparent ListView

    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!
  34. Thread: Lazy Save

    by pimvdb
    Replies
    4
    Views
    4,170

    Re: Lazy Save

    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!...
  35. Replies
    2
    Views
    3,326

    [RESOLVED] UserControl Property Value Limit

    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...
  36. Replies
    3
    Views
    2,372

    VS 2008 Re: Run Shell() as administrator

    You're completely right, after another try it ran with administrator rights automatically.

    Thanks!
  37. Replies
    3
    Views
    2,372

    VS 2008 [RESOLVED] Run Shell() as administrator

    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...
  38. Replies
    30
    Views
    3,167

    Re: [RESOLVED] Letter combinations list

    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...
  39. Replies
    9
    Views
    1,079

    Re: OpenDialogue enhancement

    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.
  40. Thread: frmxxxx.vb file

    by pimvdb
    Replies
    6
    Views
    1,053

    Re: frmxxxx.vb file

    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...
Results 1 to 40 of 71
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width