Add this line in your vb.net code:

Imports System.Windows.Forms


Cheers!



Benj




On Mar 30, 12:24 pm, vineet <[email protected]> wrote:
> I have started learning VB2005 through book : Beginning VB2005 by
> Wrox.
>
> I have VS2005 and MySQL 5.1 with dotnet connector installed.
>
> I have tried to declare & instantiate an object from
> DataGridViewCellStyle class through the following code:
>
> Dim objAlignRightCellStyle As New DataGridViewCellStyle
>
> I have imported mysql.data.mysqlclient and system.data namespaces.
>
> But still the DataGridViewCellStyle class is not visible in the
> intellisense.
>
> Instead, DataGridViewCellStyleScope class is there.
>
> Can you pl. help !

Reply via email to