Click here to Skip to main content
16,006,065 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Enter key pressed event Pin
Rajesh Anuhya13-May-10 20:04
professionalRajesh Anuhya13-May-10 20:04 
AnswerRe: Enter key pressed event Pin
Wayne Gaylard13-May-10 20:15
professionalWayne Gaylard13-May-10 20:15 
Questioncontext menu Pin
phowarso13-May-10 19:53
phowarso13-May-10 19:53 
AnswerRe: context menu Pin
DaveAuld13-May-10 20:28
professionalDaveAuld13-May-10 20:28 
Questionfor text box control in VB.net Pin
faisalali_7813-May-10 19:37
faisalali_7813-May-10 19:37 
AnswerRe: for text box control in VB.net Pin
Rajesh Anuhya13-May-10 19:51
professionalRajesh Anuhya13-May-10 19:51 
QuestionMessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 8:42
Trevortni13-May-10 8:42 
AnswerRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 8:56
professionalDaveAuld13-May-10 8:56 
Yes i have a suggestion;

I placed a button on the form, and coded the following;

VB.NET
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Dim response As MsgBoxResult = MsgBox("the prompt", MsgBoxStyle.MsgBoxHelp + MsgBoxStyle.Information + MsgBoxStyle.YesNo, "The Title")

    MsgBox(response)

End Sub

Private Sub FormMain_HelpRequested(ByVal sender As Object, ByVal hlpevent As System.Windows.Forms.HelpEventArgs) Handles Me.HelpRequested
    MsgBox("help Requested")
End Sub


This displays a Yes No Help msgbox, when the help is pressed, another msgbox appears with the help requested.

Based on this, what you could do is set a variable before entering the msgbox with some form of identifier, then in the HelpRequested call, check the value of that variable and perform the appropriate help action.
Dave

Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com


GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 9:14
Trevortni13-May-10 9:14 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 9:21
professionalDaveAuld13-May-10 9:21 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 9:48
Trevortni13-May-10 9:48 
AnswerRe: MessageBox.Show not raising HelpRequested event Pin
William Winner13-May-10 9:18
William Winner13-May-10 9:18 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 9:46
Trevortni13-May-10 9:46 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 9:49
professionalDaveAuld13-May-10 9:49 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 9:47
professionalDaveAuld13-May-10 9:47 
QuestionRe: MessageBox.Show not raising HelpRequested event [modified] Pin
Trevortni13-May-10 10:39
Trevortni13-May-10 10:39 
AnswerRe: MessageBox.Show not raising HelpRequested event Pin
Trevortni13-May-10 12:04
Trevortni13-May-10 12:04 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
DaveAuld13-May-10 20:33
professionalDaveAuld13-May-10 20:33 
GeneralRe: MessageBox.Show not raising HelpRequested event Pin
Henry Minute14-May-10 2:02
Henry Minute14-May-10 2:02 
QuestionCREATE DATABASE parameter for FROM master..sysdatabases Pin
luccingolo13-May-10 8:05
luccingolo13-May-10 8:05 
AnswerRepost Pin
Luc Pattyn13-May-10 8:38
sitebuilderLuc Pattyn13-May-10 8:38 
GeneralRe: Repost Pin
luccingolo14-May-10 5:16
luccingolo14-May-10 5:16 
GeneralRe: Repost Pin
Luc Pattyn14-May-10 5:43
sitebuilderLuc Pattyn14-May-10 5:43 
GeneralRe: Repost Pin
luccingolo14-May-10 6:21
luccingolo14-May-10 6:21 
AnswerRe: CREATE DATABASE parameter for FROM master..sysdatabases Pin
Dave Kreskowiak13-May-10 8:44
mveDave Kreskowiak13-May-10 8:44 

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.