Refresh Window When Control Returns To It
Sep 14, 2010
I have a Visual Basic .NET application that calls an Oracle Stored Procedure. This stored procedure does a lot of processing and can take up to an hour to complete. While this is running, if the user moves to another application say Microsoft word, then eventually returns to the VB window to see if it completed the window is often blank (just a white background).
View 1 Replies
ADVERTISEMENT
Mar 10, 2006
I am using an embedded webbrowser control to access a third-party website, populate the username and password boxes on their front page, and login. The problem I have is that the resulting window that the site returns to me is in the form of a new window. What I want to do is capture this window and all it's session/cookie data in to the original webbrowser control, as even if I direct the original window to the same resulting url, some kind of authentication data is missing and the site tells me I have logged out, even though the popup window works fine. I need that page in the original control so that I can continue to access it programmatically, and I don't really want to get in to the complication of accessing the new window, as I expect I'll have to delve in to the api or something.
View 1 Replies
Jan 15, 2009
Anyone knows the code to REFRESH the WINDOW DESKTOP by clicking a button from a form?iCzZz...^^Private Sub Button1_Click(ByVal senderSystem.Object, System.EventArgs)les Refrh.Click
View 12 Replies
Jan 15, 2009
I am using modal window for my VB.NET program and I am trying to open this child modal window from another window, after I close the child modal window I am trying to refresh the parent but I am getting retry/cancel popup, I tried a lot of things to avoid but I can't get rid of this popup.
View 1 Replies
Feb 27, 2012
We have an existing VB.net application. Upon an event, we need to open a browser window. I'm able to open the browser window like this:
System.Diagnostics.Process.Start("http://s3web01/suggestions?item=" + strItem + "&co=" + strOrder)
Upon another event, we need to refresh the browser window with different parameters for strItem and strOrder.
If I call the same code above, it opens a new tab in the browser window. Is there any way to refresh the same browser window that was previously opened?
View 1 Replies
Apr 17, 2012
I'm using ASP.net; I have a popup browser window that contains an databound gridview with textboxes. It has an "Add to Order" button which takes the values entered and updates the database, then closes the popup and refreshes the parent. This currently works perfectly using window.opener.document.forms[0].submit();self.close(); in a RegisterScriptBlock
I now need to update the database on gridview page chage so that textbox values are not lost. I put window.opener.document.forms[0].submit(); into the PageIndexChanging event of the datagrid, but it does not refresh the parent window. Refreshing the parent window with the order lines helps the user see what they have already ordered. My update database method runs fine, just not the parent browser refresh. I also tried "window.opener.location.href = window.opener.location.href" to no avail.Refresh parent browser window on GridView page change?
View 1 Replies
Feb 8, 2010
I have a datagrid view containing a customer list that if if double click on a row it brings up a customer maintenance window. Once I hit a save bottom on the second form how can I automatically update the database, refresh the grid on the initial window but remain on the same row on form1 that I double clicked on in the first place. Currently I am re-loading the datagrid on the initial form with all the data once I close the second window down.
View 6 Replies
Dec 19, 2011
I have an isue, may be its simple. but i am not able to rectify this. Here it goes. I have a form to display data from database.
The form contains Tab control with 3 tabs,it has some text boxes, combo boxes and date pickers.I retrieved data from database in to data-set (ds) using a data-adapter (da) then assigned it to a dataview (dv)
[Code]...
View 4 Replies
Mar 20, 2010
I am trying to find the handle of the child window for the Yes button in the User Account Control window so i can click it. This window has a structure with a few child windows with the same name.
Dim hwnd As IntPtr = FindWindow(Nothing, "User Account Control")
Dim hwnd2 As IntPtr = FindWindowEx(hwnd, 0, "DirectUIHWND", vbNullString)
Dim hwnd3 As IntPtr = FindWindowEx(hwnd2, 0, "CtrlNotifySink", vbNullString)
Dim hwnd4 As IntPtr = FindWindowEx(hwnd3, 0, "Button", "&Yes")
There are multiple CtrNotifySink with its own Button child window or other child windows. How do i search thru the different CtrNotifySink window to find the one that contain the Yes button so i can send a click to it? I do need to find it before i can send a click, right? because i try just sending it to the main window with sendmessage and nothing happen.I even try sending it directly to the handle found by spy++ of the yes button with bm click but nothing happen?
View 2 Replies
Nov 7, 2010
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window?
how to get the popup to appear in the same browser window.
View 1 Replies
Dec 28, 2008
I have a DateTimePicker control that returns the current date.My usage is like this: DateTimeInput.Value.ToString("MMMM dd, yyyy")Please note that I need to get the date in the specified format.I just don't know how to add 1~2 years to the date.I mean if user selected January 01, 2009, I want to get January 01, 2010.So how can I add just 1 year or 2 years to the year of returned value?
View 3 Replies
Dec 5, 2010
i have the following problam: i have a user control which i want to raise an event from to the page that is using that user control (its a button)anyway my problem started when i wanted to put this user control inside a repeater instead of another button (regular asp:button)anyway i needed to support CommandArgument so that page can use the button,so i created a property:
Private m_CommandArgument As Object
Public Property CommandArgument() As Object
Get[code].....
so after i press the button and the postback happen my raised event dosnt have a value..where should this property be saved in order for it to have a value after postback? view state? how do i add to the the viewstate automaticly?
View 1 Replies
Oct 8, 2009
I want to make a program in Visual Studio 2008 in Visual Basic. It involves a web browser and I want to make it auto refresh and allow people to choose the time period in which they want to auto refresh. It won't take user input but I have checkboxes that are preset. I think this may be possible using a timer and the WebBrowser1.Refresh() method. If I am mistaken, please correct me and tell me how to do this.
View 1 Replies
Feb 6, 2012
I am developing a google maps ap, and want to refresh the map with new detail on demand. The initial problem offcourse was that the webbrowser control does not reflect the changes (still keeps the original htmltext) and new document text and refresh. I understand the document text is set once, and cant be changed... apparently.
I have tried
navigate("about:blank")
document.stop
document.new(true)
doevents
All the collected user knowledge on this problem, only get me half way. I can get the page refreshed using some of the techniques above, but it then gives me a script error and an error 53, which both has no details or origins.. just blank errors.... after clicking through their error windows, my page refreshes.P.S. I don't know if my javascript events that are bound to the webbrowser control causes the errors. Some have suggested that the errors are due to the document loading without all its references being closed/open...
View 1 Replies
Jan 6, 2010
I have two webbrowser controls in my application, and I need them to refresh every so often, for example, every 5 minutes. How do I do that?
View 4 Replies
Mar 12, 2012
There is PreviewKeyDown but I don't know how to prevent it from passing the keypress to the browser using that method & WebBrowserShortcutsEnabled will disable them but not allow other stuff like Control+C,Control+V and even the delete key in a textbox wont function as well as technically any F keys will not be passed to the flash I have running in the web browser control so the reason for disabling was made moot because the keys still aren't usable in the flash game either because they don't function at all anymore or it has an action already(F5-refresh)How do I disable it without stopping it from being used by the underlying webpage - flash in this example....
Return returns execution to it so it ends up calling keydown like normal, there is no actual keydown event for the webbrowser control or id use that....I cant block navigation because a refresh appears to not call any of the navigation stuff....End stops execution of the whole program it seems, not just stopping that part of code in its tracks...Stop just pauses the program in the debugger....Exit has the same result as return does....
Is there no way to either use PreviewKeyDown to not return execution to the caller....or maybe some kind of await procedure(visual Studio 2011 & its await procedures/async procedures) or something which will never finish... them using it a lot(the F5 key) wont use a lot of cpu while it waits for something that would never happen....Or just any other method which could make this work how I need it....
View 7 Replies
Dec 6, 2011
Using ASP.NET and VB.NET code behind, I have the following code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim I As Integer = 0
For I = 0 To 10
ListBox1.Items.Add(I)
ListBox1.DataBind()
System.Threading.Thread.Sleep(300)
Next
End Sub
The intended output of the code is to update the listbox1 control at each iteration, but what really happens is it updates the listbox1 control after the entire loop finishes..Is there a way to update the listbox1 control as its intended by the code logic?
View 2 Replies
Jan 27, 2010
I have several custom controls inside my project, just added a new class and then inherit the original control. For example i have a Custom DataGridView Control (CustDGV), that defines several properties in the constructor of the control.Now i have one problem and one issue, the problem, if i change the CustDGV i don't know why, the forms that are using the control doesn't update the changes... The only way it's removing and adding it again.. not very useful when i have several event's already defined for the dgv.How do i force the form to update the control?The issue it's that some of the properties doesn't get applied, for example i set the column header height and the disable resizing in the constructor, but if i run the code this two properties doesn't get applied, i need to define them in the form where i use the control to get the results that i expect..The order of the properties in the constructor? The properties in the properties window override the constructor ones?
View 17 Replies
Apr 26, 2012
[code]I want to make the Properties Window to update the properties for X and Y at each MouseMove, so they become immediately visible for the user.
View 2 Replies
Jan 16, 2012
Error: ClassFactory cannot supply requested class.I installed 2003 Add-in: Office Web Components, you can download and install OWC11.exe from the following link:aunched a VB formadded the Spreadsheet 11.0 control and got the above error.
View 1 Replies
Dec 5, 2011
I have a User Control which renders a simple drop downList into the page.By default, only certain values are returned depending on User Details, but the user may request a "full" list.I'd like this full list to be generated by pressing a reload button.Being new to .NET I am struggling to get this to work and not really understand the results I get when Googling or finding stuff on this site. Is Classic ASP I'd have made a page that renders this and called it using jQuery
[Code]...
I've found this link: [URL]..Using-jQuery but am unsure exactly what it is suggesting, mainly I think, because I use VB and don't completely understand how to convert that C# code there.Using .NET 2.0, jQuery and VB, does anyone have any suggestions on the simplest way to accomplish this?
View 1 Replies
Apr 20, 2010
I've in my app many self created custom controls (not as a real active x control, but a simple modified class). In this case I'm writing about a groupbox. I've placed many of them on different forms. But now, I want to change the backcolor of this controls. I change the backcolor in the class, rebuild the project, and the backcolor didn't change. Why? I don't want to place the groupbox again, it would be too much work. It should be a chance to do this whithout placing the groupboxes again.
View 1 Replies
Nov 29, 2011
I am using AjaxToolJit Tab Container and the problem is when i refreshes the page the default tab is set to 0 but i was in 4th tab when i refreshed the page.AutoPostBack=true
for a while but when i used UpdatePanel in the same page causes the same problem again.
View 1 Replies
May 26, 2010
I have a semi-transparent custom control in vb2005 - works fine, except I can't get it to update/refresh correctly. If I update the custom parameter _backgroundColor, the control appears to be overpainted - e.g. each attempt to update the colour of the control overpaints the existing colour - until it becomes a solid block of colour. However, forcing a refresh of the form makes the control display the correct colour. Any ideas? I don't want to have to repaint the form just to get this control to render correctly. Code for the custom control is below.
[Code]...
View 1 Replies
Jun 5, 2009
Lets say i label "label1" , and 2 buttons named "button1" and "btnRefresh " [code]So , when user press the button 1 , the text will change. But what should i put inside btnRefresh to reload the forms ? and display the default label.text = "Form Load" ???
View 9 Replies
Oct 15, 2011
[URL]
is possible to control the window of IE? For example to set location and size and so on. Thing I'm looking specifically is possible to change the tab name to one that I choose and if it's possible, even the color.
I know thet i can do also changethrough the Registry, but I could not find anything thet I need.
View 5 Replies
Jul 29, 2011
how can I add a CommandLink control in a WPF window? This is what I mean by CommandLink : [URL]
View 1 Replies
Aug 7, 2009
I have a need to do the following can anyone give me an idea how it can be achieved? I have already done points 1 & 2, but I can't get point 3 to work:
1. VB9 app, accepts that accepts text input
2. When Submit is clicked, it copies the text to clipboard.
3. Then paste the text into a particular window that is already visible on an open wep page in Internet Explorer.
The window title of IE is for example
"Metastorm e-work client - Windows Internet Explorer"
I am trying to 'call' the already open page to make it appear over the VB application. The box I need to 'paste' into already has the focus, providing IE iteself has focus.
View 7 Replies
Oct 20, 2009
I am having an issue with using a VB 2008 web browser control to view local folders in Windows 7.I have an app that allows the user to browse local folders using a web browser control within a winform. This app has been working great with all of the users that currently have Win XP and Win Vista. However, with Win 7, every time a folder within the Web browser control is double clicked on (to navigate into its contents) Win 7 opens a new windows explorer window to display its contents. [code]....
View 1 Replies
Mar 2, 2010
CheckedDatetimePicker col inside DGV How can I get set checkState? I made an editControl and inserted a checkDateTimePicker column. I need to checkState of the control in currentRow. I have searched high and low..
View 1 Replies