Search:

Type: Posts; User: RudiVisser

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    10
    Views
    1,874

    2.0 Re: Multithreading question

    The GUI can't be modified from a different thread, nor can any attributes of it's children (Controls).

    The description on MSDN is actually really good for this topic, including a great example.
    ...
  2. Replies
    10
    Views
    1,874

    2.0 Re: Multithreading question

    Basically you can't access controls on a form, they need to be accessed from the same thread that they were created on.

    To do this, you should use this.invoke(). It's argument is a delegate of...
  3. Replies
    2
    Views
    844

    Re: Customized GroupBox?

    You can always create a control that extends the Panel class, and override the drawing to do your own thing.
  4. Replies
    7
    Views
    1,045

    Re: Shutdown windows firewall issue

    Provided your application is elevated..

    using System.ServiceProcess;

    ....

    public void StopFirewall() {
    ServiceController serviceController = new ServiceController('MpsSvc');
    ...
  5. Replies
    0
    Views
    3,284

    C# ShiftList

    using System;
    using System.Collections;
    using System.Collections.Generic;

    namespace MageUK
    {
    /// <summary>
    /// A list that will shift elements down the array like a timeline.
    ///...
  6. Replies
    2
    Views
    732

    Re: Large amount of simultaneous clients

    Bumpety Bump Bump... Surely somebody has done something like this before........ c'mon
  7. Replies
    2
    Views
    732

    Re: Large amount of simultaneous clients

    Upon trying to implement this using .ReceiveTimeout on a socket.. The first call times out after 3 seconds and throws

    A connection attempt failed because the connected party did not properly...
  8. Replies
    2
    Views
    732

    Large amount of simultaneous clients

    Hello

    I work with alot of network applications, however there is generally only ~300 clients connected to a TCP connection at any one time.

    Due to the low amount of clients, each one has it's...
  9. Replies
    18
    Views
    1,178

    Re: PHP MySQL "Update" Problem

    Well if no error's being outputted either then it has to be working...
  10. Replies
    18
    Views
    1,178

    Re: PHP MySQL "Update" Problem

    put echo mysql_error(); right under the line $query = ...
  11. Replies
    18
    Views
    1,178

    Re: PHP MySQL "Update" Problem

    First thing is don't echo/print out soooo much HTML code, there's no point, just close the PHP tags.

    Secondly, do this:

    <?php
    $query = mysql_query("UPDATE `nek` SET address = '$address',...
  12. Replies
    0
    Views
    3,764

    Simple object type/value dump

    It's nothing special, and it obviously doesn't contain every single class/type that you're ever gonna come across, however it could be useful in certain situations, such as debugging or logging.

    ...
  13. [Linux] Redirecting parent functions from shared object

    Hi deLusion`

    Okay so an implementation of the following would be if you need to redirect a library to another one.

    For example, application aaa.x86 loads bbb.so, and you would like to load your...
  14. [3.5] Graphics.MeasureString/TextRenderer.MeasureText return incorrect values

    Hi..

    Both functions above return completely incorrect values after the first measurement, I don't really understand it.

    Font: Segoe UI, 18pt

    I don't think words can really describe the...
  15. Replies
    10
    Views
    542

    Re: And they said Obama wouldn't Rap!

    http://uk.youtube.com/watch?v=wzyT9-9lUyE
    http://uk.youtube.com/watch?v=3_rOCDG_btk

    Edit: Plus ILMV, since the vid was released on 04 november, 2008, that's fairly impossible :p
  16. Replies
    32
    Views
    1,262

    Re: what is the best php editor

    My favourite is Dreamweaver for the simple fact it follows the highlight_string/highlight_file functions... I haven't found another editor that does yet.
  17. Replies
    8
    Views
    584

    Re: Creating Chat Room

    There's a (super) simple example here: http://www.vbforums.com/showthread.php?t=539132
  18. Replies
    3
    Views
    836

    Re: [3.5] Getting WMP 'Now Playing'

    Bumpety bump, nobody knows??
  19. Replies
    3
    Views
    836

    Re: [3.5] Getting WMP 'Now Playing'

    That's just for the control, I've looked around a bit and there seems to be no way to access the current instance (without a plugin).
  20. Replies
    3
    Views
    836

    [3.5] Getting WMP 'Now Playing'

    Hey

    Does anyone know of a way to get the song that's now playing from Windows Media Player 10+?

    Much appreciated thanks :)
  21. Replies
    2
    Views
    587

    Re: - Vs ^

    - is the subtraction operator and ^ is bitwise XOR.

    http://uk3.php.net/language.operators.bitwise

    You shouldn't be doing E_ALL - E_NOTICE.
  22. Re: [RESOLVED] [Picture] How to change text....

    http://whitelight.me.uk/imagegen.php?mode=1&name=Testing&shadow=true&usefull=1

    Well there's what it does :)

    Basically loads in a background then draws some text based on the options you set!...
  23. Replies
    11
    Views
    1,301

    Re: Use Laptop Screen As Monitor

    Try MaxiVista if you want to use it as a computer monitor.
  24. Re: [Picture] How to change text....

    Here's a (rather large, sorry) example of a 'dynamic' image.


    <?php
    define("ROOT", "./signaturestuff/");
    include(ROOT."defaults.php");
    switch((isset($_GET['mode'])?$_GET['mode']:0)) {
    case...
  25. Replies
    0
    Views
    3,846

    SimpleChat - Asyncronous Server/Client

    Here's what I called 'SimpleChat' as an example application for (very simple) asyncronous/thread programming.

    Complete project is attached. If you're looking for ways to learn from it maybe you...
  26. Replies
    3
    Views
    732

    I'm intrigued (object->int)

    Hi everyone

    Not a question on how to do something, just why the following isn't possible (As an example):

    Hashtable ht = new Hashtable();
    ht.Add("test", 5);
    int blah = (int)ht["test"];

    I...
  27. Replies
    2
    Views
    5,984

    Re: Borderless Forms with a Border

    Oh yes that's a very nice way to do it! Thanks :)
  28. Replies
    6
    Views
    642

    Re: What are header files for?

    Probably the simplest explanation I wrote is one I wrote for a question about "#include":
  29. Replies
    5
    Views
    757

    Re: [3.0/LINQ] Foreach loop problem?

    Microsoft's solution to problems like this is as follows:

    foreach(Control ctl in this.Controls) {
    try {
    MyCustomControl mycc = (MyCustomControl)ctl);
    // do your if statement...
  30. Replies
    24
    Views
    1,291

    Re: stripslashes cut off data

    Have you tried using mysql_real_escape_string?
  31. Replies
    12
    Views
    819

    Re: Data Encryption issue

    No of course not, if there's actually going to be 500000 records, and since the encryption is not simply for data comparison, I really suggest the non-encrypted route.......
  32. Replies
    12
    Views
    819

    Re: Data Encryption issue

    Either don't encrypt the data or get all of the results out of the database and then search through the records (in PHP) in a loop.
  33. Replies
    3
    Views
    640

    Re: How to filter preg_match_all result

    <div class="photo_index_item">
    <div id="dvImgListHypImage">
    <a...
  34. Replies
    3
    Views
    640

    Re: How to filter preg_match_all result

    foreach($matches as $key => $match) {
    if(!preg_match("the html you want to match", $match)) {
    unset($matches[$key]);
    }
    }
  35. Re: Help with preg_match function

    Well then you look closely and I'm sure you'll figure it out:

    of </div><a class="pagingLink" href="javascript:__doPostBack('ctl00$cpMain$UserViewPictureControl$PagerTop','4')">4</a>


    'of <a...
  36. Re: Help with preg_match function

    http://www.vbforums.com/showthread.php?t=527371
    http://www.vbforums.com/showthread.php?t=527310
    http://www.vbforums.com/showthread.php?t=527357

    You have to be joking that you've posted almost...
  37. Replies
    5
    Views
    563

    Re: Hash function

    You mean how do you see the characters that the binary values represent?
  38. Replies
    3
    Views
    671

    Re: Headerfiles confusion.

    Try putting #include <windows.h> first (MSDN Recommendation):
    #include <windows.h>
    #include <winsock2.h>
    #include <ws2tcpip.h>

    You also need to include the ws2_32.lib too unless you've done...
  39. Replies
    24
    Views
    1,164

    Re: [2.0] Switch case

    Turns out I actually read the whole thing wrong and that he was posting invalid code in the first place, from which I continued on to do so (no brackets in my example either). :wave:
  40. Replies
    24
    Views
    1,164

    Re: [2.0] Switch case

    Most likely, also the compiler, the OS it runs on, etc.

    I've rated this thread 5* for it's comical factor :thumb:
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width