VS 2005 - Disable Javascript
Aug 31, 2009I read on the forum that it is possible to disable javascript in the webbrowser1 control (vb6). But the code doesn't work in vb.net. Is there a code to disable javascript in vb.net?
View 1 RepliesI read on the forum that it is possible to disable javascript in the webbrowser1 control (vb6). But the code doesn't work in vb.net. Is there a code to disable javascript in vb.net?
View 1 RepliesI'm using Visual Basic 2010 Express and I'm trying to disable JavaScript in one of my webbrowsers and not the others.I've searched around the web for the past hour and haven't found anything that really fits what I need.Also, I already know about the Internet Options dialog. I want to have my program do it programmatically.
View 15 RepliesHow to disable javascript in webbrowser control? How to do this in vb.net? Any registry should be changed?
View 4 Repliesi am selecting values to my textbox from a popup window and i hav used onfocus="this.blur();" for textbox, i want to disable this function in editbutton while i want to edit . i cant use readonly since the value is not passed to server due to postback,
View 3 RepliesIs it possible to disable some scripts in a webbrowser, but not all?
View 2 RepliesIs there a way to disable javascript webbrowser in vb.net 2010
View 5 Replieshow do I disable browsing to a http link from a Html editor. I have a vb.net web form with a html editor, when I add a hyperlink to the html editor, for example my application website for instance[URL]...When I run and click the link I can browse my application from inside the Html Editor which is so weird.It should open the link in a new window. How do I stop this from happening.This is an Intranet application. And the component for Html Editor is of TMS.
Or is there any Javascript code available where I can deactivate the link from an HtmlEditor, i mean when i add any hyperlink it should be not be activated , or no should be able to browse it from inside the HtmlEditor ?
Can we use CSS or Javascript in our VB.net projects? Or if not what do I need to do to create a more robust looking form?
View 2 RepliesI want to create a json object in vb.net to send the response back javascript function to do something?
View 2 RepliesI'm creating a game and I have 29 labels,1 menu and some buttons on my form and i want to disable all the label controls in that form when game is over. . . .i use For each next but it will give me errors. . . .
dim obj as control
dim L as label
for each L in controls
[code]....
I have a problem with my datagridview.
here goes:
1. I have a datagridview that displays borrower's information.
2. upon click on the leftside button of the row (fullrowselect) the controls are auto populated with data. (userid, library card no. etc..)
3.here is my datagridview cell click event
Private Sub grdBorrowers_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles grdBorrowers.CellClick
With borrowers
Try
[Code]....
4. the problem is when i click on a cell that is not an integer it creates an error.
5. my idea is to disable the cells inside the grid. only userid or the leftside button should be enabled. how can i do that? is that possible?
I have set KeyPreview Property of the form to True and in the KeyDown event capturing the 'Enter' key to navigate to the next control on the form (using Me.SelectNextControl). But for one particular textbox i dont wish to perform the form's keydown event instead i want that when the user keys ctrl+enter it should perform some particular task. I have noticed that when the keypreview is on the keydown event of the textbox isn't executing.. The following is the code i have used for textbox keydown
[Code]...
I am trying to enable/disable a checkbox depending on whether or not a match is found on the checkbox name and a list of controls. When I step through the code and pass the line "ChkBox.Enabled = pbEnable", the Enabled value does not change. In this case the state before the change is False. pbEnable is True.[code]
View 2 Replieshow to disable mouse scrolling only in selected combobox..ex. i want only scroll function ius disable only in combobox1 and combobox2
View 5 RepliesI have two datetime pickers that when changed call a function that validates the two dates and changes them as needed. This currently causes a loop where the function changes the dates on the datetime pickers that triggers the function again...
So I would like to disable the datetime pickers valuechagned function while the function runs then re-enable it after it makes the required changes.
Private Sub dtpStartDate_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dtpStartDate.ValueChanged
subValidateDate()
[Code].....
Have a webbrowser in my project, and I want to be able to disable java at certain times?? how do you disable java?
View 5 RepliesIs there anyway to disable/remove "Restore" button in MDI Child form while child form is in Maximized state?I have set "ControlBox = False". Although this remove the whole control box including "Close".Case is I want this "Close" button but not "Minimize" or "Maximize/Restore" button.Is there anyway to do this without using API?
View 4 RepliesI want to disable file upload from internet explorer, firefox or any browser. Is there any registry entries or methods we can do this.If disabling only upload is not possible than if we can disable download upload both than also it will be good.
View 4 RepliesI am confused what will happen, when I disable a timer. Will it finish the process and then disable or will it immediately disable without completing process? for example
[Code]....
I want to run getMessage from somewhere else, so I need to disable timer during that time to be asured not to override anything and also before timer disable it should complete that function code.
to disable right click and to disable the start button and task bar?
View 4 RepliesI have a button on vb form and its click event will call Windows to run "system32calc.exe" which is work great. My problem is I do NOT want to have multiple calculators running even if i click the button more than once. Is there any way to detect the calc.exe runing and then disable my button event to call calc.exe?
[Code]...
I have written a web usercontrol (ascx). Inside, there is a Panel that I want to show/hide on click of a hyperlink inside the usercontrol. Normally, this is easy just by doing something like this (the onclick attribute is added to the hyperlink on prerender):
[Code]...
i have windows app i want to disable the sound card and enable the sound card by using command button
View 2 RepliesI have a datalist and in itemdatabound iam calling javascript and passing one argument.But iam not getting that argument in js.
<asp:Button ID="btnUpload" runat="server" cssClass="button1" Text="Upload" >
<asp:DataList ID="dlView" runat="server" >
<ItemTemplate>
<tr>
Problem is in itemdatabound iam getting value in String.Format("javascript:UploadImages('{0}')", s)but when clicking on btnUpload ,control is moving to UploadImages in js,but no value in str.Following is html result
<div id="shadow" class="opaqueLayer"> </div>
<div id="question" class="questionLayer">
<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F1ECDE">
<tr style="height:17">
[code].....
Protected Sub ListView1_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView1.ItemCommand
'...vwmr for view more; atcr for add to cart
[code].....
I have to store, in 2 cookie dictionary/keyed cookie, a user's preference for hiding certain sections of each form on the app. It would appear that IE7 has reached some limit for the number or size of the cookie in javascript. I mean that the cookies are only inaccessible on the client-side js, but can be read just fine in our asp.net/vb code-behind.
The functions that need to read the value of these cookies must be on client side because I can't run a postback everytime the function needs to update the cookie. How should I go about getting and setting the cookie without triggering postback? I thought about storing the value of the cookie onload in a textbox, but I don't know when I would read it back and update the cookie.
i have a javascript function in aspx file now i use vb as back in asp.net now i use postback from javascript like this
[Code]...
now i dont get that "1" in my vb code i want to get it because i want check when i get page_load event by post back by this javascript
I created a web form in .net. The form need to use WYSIWYG editor. So, I have decided to use CK editor. Now, I have gotten a problem that the CK editor lets to use javascript in the textarea. I don't want to let this. How could I do that?
View 1 RepliesI have a javascript function that should open a pop up window like so
function callBackWindow(url) {
indow.open(url, 'OpenWindow', 'width=1000,height1000,left=-10,top=-10,scrollbars=no');
return false;
[code].....
in converting the folowing javascript syntax into visual basic one.
if (!event.willCommit) {
var f = this.getField("dept");
f.clearItems();
[Code]...