Click here to Skip to main content
15,914,201 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Inserting new records in a child table Pin
bigjokey15-Jun-07 12:10
bigjokey15-Jun-07 12:10 
QuestionVB.Net Custom ListView Row Height Pin
bigjokey15-Jun-07 10:38
bigjokey15-Jun-07 10:38 
AnswerRe: VB.Net Custom ListView Row Height PinPopular
Tarakeshwar Reddy15-Jun-07 10:54
professionalTarakeshwar Reddy15-Jun-07 10:54 
GeneralRe: VB.Net Custom ListView Row Height Pin
bigjokey15-Jun-07 11:13
bigjokey15-Jun-07 11:13 
QuestionExporting data of Datagrids to Excel in VB.NET Pin
hsprasain15-Jun-07 9:59
hsprasain15-Jun-07 9:59 
AnswerRe: Exporting data of Datagrids to Excel in VB.NET Pin
Taylor Kobani16-Jun-07 4:19
Taylor Kobani16-Jun-07 4:19 
GeneralRe: Exporting data of Datagrids to Excel in VB.NET Pin
hsprasain16-Jun-07 10:09
hsprasain16-Jun-07 10:09 
QuestionContextmenu not always showing on right clicking DataGrid Pin
GuyThiebaut15-Jun-07 9:17
professionalGuyThiebaut15-Jun-07 9:17 
I am trying to get a contextmenu to show when I right click on a datagrid.

This works fine as long as there is no text selected on the grid I am clicking; however as soon as there is any text selected in the part of the grid I right click - I get the usual undo, cut, copy, paste, delete, select all contextmenu - which I do not want.

I even set a break point in the sub below and I noticed that if any text is selected and the right mouse button is clicked the sub is not entered.Confused | :confused:

Can someone help me with this please?

Guy

Private Sub onmyDataGridMouseDown(ByVal sender As Object, ByVal e As  System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseDown

        Dim LocalMousePosition As Point

        If e.Button = MouseButtons.Right Then

            LocalMousePosition = DataGrid1.PointToClient(Cursor.Position)
            ContextHandler("GridMenu")
            DataGrid1.ContextMenu.Show(DataGrid1, New Point(LocalMousePosition.X, 
            LocalMousePosition.Y))

        End If

End Sub


You always pass failure on the way to success.
AnswerRe: Contextmenu not always showing on right clicking DataGrid Pin
Taylor Kobani16-Jun-07 4:29
Taylor Kobani16-Jun-07 4:29 
GeneralRe: Contextmenu not always showing on right clicking DataGrid Pin
GuyThiebaut16-Jun-07 6:34
professionalGuyThiebaut16-Jun-07 6:34 
Questionusing recordset in MS Access to place values into array Pin
reegan4115-Jun-07 3:20
reegan4115-Jun-07 3:20 
AnswerRe: using recordset in MS Access to place values into array Pin
GoodID21-Jun-07 17:56
GoodID21-Jun-07 17:56 
Questioncan any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 3:08
professionalkoolprasad200315-Jun-07 3:08 
AnswerRe: can any one tell reular exp to validate domain name Pin
Tom Wright15-Jun-07 3:53
Tom Wright15-Jun-07 3:53 
GeneralRe: can any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 21:15
professionalkoolprasad200315-Jun-07 21:15 
AnswerRe: can any one tell reular exp to validate domain name Pin
berghain15-Jun-07 4:47
berghain15-Jun-07 4:47 
GeneralRe: can any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 21:13
professionalkoolprasad200315-Jun-07 21:13 
AnswerRe: can any one tell reular exp to validate domain name Pin
Steven J Jowett15-Jun-07 5:46
Steven J Jowett15-Jun-07 5:46 
GeneralRe: can any one tell reular exp to validate domain name Pin
koolprasad200315-Jun-07 21:13
professionalkoolprasad200315-Jun-07 21:13 
QuestionTransfer Datetime field from MS-Access to SQL server? Pin
.NetRams15-Jun-07 2:11
.NetRams15-Jun-07 2:11 
AnswerRe: Transfer Datetime field from MS-Access to SQL server? [modified] Pin
GuyThiebaut15-Jun-07 9:26
professionalGuyThiebaut15-Jun-07 9:26 
GeneralOutput From Stored Procedures Pin
Dreamer200715-Jun-07 1:52
Dreamer200715-Jun-07 1:52 
GeneralRe: Output From Stored Procedures Pin
Tom Wright15-Jun-07 3:44
Tom Wright15-Jun-07 3:44 
GeneralRe: Output From Stored Procedures Pin
Dreamer200715-Jun-07 20:47
Dreamer200715-Jun-07 20:47 
GeneralRe: Output From Stored Procedures Pin
.NetRams16-Jun-07 0:18
.NetRams16-Jun-07 0:18 

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.