Click here to Skip to main content
15,905,614 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: This row already belongs to this table error Pin
Dave Kreskowiak9-May-12 18:46
mveDave Kreskowiak9-May-12 18:46 
GeneralRe: This row already belongs to this table error Pin
rusydan.khir9-May-12 18:49
rusydan.khir9-May-12 18:49 
GeneralRe: This row already belongs to this table error Pin
rusydan.khir9-May-12 19:01
rusydan.khir9-May-12 19:01 
Questionstrange behavior on adding controls to a form Pin
Ahmad_kelany8-May-12 22:22
Ahmad_kelany8-May-12 22:22 
AnswerRe: strange behavior on adding controls to a form Pin
Dave Kreskowiak9-May-12 10:20
mveDave Kreskowiak9-May-12 10:20 
QuestionHow can I get a sender object of a control handle in VB.net? Pin
Member 37460768-May-12 13:27
Member 37460768-May-12 13:27 
AnswerRe: How can I get a sender object of a control handle in VB.net? Pin
Midnight Ahri8-May-12 15:16
Midnight Ahri8-May-12 15:16 
GeneralRe: How can I get a sender object of a control handle in VB.net? Pin
Member 37460769-May-12 6:55
Member 37460769-May-12 6:55 
Thank you so much replying and help. However, this is not exactly what I am looking for. I was trying to find a way to obtain the system of the item that I got the handle for.

For example, public sub button1_click (sender as Object, e As Args)

end sub

For example, public sub button2_click (sender as Object, e As Args)

end sub

For example, if the user click on button or any control, after I obtain the handle of the control being clicked I want to be able to trace back or obtain the sender of the handle.

hwnd = getHandle(button1)

I am trying to find a way to obtain the sender of hwnd so that I can pass the sender into a function whose parameter requires sender object, for example,

SenderObject = getSender(hwnd) 'How do I get the Senderobject from a control or a window hwnd so
that I can pass it into a function or sub that means to accept sender object as follows?

Call Button2_Click(SenderObject, e)

Thanks,
AnswerRe: How can I get a sender object of a control handle in VB.net? Pin
Eddy Vluggen9-May-12 0:10
professionalEddy Vluggen9-May-12 0:10 
GeneralRe: How can I get a sender object of a control handle in VB.net? Pin
Member 37460769-May-12 7:06
Member 37460769-May-12 7:06 
AnswerRe: How can I get a sender object of a control handle in VB.net? Pin
Eddy Vluggen9-May-12 7:19
professionalEddy Vluggen9-May-12 7:19 
GeneralRe: How can I get a sender object of a control handle in VB.net? Pin
Member 37460769-May-12 7:16
Member 37460769-May-12 7:16 
Questionabout datagridview in vb.net ?? Pin
Ahmad_kelany8-May-12 9:57
Ahmad_kelany8-May-12 9:57 
AnswerRe: about datagridview in vb.net ?? Pin
JohnPayton8-May-12 12:52
JohnPayton8-May-12 12:52 
GeneralRe: about datagridview in vb.net ?? Pin
Ahmad_kelany8-May-12 20:52
Ahmad_kelany8-May-12 20:52 
QuestionCombobox List population Pin
Carl J Shoup8-May-12 8:35
Carl J Shoup8-May-12 8:35 
AnswerRe: Combobox List population Pin
Jörgen Andersson9-May-12 4:04
professionalJörgen Andersson9-May-12 4:04 
AnswerRe: Combobox List population Pin
woopsydoozy9-May-12 4:51
woopsydoozy9-May-12 4:51 
Questionscreensaver fine tuning Pin
GPrime696-May-12 18:46
GPrime696-May-12 18:46 
AnswerRe: screensaver fine tuning Pin
Richard MacCutchan7-May-12 22:04
mveRichard MacCutchan7-May-12 22:04 
GeneralRe: screensaver fine tuning Pin
GPrime6910-May-12 17:39
GPrime6910-May-12 17:39 
Questionhow to play videos from my database on my vb.net form.? Pin
romapatel6-May-12 4:01
romapatel6-May-12 4:01 
AnswerRe: how to play videos from my database on my vb.net form.? Pin
Eddy Vluggen6-May-12 6:06
professionalEddy Vluggen6-May-12 6:06 
Generalsaw Pin
m.alagushankar4-May-12 22:04
m.alagushankar4-May-12 22:04 
GeneralRe: saw Pin
Brandon-X120005-May-12 4:49
Brandon-X120005-May-12 4:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.