Type: Posts; User: ChaosTheEternal
Search took 0.05 seconds.
August 16th, 2007, 01:26 PM
Without looking at the code, did you put breakpoints in your code at the first line of the command button's click event and the image's click event?
If you break into those and step through, you...
June 22nd, 2007, 03:36 PM
If IsNumeric is causing an issue, you could always try:
Common.UserLevel = 0
If Not Integer.TryParse(Common.UserLevel, Nothing) Then
IsUser = False
End IfReplace Integer with whatever...
June 15th, 2007, 04:47 PM
I had to type something, and I hate just saying "Here".
June 15th, 2007, 04:25 PM
Dev-C++, using the g++ compiler, gives a warning about it being a Divide by 0.
VS2005 gives the warning "potential mod by 0", but since it is Modulus division, it's still dividing by 0.
June 15th, 2007, 03:21 PM
If it weren't for the division by 0 and the missing label, then maybe you'd be able to figure it out.
Of course, that's assuming there's nothing fundamentally wrong with the Universe.
Well, I just noticed that it's a Public Function, so maybe it's located in a module and not a form, in which case there is no Me object so the check that you're not unloading wouldn't work.
At this point, you'll just have to see how it acts when you do an upload and see if the page redirects or just updates something on the page.
If it does redirect, you can use DocumentComplete (at...
First step would be to add the code as Gremmy shows so you don't call Unload on the form in the middle of your function. Next is to debug each form unloading.
Put a breakpoint on the line with...
Can't exactly replicate pressing Enter with a mouse click on an edit box.
I tried WM_KEYDOWN and WM_KEYUP in it's place, but the dialog wouldn't dismiss. You may just have to find the Open button...
It's a lot more complicated. FindWindowEx can only find children directly under the window you're looking in. The Edit control isn't a first child. The actual hierarchy (from Windows XP and IE7's...
For some reason, I believed the Timer control in VB6 was tied to the UI thread and wouldn't trigger if it were blocked.
I guess I'm wrong. And I'm glad to be proven wrong rather than falsely...
In VB6, with a Reference to Microsoft Internet Controls (using IE7) and the following code:
Private WithEvents ie As InternetExplorer
Private Sub Form_Load()
Set ie =...
Unfortunately, you can't. Using either the WebBrowser control or an IE object, if you programmatically click the "Browse" button, your program is blocked, waiting for the dialog to be dismissed.
I have VB 6.0 and VS2005 installed (in the order of VS2005 then VB6).
I see a reference to mfc80.dll and msvcr80.dll in the registry under:...
Hrm... they're both in my System32 folder, and both have multiple copies in multiple folders in WinSxS.
I found them in the former, hence why I suggested it.
If you're trying to set the Value property of an HTMLInputElement with the TYPE attribute of FILE, you won't succeed.
(e.g. the HTML tag looks similar to: <INPUT TYPE=FILE NAME="uploadfile"> )
Those DLLs do not "need to be installed" via regsvr32.
They are Visual C++ libraries (the MFC and CRT assemblies from VS2005, to be precise). They should work fine if you put them into your...
If they want to change where the page is stored, then the SRC attribute for the FRAME can change.
Frames are a normal part of HTML. While the intent of frames is generally to not require you to...
I thought it odd too, that I could load the page in a WebBrowser and your code wouldn't find a form, but viewing the source showed a FORM tag.
So, I looked through the WebBrowser1.Document object....
April 26th, 2007, 02:35 PM
You define labels in code with a ':' after the label text.
Starting with a ':' makes VB believe it's a blank statement.
April 26th, 2007, 12:07 PM
aniskhan's and Shuja Ali's comments highlight and solve your problem.
When the program creates Form1, it goes into the Sub New, which is defined as:
Public Sub New()
April 25th, 2007, 03:29 PM
It is doable with subclassing, but there can be a way to do it without subclassing.
If you need to have it always unmovable (e.g. when you change it to be unmovable, it will not be movable again...
April 25th, 2007, 12:25 PM
Option Base 1 means that that Dim statement makes an array that goes from 1 to 10.
Even Option Base 0 would have an index of 10 in that array, but you'd have 11 items (from 0 to 10).
April 25th, 2007, 09:48 AM
Did you read the page at all?
If you ran the installer, it registered itself. And do recall, it's called the Mozilla ActiveX Control (not the Firefox ActiveX Control), so you need to look for...
April 25th, 2007, 09:14 AM
Mozilla ActiveX control
Works similar to the WebBrowser control. The developer has a note, though, if you use the control:
Click Here to Expand Forum to Full Width