|
You can use SetWindowsHookEx API to monitor mouse and keyboard action.
There are many application doing the same thing you plan to do. Ex: MSN Messenger, SpyXX, Screen Saver...
|
|
|
|
|
Thanks. Feel very happy cox have someone reply me issue. Can you give me some sample code. Actually, i have been seek in MSDN CD. I don't know how to start the code.
Thanks.
Wishing you all have nice merry christmas.
Regard;
Philip
|
|
|
|
|
Try this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;319524
Hope MS can help.
|
|
|
|
|
Thanks alot, jackiepct.
The solution you provide solve my issue. But i only can detect mouse move at point x,y. I cant detect keyboard event. I have seem some c# code can do.
Anyway, thanks
Have an nice day.
Regard;
PLLOW
|
|
|
|
|
ok I figured out how to print a form but not yet a label, but it prints a form, i'm having problems with Print Preview now, i get the following error
Value cannot be null
Parameter name: image.
------------------------------------------------------------
here is the code i used
Imports System.Drawing.Printing
Public Class form1
Inherits System.Windows.Forms.Form
Private Declare Function BitBlt Lib "gdi32.dll" Alias "BitBlt" (ByVal _
hdcDest As IntPtr, ByVal nXDest As Integer, ByVal nYDest As _
Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal _
hdcSrc As IntPtr, ByVal nXSrc As Integer, ByVal nYSrc As Integer, _
ByVal dwRop As System.Int32) As Long
Dim memoryImage As Bitmap
Private Sub CaptureScreen()
Dim mygraphics As Graphics = Me.CreateGraphics()
Dim s As Size = Me.Size
memoryImage = New Bitmap(s.Width, s.Height, mygraphics)
Dim memoryGraphics As Graphics = Graphics.FromImage(memoryImage)
Dim dc1 As IntPtr = mygraphics.GetHdc
Dim dc2 As IntPtr = memoryGraphics.GetHdc
BitBlt(dc2, 0, 0, Me.ClientRectangle.Width, _
Me.ClientRectangle.Height, dc1, 0, 0, 13369376)
mygraphics.ReleaseHdc(dc1)
memoryGraphics.ReleaseHdc(dc2)
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, _
ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles _
PrintDocument1.PrintPage
e.Graphics.DrawImage(memoryImage, 0, 0)
End Sub
Private Sub mnuPrint_Click(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles mnuPrint.Click
CaptureScreen()
End Sub
Private Sub mnuPrintPreview_Click(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles mnuPrintpreview.Click
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.Show()
End Sub
|
|
|
|
|
Hy, I don't know how to connect my program with other.
I want to do the password braker , but i don't know hav to send password in the other program . Like i want to try the 1000000 or more passwords on one program to get in . Like sending and erasing and again and again ...
I'm working in VB .NET.
Do you know something ?
Send me your thinking on my email.
Thanks
_Bulldog_
|
|
|
|
|
Yes, we know something. We know not to help you with password cracking. If this is what you want to do, you're completely on your own.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I try to use one timer to control 3 different duration to do count down but unsuccessful. I tried to use index but failed. Please help me if someone knows how to use one timer to do more than one control. Thx.
|
|
|
|
|
How abaut to control that 3 different duration with case fuction like :
You make a module and there you create a function with 3 diffeerent words like - Job1 , Job2 , Job3 and then you declare them like booleon and then you go to you timer and you control that 3 jobs with swiching them like TRUE FALSE FALSE and continue.
Do you know what am i thinking . If you don't send me an e-mail
_Bulldog_
|
|
|
|
|
Hi,
I'm trying to write a VB application using VB.net that runs on hand held devices that runs Windows CE. The objective of the application is to retrieve general performance counter from the OS and transfers it over a central server through the network. On a regular XP or Windows 2000 Professional it's very easy to retrieve performance data by using WMI. I haven't figured out what APIs or other ways to gather performance data from Windows CE. Does anyone have any ideas?
Thank you in advance.
|
|
|
|
|
Performance counters aren't turned on by default. Check out this[^] article on MSDN for the procedures to turn on performance counters and, more importantly, the pitfalls of using them on a WinCE device.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Try to connect with TCPIP-Sockets to Xp or W2K-Computer.
Siegfried Geisler
|
|
|
|
|
Hello,
I'm primarily a VC++ 6.0 developer and have had to get used to VB 6.0 over the past few months. I'm hoping you guys can help me with two major annoyances:
1) Is there a way to turn off all auto formatting that the MS IDE performs? I would prefer writing my code in an external editor, such as Source Insight, but any formatting I do there is forced back to VB's "style" by the IDE. (I'm talking about things such as the required single space surrounding operators in expressions or the # sign indicating ".0" for floating point numbers.)
2) Related to #1 above...how can I get VB to update the files in the IDE after I've changed them externally? Currently, I have to close the files that I've changed and reopen them to reflect the changes (or just completely close VB and restart it). When using VC++ and Source Insight, for example, as long as I "save all" in either environment, when I activate the other program, it recognizes the changes and allows me to update the files.
Thanks,
Justin
|
|
|
|
|
I dont think the vb 6.0 ide has the ability to do any of these things.
Forever Developing
|
|
|
|
|
If you prefer editing externally, why don't you stay out of the IDE entirely. You can compile your project using the VB6.EXE command line.
my blog
|
|
|
|
|
What you want isn't supported by the VS6 IDE. You can do this in VB.NET, not VB6.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have one MDI parent... Under that MDIParent one MDI Child is opened in maximized state. Now when I open another form ( Second MDI Child). it has to open in normal state (not maximized) but it opens maximized no matter what ever is the border style.
....means both forms works in the same state.. maximize one and other get
automatically maximized and bring one in normal state the other will follows.... Any solution ?????
Thanks in advance.
Rizwan Bashir
Rbashir@Gmail.com
|
|
|
|
|
No, there is no way around this. This is how Windows Child windows work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanks. At least now I am satisfied that every one has same problem
cheers
Thanks
Rizwan
|
|
|
|
|
Is there a way to send a message like MouseDown or Click to the parent of a control? All I know is the name of the control. I don't have the hWnd.
Thanks,
Tim
|
|
|
|
|
I was wondering if it is possible to use a config file in VB .NET to be used to access a database. I know there is a way in C++, but I'm not sure about VB .NET. If anyone knows how to do this, any help would be appreciated.
Thanks
ccotton333
|
|
|
|
|
|
Hi All,
I have populated my DataGrid1 from the dataTable.
When I select the record and hit the 'DEL' key it removes the record from the grid.
I would like to prompt the user on 'DEL' keypress and then remove the row from the grid.
Is this possible.
Tnx
|
|
|
|
|
Should be easy enough. Handle the DataGrid KeyPress event. When the event fires, you're code show put up a modal dialog box (.ShowDialog()) asking if it's OK or not. If it is OK, set the eventargs parameter to False before your handler exits, otherwise set it to True to stop the keypress from reaching the DataGrid control and having it delete the record.
KeyPress event[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a label where data is outputed into it. I want to know how you are able to print that data out or send it to the printer when like a user clicks on a button called "print".
thanks
|
|
|
|