I am having trouble getting the following code to work in FireFox (3.6.4), however, it works perfect in Chrome (5.0.375.70) and IE (8.0.7600.16385).
Operating system is Windows 7 32 Bit.
Silverlight Version(4.0.50401.0)
System.Windows.Browser.HtmlPage.Window.Confirm("Are you sure you would like to Remove this?")
As a matter of fact, it not only does not work in FireFox, but it pops up the dialog box, then you must end the FireFox process in order to continue working. Has anyone else had this issue? Is there a fix?
Thanks,
Eric
Yes I had the same problem with Firefox but you should be able to get around it by using Silverlight's MessageBox command with the optional MessageBoxButton.OKCancel flag.
MessageBox.Show("Are you sure?", "Warning", MessageBoxButton.OKCancel);
Related
I have an application in vb.net that I'm testing out in Windows 10 and I seem to be getting an error (Images below). This app works flawlessly in Windows 7, and it actually works without any issues in Windows 10, the problem is, when I exit the application is when I get the error.
The way it's structured, is if I run it from IDE, i first see a Login Windows where user logs in and then goes to MENU. If it's run in our environment, user does not have to log in, so the log in form never appears, it goes directly to MENU.
Everything works great, until I go to EXIT Application, where it gets all messy, this is the code from EXIT button...
Dim Answer as Integer
Answer = MsgBox("Are you sure you wish to Close the application ?", MsgBoxStyle.YesNo)
If answer = vbYes Then
End
End If
These are the errors I get:
First I get this error, clicking on CLOSE PROGRAM closes it completely, if I click debug I get the below windows....
With the 2nd error it shows that I actually have VS2010 and VS2012, and it lets me debug. The issue is, the source code is in TFS, and it just so happens that I can't access the TFS from my windows 10 machine, (only from Win 7). So I can't debug it. But is there a reason why this is happening only in windows 10?
I even went as far as doing Me.Close() before END to make srue that the form is closed. And again, it works fine in Win 7, but win 10 it gives me the same problems.
Using "End" to close a program can be problematic; the comments and answer to this SO question explain why that is. As for the second issue that popped up once using Application.Exit(), that is a simple case of your program referencing multiple assemblies that have function calls with the same name. In this case, both the explicitly imported Microsoft.Office.Interop.Excel and implicitly imported System.Windows.Forms have "Application.Exit()" members. Since you have explicitly imported Excel, the compiler goes with that one when it's forced to decide which Exit() to use, which throws an error because of the context it's being used and doesn't actually close the program. To rectify that, all you have to do is explicitly tell the compiler which Exit() you want to use by replacing
Application.Exit()
with
System.Windows.Forms.Application.Exit()
Does anyone happen to know why the pagingTextBox doesn't work when using the dgrid pagination? It works fine in FireFox and Chrome but when hitting the enter key in the textbox in IE, it does nothing. I'm using IE 10, but also tried with IE 8. I need this functionality in all 3 browsers. Thanks.
The only event that the paging textbox listens for is change. Apparently, pressing enter registers this event on Chrome and Firefox but not IE. I'm not sure what the reasoning is behind that.
This seems like a legitimate issue to report on dgrid's GitHub issues page though. It shouldn't take too much effort to fix, even if it means listening for 2 types of events.
I`m struggling with this for a week already. I used this example How to get started with developing Internet Explorer extensions? and it works flawlessly even in Win 7 64 bit IE 10 but not in Windows 8 64 IE 10.
It loads up correctly but just does nothing, even with a simple MessageBox put in OnDocumentComplete(). Though I found people on different forums confirming they have made it run, so all I am asking is, just an example that works.
Thanks in advance.
"Register for COM interop" tick box in the Build section of the project properties did the trick. Funny enough any other combination of software and browser works fine without it.
I have read the advice on posting a question that should be as precise as possible and used the advanced search facility so I hope my question has not been covered previously.
NOTE: I am not a programmer and can only just about find my way around code (in my site`s cpanel).
My site`s login popup box does not work in Firefox - although it did so for 3 years prior, up until a few weeks ago, so maybe there is an issue with a recent FF update). It does however work OK in Chrome.
Hovering over the login/register text shows the alt tag "Click to show popup login form" but nothing happens when clicked.
Can you provide a URL for others to see what you're referring to?
Firefox was just updated to version 18 I believe. I would try and downgrade to 17 just to confirm that it's an issue with FF. If it is I'd open an issue with mozilla (https://bugzilla.mozilla.org/). Also search there for your issue.
If I use IE I can visit the website I want and click the 'Next' button and life is good. If I open that same website using the webBrowser control and click the 'Next button I get a javascript error message.
I'm not doing anything in the code to manipulate the website. My goal, eventually, is to have some level of automation; but at this point, I get the javascript error and a pop-up and it screws everything else.
I can hide the JS error from popping up; by setting 'WebBrowser1.ScriptErrorsSuppressed = True' but the page isn't working because of the error.
The client script might be assuming a full browser is present and trying to access part of the browser outside the Document Object Model (DOM) of the page. For example, maybe the client script is trying to display something on the browser's status bar, or trying to modify a toolbar which isn't available in the WebBrowserControl. There could be numerous similar reasons.
If you do not have write-access to the web page in question to try fixing it, then play with WebBrowser Control properties such as ScriptErrorsSuppressed and ObjectForScripting
Try setting WebBrowser1 Silent property to true.
Actually, you are receiving this problem because when you run your site in IE8 or IE9 on your normal internet explorer desktop app, you are getting either IE8 or IE( rendering, depending on which you have installed. However, with the webbrowser control, unless you take the effort to change soem settings in the registry, the default rendering engine used by the webbrowser control is IE7 (if u have 7, 8 or 9 installed) and IE4 (if you have 4, 5 or 6 installed).
This is why you are having the problem, if you want help changing the rendering engine version for your webbrowser control, do a google search as there are many examples on SO, and i have provided this answer in some of my previous posts on this tag/topic. feel free to search or ask me.
Let me know how you go.