set_textmatrix - MsFlexGrid to DataGrid conversion

Is there an equivalent?

The designtime IDE doesn't know what to do with, for example,AxMSFlexGridLib.DMSFlexGridEvents_KeyDownEvent

PrivateSub MSFlexGrid1_DblClick(ByVal eventSenderAs System.Object,ByVal eventArgsAs System.EventArgs)Handles MSFlexGrid1.DblClick

and I don't understand this

MSFlexGrid1_MouseDownEvent(MSFlexGrid1,New AxMSFlexGridLib.DMSFlexGridEvents_MouseDownEvent(1, 0, iMousePosX, iMousePosY))

in the context of the MSFlexGrid1_DblClick event

EndSub

PrivateSub MSFlexGrid1_KeyDownEvent(ByVal eventSenderAs System.Object,ByVal eventArgsAs AxMSFlexGridLib.DMSFlexGridEvents_KeyDownEvent)Handles MSFlexGrid1.KeyDownEvent

SelectCase eventArgs.KeyCode

Case System.Windows.Forms.Keys.Delete

mnuClear_Click(mnuClear,New System.EventArgs())

EndSelect

EndSub

PrivateSub MSFlexGrid1_KeyPressEvent(ByVal eventSenderAs System.Object,ByVal eventArgsAs AxMSFlexGridLib.DMSFlexGridEvents_KeyPressEvent)Handles MSFlexGrid1.KeyPressEvent

thx. -greg

[3246 byte] By [hazz] at [2008-2-23]
# 1

I'm not sure what your question is entirely. Are you trying to convert your app to use the datagrid (or if you are using VB 2005 -> you should use the datagridview control) or are you trying to get the flexgrid control working in your .net application?

I would recommend converting your app to using the datagridview control instead of trying to port over the msflexgrid control. If you do, you'll save yourself a lot of hassle later on.

There are several good docs/walkthroughs on these new controls that you can use. Otherwise, if you ran your app through the upgrade wizard (which I assume you did) and it didn't upgrade properly, you can report a bug and we'll look into it.

Toddap_MS

Toddap_MS at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...
# 2
Thanks! I have successfully converted over to the DataGridview. Not entirely yet but enough to know I can leave the previously used flexgrid behind and skip the datagrid as well. -greg
hazz at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...