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...
Type: Posts; User: paulg4ije
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...
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...
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...
All OK now - rookie error! I forgot to prefix my method with the name of the form :o
Many thanks to you both.
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...
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...
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...
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....
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...
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'...
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.
Thank you :-)
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...
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...
Thanks jmc. That all makes sense.
Thanks Paul. :wave:
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.
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...
:o:o:o:o:o:o:o:o:o:o:o:o:o:o:o:o:o ... thanks Paul ... (hangs head in shame ...)
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" ?
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...
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...
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...
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...
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...
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...
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...
"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.
...
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...
That is just perfect! Many thanks. :)
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 =...
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...
These snippets will give you the gist of it:
Imports mshtml
Dim Mdoc As IHTMLDocument2
Mdoc = webbrowser1.Document.DomDocument
Mdoc.designMode = "On"
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...
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...
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...
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...
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...
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...
Thanks guys (especially last three posts). I'll give it a go and report back.