Search:

Type: Posts; User: paulg4ije

Page 1 of 9 1 2 3 4

Search: Search took 0.03 seconds.

  1. VS 2010 Re: Program hangs when debugging with no error messages

    I know, but how can you create an infinite loop by just calling a sub, which doesn't even get started? A breakpoint on the first line of the sub is never reached.

    It seems to be an issue with the...
  2. VS 2010 Re: Program hangs when debugging with no error messages

    Just tried running the .exe from the debug folder. Now I do get an error message; seems I've been caught out (again) by a "Mixed Mode Assembly" issue. The usual fix in App.Config doesn't seem to be...
  3. VS 2010 Program hangs when debugging with no error messages

    I have a program that using DirectX.DirectSound that generates various audio tones by filling a buffer with data, including all the required header bytes for a WAV format file. I've used this...
  4. VS 2010 Re: Open multiple files without starting multiple instances (Application.CommandLineA

    All OK now - rookie error! I forgot to prefix my method with the name of the form :o

    Many thanks to you both.
  5. VS 2010 Re: Open multiple files without starting multiple instances (Application.CommandLineA

    Many thanks for that. I had never noticed the "Single Instance" option. Very handy! I am getting an error when trying to handle the MyApplication_StartupNextInstance event, but I need to look that up...
  6. VS 2010 [RESOLVED] Open multiple files without starting multiple instances (Application.CommandLineArgs)

    I have a program that handles a particular (custom) filetype and I can start my program by double-clicking on an associated file. I use My.Application.CommandLineArgs to get the name of the file that...
  7. Re: First PHP code - help creating mutiple image pages

    I think I'm nearly there Justin. The crucial changes are:


    $i = $currentpage>1 ? ($currentpage-1) * $pageitemcount : 0;
    $ilimit = $i + 25;
    for($i;$i < $ilimit; $i++){

    I'm not getting the...
  8. Re: First PHP code - help creating mutiple image pages

    Still not quite working - first page OK but others are blank. If I echo $i and $pageitemcount just before for($i;$i < $pageitemcount; $i++){ I get 0 and 25 on the first page then 49 and 25 on page 2....
  9. Re: First PHP code - help creating mutiple image pages

    Thanks Justin. I'll check that 'multipart/form-data' bit tonight - I'm at work at the moment, on-site with a customer, watching 10GB of photos copy very slowly on to a memory stick ...

    I worked...
  10. Re: First PHP code - help creating mutiple image pages

    I think I have fixed the first error but I now have "Fatal error: Call to undefined function sprint()" at line 27, which is echo(sprint("<img src='%s' border='1' hspace='2'...
  11. Re: First PHP code - help creating mutiple image pages

    Many thanks for your help Justin. I'm getting an error: Parse error: syntax error, unexpected T_FOR at line 24, which is the line with for($i;$i < $pageitemcount; $i++){

    Any ideas?

    Paul.
  12. Re: First PHP code - help creating mutiple image pages

    Thank you :-)
  13. [RESOLVED] First PHP code - help creating mutiple image pages

    I am new to PHP (VB is my weapon of choice!) and I am trying to make an image viewer. I have a large number (say around 2000) of small images in a directory on my website. I would like to display...
  14. VS 2008 Re: Another Noob ): Button in Form 1 Draw Line in Form 2

    Lots of ways to go here. I would put my line drawing code in a public sub in Form2 and call it from the button click event in Form1. Just prefix your call with the name of the form - something like...
  15. Replies
    12
    Views
    312

    VS 2010 Re: Adding context menu items

    Thanks jmc. That all makes sense.
  16. Replies
    12
    Views
    312

    VS 2010 Re: Adding context menu items

    Thanks Paul. :wave:
  17. Replies
    12
    Views
    312

    VS 2010 Re: Adding context menu items

    OK, I think I'm there with something like:

    Dim t As ToolStripItem = mnuContext.Items.Item(3)
    Not sure why it has to be ToolStripItem and not ToolStripMenuItem though ...

    Thanks.
  18. Replies
    12
    Views
    312

    VS 2010 Re: Adding context menu items

    I did read your post "you could still access the item by index via the Items collection of the ContextMenuStrip" I just can't seem to get a handle on accessing the collection. The string thing of...
  19. Replies
    12
    Views
    312

    VS 2010 Re: Adding context menu items

    :o:o:o:o:o:o:o:o:o:o:o:o:o:o:o:o:o ... thanks Paul ... (hangs head in shame ...)
  20. Replies
    12
    Views
    312

    VS 2010 Re: Adding context menu items

    Thanks for that. Modifying the existing entry will be best. How do I access an item by index, as mnuContext.Items.Item(3) = "TEST" gives the error "property is read only" ?
  21. Replies
    12
    Views
    312

    VS 2010 [RESOLVED] Adding context menu items

    I have a context menu (mnuContext) created at design-time and I want to modify one entry at runtime. I can't see an obvious way to modify an entry so deleting and adding will be fine. I must be doing...
  22. VS 2010 Re: WebBrowser control - design mode - relative paths

    It's a shame there isn't a property to define the "starting directory" when in design mode. Lots of people in Google-land looking for the same thing as me. Anyway, I've managed to do the necessary...
  23. VS 2010 Re: WebBrowser control - design mode - relative paths

    After a bit more Googling ... it seems that using the WebBrowser control as an editor effectively navigates to about:blank and you can't reference files from there. There doesn't seem to be any kind...
  24. VS 2010 WebBrowser control - design mode - relative paths

    Is there any way to get the WebBrowser control (in design mode) to show images which are referenced with a relative path, such as this:


    <IMG src='page1_files/image1.jpg'>

    If I use an absolute...
  25. VS 2010 Re: "Could not find file" - is WebBrowser locking it?

    I think I've fixed it ... I had an apostrophe at the end of the filename :o

    I've spent hours on this ... trouble is an apostrophe is hard to spot at the end of an error message. That's my excuse...
  26. VS 2010 [RESOLVED] "Could not find file" - is WebBrowser locking it?

    I'm getting a "Could not find file" error when trying to File.Copy an image file which is currently being displayed in a WebBrowser control. The latter is in "design mode" and is being used as a...
  27. Replies
    4
    Views
    604

    Re: 2 web cameras and .net

    Just in case you want to try a different approach, I can recommend the Aforge.Net library - http://www.aforgenet.com/aforge/framework/

    I too gave up on avicap32.dll because I wanted better support...
  28. Replies
    2
    Views
    252

    VS 2010 Re: Some IDE questions

    "Show procedure line separators" was already checked, but turning it off then on has fixed the problem. I only had one form without separators, the rest in the project were fine. Very strange.
    ...
  29. Replies
    2
    Views
    252

    VS 2010 [RESOLVED] Some IDE questions

    I've been using VB.NET for quite a while but still find some "quirks" in the IDE:

    Suddenly one of my forms has no rules/lines separating the subs in code view. I guess I must have hit a secret key...
  30. VS 2010 Re: Writing text/HTML to WebBrowser control

    That is just perfect! Many thanks. :)
  31. VS 2010 Re: Writing text/HTML to WebBrowser control

    Doesn't work I'm afraid. The WebBrowser control goes blank and is not editable any more (no cursor appears when you click it). It's as if the tags get screwed up. I tried adding wb1.DocumentText =...
  32. VS 2010 [RESOLVED] Writing text/HTML to WebBrowser control

    I am working on a basic web page editor using mshtml.dll and a WebBrowser control. I want to switch between "design view" and "code view" - the latter showing the HTML tags etc. I can copy the HTML...
  33. VS 2010 Re: Make right-click equivalent to clicking left then right

    These snippets will give you the gist of it:


    Imports mshtml

    Dim Mdoc As IHTMLDocument2

    Mdoc = webbrowser1.Document.DomDocument
    Mdoc.designMode = "On"
  34. VS 2010 Re: Make right-click equivalent to clicking left then right

    I've just enabled edit mode in the WebBrowser control. Selecting an object when it's left-clicked is built-in functionality.

    Perhaps I should have asked a different question, as the idea of...
  35. VS 2010 Re: Make right-click equivalent to clicking left then right

    I don't think it would mess anything up. This is an editor, not a browser. Left clicking on an element highlights it; right-clicking does not. I'm sure there are multiple ways to get the...
  36. VS 2010 Make right-click equivalent to clicking left then right

    I am working on a WYSIWYG HTML editor using a Webbrowser control. I'm working on ways to edit objects/elements (images in particular) after they have been added to the control. I want a right-click...
  37. VS 2010 Re: Make Word save file as "Web Page, Filtered"

    It wont be a big deal to instruct my users (both of them!) that they must save the document as "Web Page, Filtered", and I can at least check that they have done so before uploading the file. I might...
  38. VS 2010 Make Word save file as "Web Page, Filtered"

    I am using MS Word's ability to save a file in HTML format to create a very basic website CMS system. Files must be saved with a .htm extension in the "Web Page, Filtered" file format that is...
  39. VS 2010 Re: How do you move the position of a background image inside a PictureBox?

    One solution would be to draw your loaded image on to a bitmap at the desired location, then assign that bitmap to the picturebox. Something like this:


    Dim bm As New Bitmap("c:\mypic.bmp")
    Dim...
  40. VS 2010 Re: Using a third part DLL in VB.NET (examples in VB6)

    Thanks guys (especially last three posts). I'll give it a go and report back.
Results 1 to 40 of 349
Page 1 of 9 1 2 3 4