Click here to Skip to main content
15,393,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method [modified] Pin
Martin#3-Jul-06 2:05
MemberMartin#3-Jul-06 2:05 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 2:10
MemberMartin#3-Jul-06 2:10 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 2:16
MemberKais4U3-Jul-06 2:16 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 2:21
MemberMartin#3-Jul-06 2:21 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Martin#3-Jul-06 2:22
MemberMartin#3-Jul-06 2:22 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 2:26
MemberKais4U3-Jul-06 2:26 
GeneralRe: Unable to invoke protected method of DataGrid in Paint method Pin
Kais4U3-Jul-06 2:29
MemberKais4U3-Jul-06 2:29 
Questionstdole to C# Image Fails Pin
Ramjet12-Jul-06 19:37
MemberRamjet12-Jul-06 19:37 
Hello All,

We are using a third parties VB6 object resource file with icons, bitmaps, and text. Ours is completely C# and we are having trouble converting from stdole.stdpicture to C# Image. In VB6 we can access everything fine. In C# we can get the text and the bitmap to convert perfectly but the icons are giving us trouble. The VB method returns a stdpicture object and we use the System.Windows.Forms.AxHost.GetPictureFromIPicture perfectly with the bitmap but we get an error with the icons. Even though the vb method returns a stdpicture C# sees it as an icon and I know of no equivalent to GetPictureFromIPicture for icons. The error is "Unable to cast object of type 'System.Drawing.Icon' to type 'System.Drawing.Image'."

Any way around this would be greatly appreciated.

AnswerRe: stdole to C# Image Fails Pin
LongRange.Shooter3-Jul-06 5:12
MemberLongRange.Shooter3-Jul-06 5:12 
GeneralRe: stdole to C# Image Fails Pin
Ramjet13-Jul-06 5:29
MemberRamjet13-Jul-06 5:29 
QuestionDateTime Pin
aaraaayen2-Jul-06 19:26
Memberaaraaayen2-Jul-06 19:26 
AnswerRe: DateTime Pin
led mike2-Jul-06 19:36
Memberled mike2-Jul-06 19:36 
AnswerRe: DateTime Pin
Tamimi - Code2-Jul-06 19:42
MemberTamimi - Code2-Jul-06 19:42 
AnswerRe: DateTime Pin
leppie2-Jul-06 20:13
Memberleppie2-Jul-06 20:13 
AnswerRe: DateTime Pin
Maurice Tarrant3-Jul-06 21:04
MemberMaurice Tarrant3-Jul-06 21:04 
QuestionC# Network Server attached to a Router? Pin
Mardanian2-Jul-06 18:03
MemberMardanian2-Jul-06 18:03 
AnswerRe: C# Network Server attached to a Router? Pin
stancrm2-Jul-06 20:09
Memberstancrm2-Jul-06 20:09 
GeneralRe: C# Network Server attached to a Router? Pin
Mardanian3-Jul-06 9:13
MemberMardanian3-Jul-06 9:13 
QuestionSelf replication Pin
devfendar2-Jul-06 16:10
Memberdevfendar2-Jul-06 16:10 
AnswerRe: Self replication Pin
Paul Conrad2-Jul-06 16:27
professionalPaul Conrad2-Jul-06 16:27 
AnswerRe: Self replication Pin
Igor Sukhov2-Jul-06 17:26
MemberIgor Sukhov2-Jul-06 17:26 
AnswerRe: Self replication Pin
leppie2-Jul-06 20:15
Memberleppie2-Jul-06 20:15 
AnswerRe: Self replication Pin
Guffa2-Jul-06 22:04
MemberGuffa2-Jul-06 22:04 
AnswerRe: Self replication Pin
LongRange.Shooter3-Jul-06 5:14
MemberLongRange.Shooter3-Jul-06 5:14 
QuestionInheriting controls from a web page(asp 1.0) Pin
sishya2-Jul-06 15:53
Membersishya2-Jul-06 15:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.