Migration problem

  • Thread starter Thread starter Roberto Herrera
  • Start date Start date
R

Roberto Herrera

Hello all,

Please I need some help!!!

I' am making a migration vb6 --> vb.net

I having problems with the vsflexGrid 7 and 8 (I tried both of them)

I can't make work the combolist that I loaded into the vsFlexGrid

Apparently the combolist is loaded, but when I make a click in the
vsFlexGrid to chose un item I got an exception

Another things I can't put pics in the vsFlexGrid. Can we still do that in
vb.net with this control?

Does anyone knows how to load it or how to make it works?

Do you guys think I must change the control for another one?

Thanks all and Best Regards

Roberto HERRERA
 
Roberto Herrera said:
Hello all,

Please I need some help!!!

I' am making a migration vb6 --> vb.net

I having problems with the vsflexGrid 7 and 8 (I tried both of them)

I can't make work the combolist that I loaded into the vsFlexGrid

Apparently the combolist is loaded, but when I make a click in the
vsFlexGrid to chose un item I got an exception

Please tell us which exception you get. All the details, please.

And please don't crosss-post so much. I'm limiting my response to
..framework.
 
Roberto, I don't know what .psp format is. .gif, .jpg or .png would be more
universal.
 
Any way it is un System.nullReferenceException occurred in the
system.windows.forms.dll

I tried to catch the error, but I can't.

I got the exception at the form. It happens whenever I click in the
column of the flex with the combolist

This is the code I used to load the flex

Private Sub Form1_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Try
With vsfContrat
.AllowBigSelection = False
.AllowSelection = False
.Cols = 2
.Rows = 2
.set_ColAlignment(1,
VSFlex8.AlignmentSettings.flexAlignCenterCenter)
.set_ColComboList(1, "#1;Full time|#23;Part
time|#65;Contractor|#78;Intern|#0;Other")
.Enabled = True
.Editable = True
End With
Catch ex As SystemException
MsgBox(ex.ToString)
End Try
End Sub

The error handling code in the Form Load can only trap errors that occur
while the form is loading.

Handle the column click event of the control in question, and put your
error handling code there. Also handle any other event that is getting
fired when you do the action that raises an exception.
 
I tried them all, and I can't catch the error.

It's really important to me to make it works because, I have many forms that
use the vsflexgrid

Thanks,

Roberto HERRERA
 
FWIW I just recoded to use the DataGrid managed code control.

--
____________________________________
Bill Vaughn
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
Back
Top