C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Annoying Error with Designer Code

rated by 0 users
This post has 0 Replies | 0 Followers

Top 500 Contributor
Posts 12
varisol Posted: Thu, Sep 18 2008 7:19 AM

Hi there

 I constantly getting a syntax error with CF Flexgrid when I set the font to something different than the window font it belongs to.

Here is an example of the generated code:

        Me.gridStorage.FocusRect = C1.Win.C1FlexGrid.FocusRectEnum.None
        Me.gridStorage.Font = New System.Drawing.Font("Tahoma", 12.0!)
        Me.gridStorage.KeyActionEnter = C1.Win.C1FlexGrid.KeyActionEnum.None

The fontstyle ist missing on the font declaration, causing a syntax error whenever the grid regenerates its designer code.
So I have to change it manually every time.

Using Build 2.1.20082.190 with VS2008 SP1 (german) with CF 2.0

with best regards,

Walter

Page 1 of 1 (1 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.