Re: DataGrid
- From: "Luqman" <pearlsoft@xxxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 18:35:06 +0500
You can disable the windows popup with the ReleaseCapture API.
Put this line either in Module or in General Declaration of your Form.
In case of putting in form, remove the Public Word.
Public Declare Function ReleaseCapture Lib "user32" () As Long
In your Text Box MouseDown Event, write following.
Private Sub txtEdit_MouseDown(Button As Integer, Shift As Integer, x As
Single, y As Single)
If Button = 2 Then
Call ReleaseCapture 'API
PopupMenu gMenu
End If
End Sub
Best Regards,
Luqman
"Ömer Ayzan" <omerayzan@xxxxxxxxxx> wrote in message
news:%23IN2HHsuFHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
> Dear friends,
> I am a vb6 user. On one of my forms (mdi child and all the menus including
> popups are on this form) I use a datagrid to display data (read only). In
> order to highlight the current row I use a text boxes placed on top of the
> cells within the current row. Within the RowColChange event I reposition
> my textboxes an copy the contents of each cell into the respective textbox
> on top of it. So far, I have no problem. I have a popup menu which will
> open on the right click of mouse. There is no problem in opening this menu
> anywhere on the grid except on the text boxes.
>
> When I right click on the row that is higlighted by means of text boxes
> instead of my popup, first opens the standart windows popup (with the
> menus 'Undo, cut, copy, ...') and then when an escape is pressed then
> standart popup goes away and my own opens. How can I fix this. Any
> suggestions are appreciated.
>
> Ömer Ayzan
>
.
- References:
- DataGrid
- From: Ömer Ayzan
- DataGrid
- Prev by Date: Active Accessibility question
- Next by Date: Datagrid current row ?
- Previous by thread: DataGrid
- Next by thread: Is there a way to disable text boxes' popup
- Index(es):
Loading