|
Is this a key logger? Come on, own up. We know your sort. lol
Although saying that, it wouldn't make as much sense to write it in .net if you want to install and run behind the scenes as you would have to install the framework to most PCs.
Just not helpful is it that, sorry.
"If i was king cigarettes would be free."
|
|
|
|
|
i trying just understand how its work with vb.net i am already had this with vb 6.0
all peoples can have gun but important thing they will use this gun for what? for peace or war (i think you understand what i am telling to you)
|
|
|
|
|
Call HookKeyboard() in the form_Load event
Then in the KeyboardCallback event you need to write the value from the lParam.VKKeycode to a file as the actual character and not code.
Was that the problem?
"If i was king cigarettes would be free."
|
|
|
|
|
hmm no my friend
must i describe key by key keyboard buttons ?
or how ? really i confused
|
|
|
|
|
I changed the declaration for the text file so it is public in the module like
Public txt As IWshRuntimeLibrary.TextStream
and removed the line
Dim txt As IWshRuntimeLibrary.TextStream
from Form1
I then added this to the KeyboardCallback event inside the if block
txt.WriteLine(Chr(lParam.vkCode) & " " & lParam.vkCode)
Hey Presto!!
To remove the hook add
UnhookKeyboard()
to the form_Closing event
"If i was king cigarettes would be free."
|
|
|
|
|
thanks Purple Monk;
but with this line txt.WriteLine(Chr(lParam.vkCode) & " " & lParam.vkCode) writing two times like hheelllloo wwoorrlldd
and can i pause for writing until to create new txt file later than first txt its size like xxx kb ?
i thinked this
fileSize = FileLen(fileName) / 1000
If fileSize >= Text1.Text Then
but then i got error when i tryed close this txt file beucase getforegroundwindow is still working and hook too and still trying for write
|
|
|
|
|
Dear,
I build my project which done by vb.net and it connets to database i need to copy the project which i build on many PCs and make one as a server how can i do it .
there is app.config which i need to define the name of server ...but i dont know what else.
kilany
|
|
|
|
|
Dear,
i want to start form after spesfic time such as (10 second)but the problem i dont know how could i use this fucntion which called timer in .net
kilany
|
|
|
|
|
Set enabled property of the Timer control to True
At run time you can use
Timer1.Enabled = True
Set Interval property of the Timer to 10000 ( 10 * 1000 milliseconds )
Double click the Timer control
You can use this method to do whatever you want
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick<br />
<br />
End Sub
There are many web sites on the internet about timers
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
Dear ,
I need to create a button to brows the C drive and let me select file with acess or txt extension file and write their data inside them. then i need to print them inside rich text inside form in VB.net
kilany
|
|
|
|
|
also i need to an ready accountancy project :P
|
|
|
|
|
I need to add the button of a datagrid column Can anyone guide me as to how this is done.
aayush singh
|
|
|
|
|
<br />
Option Strict Off<br />
Option Explicit On <br />
<br />
Imports System<br />
Imports System.ComponentModel<br />
Imports System.Drawing<br />
Imports System.Windows.Forms<br />
<br />
Public Class DataGridButtonColumn<br />
Inherits DataGridTextBoxColumn<br />
Public Event ButtonClicked(ByVal rowNumber As Integer)<br />
Public WithEvents btn As New Button<br />
Dim xReadOnly As Boolean = False<br />
Public Property _ReadOnly() As Boolean<br />
Get<br />
Return xReadOnly<br />
End Get<br />
Set(ByVal Value As Boolean)<br />
xReadOnly = Value<br />
End Set<br />
End Property<br />
Public Sub New()<br />
Me.TextBox.Visible = False<br />
Me.TextBox.Cursor = Cursors.Hand<br />
btn.FlatStyle = FlatStyle.System<br />
btn.ForeColor = Color.Red<br />
btn.Cursor = Cursors.Hand<br />
btn.Text = "SİL"<br />
End Sub 'New<br />
Dim _rowNum As Integer<br />
<br />
Protected Overloads Overrides Sub Edit(ByVal [source] As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer, ByVal bounds As System.Drawing.Rectangle, ByVal [readOnly] As Boolean, ByVal instantText As String, ByVal cellIsVisible As Boolean)<br />
Try<br />
MyBase.Edit([source], rowNum, bounds, [readOnly], instantText, cellIsVisible)<br />
_rowNum = rowNum<br />
btn.Parent = Me.TextBox.Parent<br />
btn.Location = Me.TextBox.Location<br />
btn.Size = New Size(Me.TextBox.Size.Width, TextBox.Size.Height)<br />
btn.Text = "SİL"<br />
btn.Visible = True<br />
btn.BringToFront()<br />
btn.Focus()<br />
Catch ex As Exception<br />
Throw ex<br />
End Try<br />
End Sub 'Edit<br />
Protected Overrides Function Commit(ByVal dataSource As System.Windows.Forms.CurrencyManager, ByVal rowNum As Integer) As Boolean<br />
'btn.Visible = False<br />
Return True<br />
End Function 'Commit<br />
Private Sub btn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn.Click<br />
If Not xReadOnly Then<br />
RaiseEvent ButtonClicked(_rowNum)<br />
End If<br />
End Sub<br />
<br />
End Class<br />
<br />
|
|
|
|
|
Hi all,
Any help would be greatly appreciated.
I was wondering if there is any way to catch every unhandled error in an application so that the program can then perform some exit tasks before crashing out no matter what the error is. Is this possible?
I have tried the API SetUnhandledException but this doesn't seem to do it. Maybe i'm doing it wrong.
I have also scoured the internet and have tried the examples i felt were relevant but none seem to be able to provide what i want.
Please advise if you can.
This is VB6 by the way.
Thanks in advance.
"If i was king cigarettes would be free."
-- modified at 6:08 Friday 7th April, 2006
|
|
|
|
|
Hi,there guyz.I'm currently working on a project that requires the following-:
on a click of a button a report is created reflecting what is on the form currently,i.e the program should create reports at runtime
I tried the usual way by using data environment connecting to data reports but that only creates reports based on the data on the database(old data)and not the current data (data on the form when at runtime)
Your responsibility determines your authority which in turn specifies your teritory
|
|
|
|
|
IN A MDI PROJECT I WANNA USE "WINDOWS" MENU. BUT I DONT KNOW HOW TO LIST OPEN WINDOWS AT LIST AT VS.2005 ? IT WAS BUILT IN PROPERTY AT V.S.NET 2002
|
|
|
|
|
Create a Window Menu. Select the Menu Strip, Set its MdiWindowListItem property to your Window menu
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
WHAT A STUPID ME
|
|
|
|
|
Regards,
Chatura Dilan
If at first you don't succeed, try; try again, so that you know
what not to do the next time. The answer is out there.
|
|
|
|
|
Hi Chatura,
asl plz.
Nice signatures. Our football coach also says the same,
" All ur mistakes r forgived, but none of the mistake should be repeated. "
Thanx & Regards.
Success is not a Destination,
... But a Journey !!
|
|
|
|
|
I need to export the contents of a datagrid to csv. Can anyone guide me as to how this is done.
With Best Regards,
Mayur
|
|
|
|
|
it was a simple search at google,
1. open a new web page
2. write "www.google.com" to address bar
3. Click "Go" button (it is at right)
4. Then softly click to first result of returned by google.
5. You see "http://www.codeproject.com/csharp/export2excel.asp[^]"
|
|
|
|
|
Hi all
I need do the following based on Boolean Algebra
ex 1. (M271/M272/M651)+(450/965)/M642/M646
All possible result
M271 + 450
M271 + 965
M272 + 450
M272 + 965
M651 + 450
M651 + 965
M642
M646
ex 2 M271/M646+M006/M651+M013
M271 + M006 + M013
M646 + M006 + M013
M271 + M651 + M013
M646 + M651 + M013
Do somebody no where I can find a code library or code to help
me to break up any Boolean Algebra expression into all possible result
Thanks in advance
PS. I also have more complex expression
|
|
|
|
|
Is this possible? I have some funky graphics, but if I have to put them onto a button as an image then they will go a bit wonky. So I basically want is to display the images just as images, but to have a button that will be invisible overlayed on top of it but still clickable. Thus adding the effect of it being a normal button.
Cheers.
|
|
|
|
|
how can i use gridview control to edit & delete records in vb.net.
my grid can show the data but i want to add these functionality too.
please help me.
byeeeeee
|
|
|
|