Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Skinning Button Column in DataGridView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Skinning Button Column in DataGridView

 Post Reply Post Reply
Author
Message
MadTogger View Drop Down
Newbie
Newbie
Avatar

Joined: 13 July 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadTogger Quote  Post ReplyReply Direct Link To This Post Topic: Skinning Button Column in DataGridView
    Posted: 13 July 2010 at 1:28pm
Hi,

I have a lot of controls that are created at runtime on my form.

I am using VS2010 C#

I have managed to skin all of the runtime created controls except one.
It is a Button Column within a DataGridView component.

The Column name is 'Code' and using the piece of code below causes an error.

skinFramework.ApplyWindow(Code.Handle.ToInt32());


Here is the error message:-


'System.Windows.Forms.DataGridViewButtonColumn' does not contain a definition for 'Handle' and no extension method 'Handle' accepting a first argument of type 'System.Windows.Forms.DataGridViewButtonColumn' could be found (are you missing a using directive or an assembly reference?)


Any help would be appreciated.

Kind regards..,

MT ;)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2010 at 2:39am
For ApplyWindow you should pass some Window handle. Not sure what you want to do with Column's handle.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.