|
Am sorry to trouble you again. I'm confused. I might not getting what you are saying. I am not a much experienced developer. I'm using VB.Net with .Net Framework 1.1. Please see below what have tried -
Public Enum WindowMessage As Integer
WM_ACTIVATE = 6 ' can't use Hex value WM_ACTIVATE = 0x0006 giving error 'End of statement expected so converted that hex value to decimal as 6.
End Enum
Public Delegate Function WndProc(ByVal hWnd As Integer, ByVal msg As Messages.WindowMessages, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Error - Messages.WindowMessages - Type is not defined
Friend Declare Auto Function SetWindowLong Lib "user32.dll" (ByVal hwnd As Int32, ByVal nIndex As WindowProcs, ByVal NewProc As Messages.WndProc) As Boolean
Error - Messages.WndProc - Type is not defined
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
(ByVal hWnd As Integer, _
ByVal nIndex As Integer, _
ByVal dwNewLong As MyFunctionDelegate) As Integer
My hook function looks like this -
Public Sub Hook()
Try
Dim intError As Integer = GetLastError
MsgBox(intError)
SetLastError(1)
Dim intError1 As Integer = GetLastError
lpPrevWndProc = SetWindowLong(ghW, GWL_WNDPROC, AddressOf MyFunction)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Note - Getting Last Error as 126 which means 'Module not found.'
MyFunction Delegate is like this -
Public Delegate Function MyFunctionDelegate(ByVal hw As Integer, ByVal uMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
MyFunction looks like this -
Public Function MyFunction(ByVal hw As Integer, _
ByVal uMsg As Integer, _
ByVal wParam As Integer, _
ByVal lParam As Integer) As Integer
Select Case uMsg.ToString
Case ABC
do this
Case DEF
do this
Case Else
MyFunction= CallWindowProc(lpPrevWndProc, hw, uMsg, wParam, lParam)
End Select
End Function
Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" _
(ByVal lpPrevWndFunc As Integer, _
ByVal hWnd As Integer, _
ByVal Msg As Integer, _
ByVal wParm As Integer, _
ByVal lParam As Integer) As Integer
|
|
|
|
|
bhawaniprasad wrote: Public Enum WindowMessage As Integer
WM_ACTIVATE = 6 ' can't use Hex value WM_ACTIVATE = 0x0006 giving error 'End of statement expected so converted that hex value to decimal as 6.
End Enum
This is because you have to use VB's syntax to specify a Hex value:
WM_ACTIVATE = &H6
bhawaniprasad wrote: I am not a much experienced developer.
You've taken on something that is a very advanced technique for a beginner.
bhawaniprasad wrote: Messages.WindowMessages - Type is not defined
This means that YOU have to define the enumeration called WindowMessages. You can drop the Messages. part. The values come from the Windows.h C++ header files that describe each window message.
bhawaniprasad wrote: Messages.WndProc - Type is not defined
Again, drop the Messages. part. You have to leave the WndProc part.
|
|
|
|
|
what event happens immediately fater user changes the collection selection.
I want to get access to the selected item collection before it is actually changed so I can either rollback or acces the previous selected collection indexes.
thanks
Shimi
|
|
|
|
|
meanwhile I am using CellMouseEnter
this does the work though it reduces performance
Shimi
|
|
|
|
|
|
|
He actually put it in three forums and then deleted them all. Pathetic.
|
|
|
|
|
leckey wrote: He actually put it in three forums and then deleted them all. Pathetic.
Another entry for the blog of shame.
|
|
|
|
|
if u guys are not interested to help.. jus ass lock and ignore..
you cannot comment on others..
Message boards are intended to discuss.. Not Chat or Comment or stuff..
There are 5,108,764 in the site.. Why it aches on your ass wn others ignores them...
"People gives advice wen there is a need of help..
And wen there s a need of an advice...They do the same"...
Useless creatures..
|
|
|
|
|
Well, thank you for that incoherent babble. It's always a pleasure to insert the missing characters in a sentence.
shabbu wrote: you cannot comment on others..
To quote Dr Cox from Scrubs:
"Wrong wrong wrong wrong, wrong wrong wrong wrong. Wrong"
|
|
|
|
|
shabbu wrote: Message boards are intended to discuss.
But this guy decided to spam the site with the same question multiple times. This isn't discussing - IT'S SPAMMING!
shabbu wrote: Not Chat or Comment or stuff..
So someone posts a response to a question and the rest of us are not allowed to comment on it?? What definition of "discussion" are you using??
|
|
|
|
|
We are not interested in helping people who flagrantly break the rules.
As for you, please learn English.
shabbu wrote: Useless creatures..
Don't let the door hit you on the way out.
|
|
|
|
|
We've got a live one chipping in on this conversation.
|
|
|
|
|
Obviously someone started a new ID to start a flame war. I hate these little buggers who try to insult us and do it with English so bad I just start laughing. Seriously, who would come up with "jus ass lock and ignore?"
|
|
|
|
|
leckey wrote: Seriously, who would come up with "jus ass lock and ignore?"
Sounds like advertising for one of those diarrhea adds.
|
|
|
|
|
Hey come on guys. I was in need of that program. Had lesser time to do. so I thought someone would help if they have such similar codings. When I was told that it was a mistake, I accepted it and deleted the message. But I never thought it would end like this. I apologize for the mistake(for cross posting). I have prepared the program and the issue is over. So ignore it.
modified on Thursday, May 8, 2008 2:08 PM
|
|
|
|
|
You should have deleted 2, and left 1.
|
|
|
|
|
Anyways none is ready to help..Right.. I feel that I shouln't have put it here..
|
|
|
|
|
F***ing people al over the site!!!
modified on Thursday, May 8, 2008 5:11 PM
|
|
|
|
|
|
shabbu wrote: Do not hit 'reply' to this email: To reply, click here.
shabbu has posted a reply to your message at "Personal Page for Member 283762":
u stink like a pig in your behavoiur..
[sleepy]
Excuse you? I'm not one stinking up the boards with all kinds of abusive crap.
|
|
|
|
|
shabbu wrote: u stink like a pig in your behavoiur..
LOL!!! why didnt Monty Python think of that?
It would have fit in perfectly...
French gaurd:
"I dont wanna talk to you no more you empty headed animal foot
trough water! u stink like a pig in your behavoiur...I fart in your general direction! Your mother was a hamster and you father smelt of eldiberry!!!!"
|
|
|
|
|
Watch it or you'll make it in the Top 3 of my list.
|
|
|
|
|
Hi Guys
I am trying to bind a dataset table to combobox, and it works perfectly. But when the dataset table got changed (addition or deletion of rows) doesn't reflected in combobox items.
Am i supposed to set combox1.datasource=ds("table") after every change to the dataset table.
Thanks in advance
Warm Regards
Mohamed Faizal
|
|
|
|
|
rmfaizal wrote: Am i supposed to set combox1.datasource=ds("table") after every change to the dataset table.
Yes.
|
|
|
|