Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How Can I Cancel VB Event


my vb version is vb6.0
if VB error raised,then.i don't want to generate the mshflexGrid 's rowcolchange event.what should i do?
thanks a lot!!i really need help!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Cancel An Event
This is for VB6. Events or processes are fired when a button is clicked, i want to be able to cancel the running processes by clicking another button(cancel). How can i do this so the Application do not freeze or become unstable. I dont want to quit the application or current form, i just want to be able to stop what its doing if the Cancel button is clicked.

Cancel Event
Used a macro to extract date range for a report. The macro form has a cancel button. I can close the form using the cancel button but the report still runs the query and a dialogue box asks for the date parameter. Ive tried using cancelevent in the macro and forcing a close of the report using a method in VB to no avail. I know theres prolly a simple solution to this.

Cancel Event In Webbrowser
Hello, I have some troubles, I want to cancel the focus event on webbrowser control
so i made

Dim WithEvents Win2 As HTMLWindow2

Private Sub WebBrowser1_DownloadComplete()
On Error Resume Next
Set Win2 = WebBrowser1.Document.parentWindow
End Sub

Private Sub Win2_onfocus()
Set objEvent = Win2.event
MsgBox "cancel focus"
objEvent.returnValue = False
End Sub

Message box appear, but event isn't canceled

Thanks for any help.

Cancel Event From Module
How do I refer to an event variable (local) from a public module?
Code:
Private Sub txtProofDate_Validate(Cancel As Boolean)
CheckDate (Me.ActiveControl)
End Sub
and in my module...
Code:
formname.txtProofDate_Validate.Cancel = True
I can only get cancel to work if you use Cancel = True in the validate sub on the form itself. I've tried using a public variable pubCancel = True in the validate event, but for some reason the sub doesn't actually cancel if i declare the variable as pubCancel instead of Cancel.

Cancel Event In Webbrowser
Hello, I have some trouble, I want to cancel the focus event on webbrowser control
so i made

Dim WithEvents Win2 As HTMLWindow2

Private Sub WebBrowser1_DownloadComplete()
On Error Resume Next
Set Win2 = WebBrowser1.Document.parentWindow
End Sub

Private Sub Win2_onfocus()
Set objEvent = Win2.event
MsgBox "cancel focus"
objEvent.returnValue = False


End Sub

Message box appear, but event isn't canceled

Thanks for any help.

Cancel A Click Event
Hi,

Let's say that a user clicks on a listbox's item, the click event is generated. What if after some validation, the program should move back to the previous index because something is missing etc.

How can I cancel a click event?
I tried to change the listindex to the old one, but that generates another click event.

Thanks,

Cancel Event In Inet
Ok,
i can't seem to cancel my uploads...i want to be able to cancel inet1 and stop and further uploads from occuring..
I've tried:
Form1.Inet1.Cancel
and
Form1.inet1.Execute, "CLOSE"
and
If Form1.Inet1.StillExecuting Then
Form1.Inet1.Cancel
End If
anf
If Form1.Inet1.StillExecuting Then
Form1.Inet1.Execute, "CLOSE"
End If
all seem to let the user think that the upload is canceled...but actually you can't exit the program untill it fully uploads.
I've tried asking this b4, but din't recieve much help...

Question: How do i cancel an upload? and exit a sub on form1 when a button on form2 is pressed.

Thank you,
D!m

Cancel Submit Event
how to cancel submit event after an submit button has been pressed in a html page?

How To Cancel The Click Event In A DataGrid?
I'm using a DataGrid and want to capture a click event and prevent a row change. I want to check for certain conditions in the recordset that is bound to the grid and then somehow cancel the row change if those conditions are true.

The RowColChange event only happens after the row change and it seems kind of clunky to move back to the last row and check the conditions and then allow the move if the conditions are false.

Anyone have any ideas?

Textbox Validate Event And Cancel
I use the Validate Event to Edit input in my Textboxes. I have a Cancel button setup on each form with Cancel=True set on it.

When a field that is Required Entry has focus and the User clicks the Cancel button, the Validate Event fires, due to the LostFocus that is taking place, and the Required Entry Edit fails. The ESC key does not cause the Validate Event to fire and thus ESC works just fine.

Can anyone give me an idea of something to check to keep my logic in the Validate Event from getting executed when the Cancel is clicked?????

Thanks,

John

Capturing Cancel Event On InputBox
Hi, all,

I have an inputbox where a user MUST submit a value. However, I can only code to test for the value itself, whether it's a Numeric, Null, String or Zero-Length. But on testing, I found that I can't prevent users from clicking on Cancel.

Anyone who can help?

Regards    

GoodGuy
Experience is a bad teacher for its exams precede its lessons.

Edited by - GoodGuy on 9/9/2005 7:56:09 AM

ActiveX Control Event Cancel
I am making a Usercontrol that has Event that needs to be canceled by the user, similar to the unload event on forms.

Private Sub Form_Unload(Cancel As Integer)
Cancel = -1
End Sub

This will prevent the form from unloading.

How would I do this in a Usercontrol? How do I get the user change to event Variable Cancel into my Control?

Event StopEdit(Cancel as Integer)

Private sub StartEdit()
Dim Cancel as Integer

Cancel = 0
RaiseEvent Stopedit(Cancel)

If Cancel =0 then
    Do the Edit
end if

end sub

Thank you,
Ganthorn







Edited by - Ganthorn on 11/11/2005 11:40:38 AM

Cancel Unloading Event Of The Form
I need to validate the screen b4 the unloading of the form

If the validatin fails I need to cancel the unloading

How can i do this

How To Cancel The Click Event In The Image Control
I inserted image control (to make it a background for some controls) on the sheet and then I placed some controls like command after I made the image "send backward" and controls "send forward" . When I run the project the controls appear on the image. But when I click on the image the controls disappear and then appear again when I move the mouse away from the image. How to fix this problem. By the way I tried to make the propert of image, Enable= false, But it didn't success .

thank you for help.

I Need To Cancel/abort The Keydown Event On A Textbox
I need to evaluate the keycode the user has entered (this is the easy part) and then let the procedure either proceed OR concel the event so that the keypress doesn't end up in the textbox.

I seem to remember a 'cancel event' type command in Access Basic but can't find the equivelant in VB.

Failing that do you have any tips on input masks 'cause I don't seem to be able to make the MSMask control work (I get an error when I try to place a total into one of them).

Thank you for your time.

Stuey

Easy Q... Cancel A Form_unload Event. (Resolved=True)
I need a way to back out of the form_unload processing.

Kinda like..


VB Code:
private sub form_unload(cancel as integer)stop unloadend sub


Or something.

I'm sure this can be done, but I've never had the need, and my search efforts are being mocked by google.

Thank you.

Excel Event Automation &"Cancel Function
I am automating Excel from VB.Net 2003

I have the following code to handle a before rightclick event the code is in my .Net module

 Private Sub ActiveBook_SheetBeforeRightClick(ByVal Sh As Object, ByVal Target As Excel.Range, ByRef Cancel As Boolean) Handles ActiveBook.SheetBeforeRightClick
        Cancel = True
    End Sub

I know that the code gets executed but the Cancel = True does not stop excel from showing the ShortCutMenu
If I put the Equivalent Event handling code in VBE then it works.

What am I doing wrong

Cancel Combo Update Event And Leave Value And Bound Column As Is
I'm trying to do Yes/No/Cancel BeforeUpdate. If the user chooses to Cancel I want to Combobox to stay right where it is with the value and the bound column. I have written:

Code:Private Sub cboNameSearch_BeforeUpdate(Cancel As Integer)
Dim tosave
Dim changelist
If Me.cboNameSearch.Column(1) <> "" Then
    Set changelist = CurrentDb.OpenRecordset("SELECT * FROM tblChanged WHERE user_id = '" & CurrentUser & "';")
    If Not changelist.EOF Then
        If changelist.changed = 1 Then
            tosave = MsgBox("You have made changes to this person." & Chr(13) & Chr(13) & _
                "Press OK to save changes and go to new person, " & _
                "No to go to another person without making changes, " & _
                "or Cancel to go back and make more changes.", vbYesNoCancel, "Save Changes?")
            If tosave = vbYes Then
                SavePrimary changelist.emp_id
                ResetPrimary
                ResetPosition
                UpdatePrimary Me.cboNameSearch.Column(1)
                UpdatePosition Me.cboNameSearch.Column(1)
                UpdateChanged 0, 0
            ElseIf tosave = vbNo Then
                ResetPrimary
                ResetPosition
                UpdatePrimary Me.cboNameSearch.Column(1)
                UpdatePosition Me.cboNameSearch.Column(1)
                UpdateChanged 0, 0
            ElseIf tosave = vbCancel Then
                DoCmd.CancelEvent
            End If
        Else
            ResetPrimary
            ResetPosition
            UpdatePrimary Me.cboNameSearch.Column(1)
            UpdatePosition Me.cboNameSearch.Column(1)
        End If
    Else
        ResetPrimary
        ResetPosition
        UpdatePrimary Me.cboNameSearch.Column(1)
        UpdatePosition Me.cboNameSearch.Column(1)
    End If
    changelist.Close
    Set changelist = Nothing
Else
    MsgBox "Please select an person to view."
End If


End Sub


The DoCmd.CancelEvent doesn't seem to work.

Thanks,
Jeffers

Use Of &"Cancel&" Argument In Form_Unload Event ??
Hi All,

Can Anybody tell me what is the purpose of using "Cancel" argument in Form_Unload / Form_QueryUnload events ??

Thanks & Regards
ashwin.

Form Load Event - Cancel Form Load
Whilst in the form load - is there an easy way to cancel the form load? If i try to unload it I get an exception.

Passing Values From Read Properties Event To Show Event In USER DOCUMENTS
Hi Friends

How can i send a value from Read properties event to show event of the

User document object in Visual Basic 5.0

For example
public test as integer ' Declare it in an general .
Private Sub UserDocument_ReadProperties(PropBag As PropertyBag)

Test = 10

end sub

But value of the Variable test is not available in Show event .
Private Sub UserDocument_Show
msgbox test
end sub

Thanks and Regards
Aravind

Mouse Up Event Misfired In The Righ Click Event Of The Flexgrid! Help Needed
Hai,

When the user right click the first column of the MSHFlexgrid then a PopUpMenu rises, for that i coded as below. But when the user click the row header which i used to display the Serial No. there also the popupmenu rises. how to avoid this. I am using the below code to identify the First column of the grid and rise the popupmenu.
so i am getting problem. because when the user click a item in the popupmenu then i the next form is show with the value of the MshFlexgrid FirstColumns text..

Private Sub MSHFlexGrid1_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)

    If Button = vbRightButton And MSHFlexGrid1.MouseCol = 1 Then
        Me.PopupMenu mnuReport
    End If

End Sub

How to solve this problm. Kindly suggest your idea.

Thank you very much,
Chock.
itchocks@rediffmail.com


<HTML>
<B><font color="#008000">HAVE A NICE DAY !</font></B>
<HTML>

Event Log Collector - For The Event Viewer - To Collect Events Into A Database - How To?
Hi I am perplexed, I feel hopeless, I hope that someone can help me
with a problem. I have Visual Basic .NET

I want to develop an Event Collector. That will collect all events
from the Local computer or maybe 2 computers; (1 local and 1 remote) -

Collecting the Event Viewers Logs but only the system and application
logs and then put them into a Access database as a table, so that I
can run Querys on the events, such as:

Assuming both computers had several Event Id 2003's with Event Source
Perflib.

I want 2 input boxes that I can input the Event Id, and the Source and
then run querys to see what times they occured and on what computers
they occured on.

I want to expand on this concept later by adding more computers and
more tables, and different types of queries, but for right now I just
need to know how to do this small scale
(just for the local computer and maybe one remote computer.)

This will get me started and I think I can figure out the rest.

Please help me get out of this rut. Thanks for any advice or help no
matter what it is I am sure it will help and I can get something out
of it.

Thanks again! ~N.

Enter Event Question And Writing Event Procedure In New Workbook
Hello everybody

I am using the enter event to clear a textbox when enter, (But code is executed only when the textbox is empty)
this works fine but the event is only fired one time, is this the normal behavior for this event?
if yes, any other way to do this?

Private Sub TextBoxNames_Enter()
If TextBoxNames.Value = "" Then
CheckBoxA.Value = 0
 CheckBoxF.Value = 0
 CheckBoxR.Value = 0
 CheckBoxS.Value = 0
 CheckBoxSET.Value = 0
 CheckBoxT.Value = 0
 CheckBoxW.Value = 0
 End If
End Sub

Second question

Is it possible to write events in a new workbook programmatically from vba and if yes,
how to do this?

Thanks a lot

Walter

What Event Fires When A Combobox Changes Value?? The Change Event Does Not Work!
I tried

Private Sub cmbNAME_Change

but it never goes off.

Any suggestion??

KeyPress Event And TextBox Change In Same Private Event
First off, thank you for this forum...I'm extrememly new so be kind as I know this is a simple task but I'm stuck off in the weeds.

My goal is as someone enters an IP address octet in a textbox, when they get to either 3 characters entered or press the "." key, it will move them to the next octet textbox. I figured how to do it as a keypress event or by text length but how do I monitor both?

I've tried the following:

Private Sub txtIPentry1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtIPentry1.KeyPress
        If e.KeyChar = Microsoft.VisualBasic.ChrW(46) Or txtIPentry1.Text.Length > 2 Then
            e.Handled = True
            txtIPentry2.Focus()
        End If
    End Sub

I just don't know how to combine a txtIPentry1_TextChanged and txtIPentry1_KeyPress event into the same set of code.

Thanks for helping the newbie....

How To Have A Tick Event Similar To Worksheet_Change Event
Anyone kind enough to share idea how can I have a tick event or any similar coding in Excel VBA. My problem is, I wanted something like Timer Control running behind my Excel workbook. I wanted to accomplished this without using directly the visual studio. Is it possible to have a timer control on a worksheet?

I discover that the worksheet has an event of Worksheet_Change. but in my needs this is not enough to accomplish what i want. For example: if time is already #11:00 AM# a certain procedure should run. This task is easily done using visula basic studio. Using VB as front end you could easily manipulate the ms-excel with timer control. But in our application, we should only use the ms-excel. I was thinking of creating ADD-ins or module that has the capability of the timer control. but unfortunately, i am lost in doing this.

anyone plz help.

Event Fires When Prior Event Still Running
I've got a treeview with a folder view. When you click on an individual folder it starts to display information about all the items from a 3rd party system in into a listview. When you click a different folder it should then display that folders content. Problem is that when you click the 2nd folder the 1st folder content gets added because that code hasn't ended yet.

The two solutions I've tried so far:

1. Don't allow people to click another folder while the original folder is loading. This isn't acceptable since folder loading can take time and the system can't be unresponsible for that time. For instance if someone accidently clicks a folder they should be able to then click the proper folder.

2. Put two variables in my form. One responsible for saying 'Process is running', and the other 'Stop Processing'. So in my NodeClick Event I had the following code:

If m_BrowserIsLoading Then
m_BrowserCancelLoading = True

Do
DoEvents
Loop Until Not m_BrowserIsLoading
End If

And in my processing code I added this:

If m_BrowserCancelLoading Then
m_BrowserIsLoading = False
Exit Sub
End If

What ends up happening is that the 1st process does stop BUT the m_BrowserIsLoading is never reset in such a way that the 2nd process can read the change and it ends up doing an infinite loop.

Any thoughts? Suggestions? I do have the Desaware Background threading component so I'm considering making a thread that does the adding of the info to the listview but if I don't have to add another reference to my work that'd be nice.

Thanks,

Shane

Public Event In Form Deactivate Event
How do you make a dynamic array created in the Form Deactivate Event able to be “public” or used in other events such as Form resize event.

Is there another way other than storing the array in a public sub?

Thanks!!

Does The MSFlexGrid Has Rowloaded Event Or Any Event Work Like That?
I 'd like to change date to my local date when it's show in MSFlexGrid.If i use DBGrid i can use Rowload event but MSFlexGrid doesn't have this event.Is there event of MSFlexGrid work like this Property.

Datagrid Click Event, Dbclick Event.
Hi
I have a datagrid that when I double click on a line it display all the information linked to this line in text box.  

I would like to do the same thing with the click event. So when the user click on the grid I call the even dbclick.  But the thing is that the click event doesn't seem to have selected the right line yet.  Because when I only click it display the information about the old line.

For example I'm on the line1
when I click on the line2 it display me the information of the line1.
Supposed that I still on the the line1
I dbclick on the line2, it display me the information of the line2. (as it supposed to)

I call the same procedure for both click and dbclick event.

Does somebody have any idea how I could solve it?
Thanks in advance

RaiseEvent: How Can I Place An Event In The Event Queue?
I have been struggling with a problem for a few days now but I think I have a solution, but need someone to help me out on how to actually do it.

I need to do some calculations which are based on the dimensionslocations of certain controls on my Form. These calculations need to be performed when the Form window is restored from a minimized state. Thing is, in the Form1_Resize event, I can not perform these calculations since the dimensions of the objects are not yet fully restored yet.

Anyway, I have a checkbox object (Checkbox1) which has code associated with it's Click event to perform these calculations for me when the object is "checked". So, a real easy solution to my problem would be to allow the Form1_Resize event to complete fully (as normal) but have a "Checkbox1_Click" event in the event queue which will get processed next "after" the Form1_Resize event procedure has been processed completely.

Inside my Form1_Resize event, I can easily determine when the window is transitioning from a minimized state back to the "normal" window state. As a result, I placed the following code in the Form1_Resize event which will only get executed when this type of window transition occurs ..... but it does not work:

Code:Private Sub Form1_Resize()

   Debug.Print "Form1_Resize procedure is entered"

   If (prevWindowState = "vbMinimized") And (curWindowState = "vbNormal") Then
      RaiseEvent Checkbox1_Click

      Debug.Print "RaiseEvent Checkbox1_Click code is processed"
   End If

   Debug.Print "Form1_Resize procedure exits"

End Sub


Public Sub Checkbox1_Click()

   Debug,Print "Checkbox1_Click procedure is entered"

   Call PerformCalculations

   Debug.Print "Checkbox1_Click procedure exits"

End Sub


It seems the Checkbox1_Click processing is executed immediately (ie: before the Form1_Resize event procedure exits). I validated the order of execution by using some Debug.Print statements. I saw the following order of events:

1) Form1_Resize procedure is entered
2) RaiseEvent Checkbox1_Click code is processed
3) Checkbox1_Click procedure is entered
4) Checkbox1_Click procedure exits
5) Form1_Resize procedure exits


I would like the order of execution to be the following:

1) Form1_Resize procedure is entered
2) RaiseEvent Checkbox1_Click code is processed
3) Form1_Resize procedure exits
4) Checkbox1_Click procedure is entered
5) Checkbox1_Click procedure exits


How can I place a Checkbox_Click event in the queue and have it get processed "after" the Form1_Resize event procedure completes it's processing?




Edited by - uncletr on 10/16/2004 1:00:19 PM

How To Call An Event Function Inside Event
Dear Gurus,

I am using a .DLL File which creates an Event. We have to define a Function for that Event. Whenever that Specified Event Occur it calls this function. Now I need is I have to call Function (Which is source for this event) Inside this function. While calling this function it displays error message as "Call cannot allowed inside this function"

Let know if u need some more information

This Should Cancel
hi the following code occurs when a button is pressed:

CommonDialog1.Filter = "Text File (*.txt)|*.TXT"
CommonDialog1.FilterIndex = 1
CommonDialog1.FileName = name & "_contents"
CommonDialog1.ShowSave
fileX = CommonDialog1.FileName
CommonDialog1.FileName = ""

Open fileX For Output As #1

Print #1, .................

Close #1



commondialog1 has its cancelerror property to true but i did it at design time.

all i want to do is when the user presses cancel the dialogbox closes and does nothing.


plz help

thx

Cancel Cancel
is there a way i can disable the X button on the form (top right) unless i specify in the program to close that particular form?

Cancel
I've an inputbox in my code but if i click cancel in the inputbox i want that the sub stop.
Anyone an idea how to do ?

Cancel Out
Well, im kind stuck here. My program works preety good, except that there is a glitch sometimes when it reloads, it will just all the sudden stop loading. I need a way to be able to refresh it, or make it go back to the url again, when ever it does that. I tried using timers, like one timer was the actual program, and the other in a set amount of time would check if the program was loading, and if it still was it would refresh it. It just got all messy from there, and they were not working right all the time. Does somone have a better idea?

Cancel An APP
I have a big table (6,000,000 records). The user can search by name, identification, etc. Of course if the user search by name i used a like sentence in the sql. I want that the user can CANCEL the search by pressing a CANCEL BOTTON. (i have the following sentece:
sqlstring$ = "SELECT * From padron WHERE " & s
Rs.CursorLocation = adUseClient
Rs.Open sqlstring$, cnPadron, adOpenForwardOnly, adLockReadOnly
where s is a string
i have a DOEVENTS but nothing happen. Why?

Cancel
I have an application that is working just fine, but now I've been asked to make a few changes.

One of them is regarding a text box. Information in this text box is mandatory before a record can be saved. The code for this is working just fine. Once the textbox gets focus, you can't get out of it until something has been put in. The problem is when someone doesn't know what the answer is, they will put in some BS, just to get out of the field. What my user was is to keep this a mandatory field, but all the user a way out if they don't know what the answer is, and don't want to type a bunch of BS in. Any suggestions?

Cancel
hello, How can I cancel something ?

code:

Private Sub Form_Unload(Cancel As Integer)
If Not blabla.text = "blabla"Then If MsgBox("blabla ?", vbYesNoCancel) = vbYes Then blabla.Show
End Sub

Now I want if you press on cancel, that it goes back.
Can somebody help me ?

tnx
bye

Cancel
Help please! I'm trying to interupt a process. Here is how it goes:

I build some files but in mid process, I want to be able to hit the cancel button. It doesn't let me click anything until all the files are built. How do I change that?

Thanks.

Cancel Cmd
hello

does anyone what the code is for the cancel button is for a form? for example if i have a form with a text box with text that can saved and the user clicks cancel, how can i make the cancel button also delete the text that the user saved??


DFLW

Cancel = -1
Hi there! In VB, if we set
Cancel = -1





in the Unload code module, what does it means? Does it prevent the form from closing? Thanks!

--- signature removed by moderator ---

Cancel Changes
Hi Gurus,

You would think this would be a simple problem... but, it is not. I have a multi-tier, multi-user database application written in VB6SP4 with an Access 97 backend. I inherited this project and am trying to do some cleanup on it. I should also add that it is a very large project (approx. 150 forms). Now to the question. Prev programmer used data control to populate forms, make changes to db, cancel changes, etc. I am trying to remove all database changing and cancelling of change capabilites from the data control. What is the best manner in which to cancel changes and repopulate the form with original data? I have several ideas but I don't know which is the best... So, would you mind giving me some ideas of what works best for you.

Thanks in advance,
Yin

F1 Cancel I IE
I've build an ocx and placed it on a web page.
to catch events from Internet Explorer I use Multicasting by declaring
..
Dim WithEvents msDoc As HTMLDocument

Private Sub UserControl_Show()
Set msDoc = UserControl.Parent.Script.document
end sub
..

Thereby I am able to catch events fired from IE, but when catching the onhelp
event I am not able to CANCEL IE-help
(The help you get when pressing F1 in Internet Explorer)

This is the catch-event declaration
Private Function msDoc_onhelp() As Boolean
Debug.Print "msDoc_onhelp()"
msDoc_onhelp = False
End Function
..
By declaring the return value msDoc_onhelp = False, the should be no further
event-handling, but still IE-help appears


a colleague of mine can stop the IE-help in javascribt:
&lt;SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript&gt;

&lt;/SCRIPT&gt;

Have anyone caught the onhelp event and prevented IE from showing IE-help
?

Thank You very much :-)

René Nybo

Triggering Event While Another Event Is Processing
I have an event called winsock1_DataArrival(). If this event is triggered while the previous event didn't finish processing yet, what happens to this new event? Does it get process or is skipped? Thanks.

Lostfocus Event After Click Event
If you use the accelerator for triggering a command button click while focus is on textbox, the command button click goes through first before the text box lostfocus. However if you actually click on the Command button the text box lost focus happens before the command button click which is the right sequence.
How to get the sequence right in the first case?
One way is to do a setfocus in the command button click to itself and issue a DoEvents. But I want to avoid DoEvents since that could lead to triggering of other unexpected events.
Thanks in advance.

KeyPress Event &amp; MouseDown Event
I'm writing a program that is designed for quick navigation using
specific buttons on the keyboard. In doing this, I have added a
KeyPress event for every control on the form to intercept the key
pressed and pass it to a standard subroutine that identifies what
action should be taken.

Unfortunately, I have a web-browser contol on the form and the
webbrowser does not include a KeyPress event.

I need some way to intercept keypress and mousedown events for the
webbrowser - my thought was to put a control that has these events on
top of the webbrowser, but I have been unable to find a control that
can be transparent while also sitting on top of a webbrowser - the
imagebox control will be transparent, but for some reason it always
falls behind the webbrowser even when I force it to the Front.

my second thought is to trap key press and mouse click events from
within the html pages I am showing in the webbrowser and then passing
them along to vb - but I don't have the slightest clue how to do that,
or even if it can be done.

Does anyone have any ideas on a soltion to this problem?

any help would be appreciated.

thanks.

Trevor Fairchild

How To Cancel A Print Job?
Hi...

I'd like to know how to cancel a print job??

I have this:

Printer.Print

and also when do i put the 'Cancel print job'??

Thanks

Regards
Vivien

Copyright © 2005-08 www.BigResource.com, All rights reserved