Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
QuestionS_OK Does Not Exist... Pin
jagooch20-Sep-07 6:58
jagooch20-Sep-07 6:58 
AnswerRe: S_OK Does Not Exist... Pin
Giorgi Dalakishvili20-Sep-07 7:28
mentorGiorgi Dalakishvili20-Sep-07 7:28 
AnswerRe: S_OK Does Not Exist... Pin
Dave Kreskowiak20-Sep-07 7:30
mveDave Kreskowiak20-Sep-07 7:30 
GeneralRe: S_OK Does Not Exist... Pin
jagooch20-Sep-07 7:50
jagooch20-Sep-07 7:50 
GeneralRe: S_OK Does Not Exist... Pin
Dave Kreskowiak20-Sep-07 8:37
mveDave Kreskowiak20-Sep-07 8:37 
QuestionHow to get a handle to a brush object for GDI Pin
Frank Fajardo20-Sep-07 6:50
Frank Fajardo20-Sep-07 6:50 
AnswerRe: How to get a handle to a brush object for GDI Pin
Guffa20-Sep-07 7:26
Guffa20-Sep-07 7:26 
GeneralRe: How to get a handle to a brush object for GDI [modified] Pin
Frank Fajardo20-Sep-07 13:55
Frank Fajardo20-Sep-07 13:55 
Ha ha ha... I read your response before having breakfast Wink | ;)
I should have clarified my question:

The VB example I saw has this line:
Dim hBrush As Long
hBrush = CreateHatchBrush(HS_DIAGCROSS, RGB(0, 255, 0))

I could not find CreateAnyTypeOfBrush in the VS HelpIndex nor the Object Browser. Which namespace/dll/assembly does this method belong to? Or should I use a similar/different method in C#. The website I saw the above example from tells you to buy a book to get more info on the above example.

I already inserted System.Runtime.InteropServices in my using statements (based on another website I saw).

I could not translate the above code to C#. I already have been able to import the FrameRgn method from gdi32.dll, but I'm stuck with the above line of code. Please help, anybody. Frown | :( Thanks very much



-- modified at 21:55 Thursday 20th September, 2007
GeneralRe: How to get a handle to a brush object for GDI Pin
Guffa21-Sep-07 9:52
Guffa21-Sep-07 9:52 
GeneralRe: How to get a handle to a brush object for GDI Pin
Frank Fajardo21-Sep-07 20:59
Frank Fajardo21-Sep-07 20:59 
Questiongetting data back the order as it appears in datagridview Pin
gericooper20-Sep-07 6:06
gericooper20-Sep-07 6:06 
AnswerRe: getting data back the order as it appears in datagridview Pin
Dave Kreskowiak20-Sep-07 7:24
mveDave Kreskowiak20-Sep-07 7:24 
GeneralRe: getting data back the order as it appears in datagridview Pin
gericooper20-Sep-07 21:35
gericooper20-Sep-07 21:35 
GeneralRe: getting data back the order as it appears in datagridview Pin
Dave Kreskowiak21-Sep-07 2:06
mveDave Kreskowiak21-Sep-07 2:06 
GeneralRe: getting data back the order as it appears in datagridview Pin
gericooper21-Sep-07 2:10
gericooper21-Sep-07 2:10 
Question[Message Deleted] Pin
Bojja Lakshmi20-Sep-07 4:05
Bojja Lakshmi20-Sep-07 4:05 
AnswerRe: Regarding Window services Pin
Pete O'Hanlon20-Sep-07 4:57
mvePete O'Hanlon20-Sep-07 4:57 
GeneralRe: Regarding Window services Pin
Justin Perez20-Sep-07 4:59
Justin Perez20-Sep-07 4:59 
AnswerRe: Regarding Window services Pin
Dave Kreskowiak20-Sep-07 7:19
mveDave Kreskowiak20-Sep-07 7:19 
QuestionPlugin API Pin
Andre Trollip20-Sep-07 3:49
Andre Trollip20-Sep-07 3:49 
AnswerRe: Plugin API Pin
originSH20-Sep-07 3:52
originSH20-Sep-07 3:52 
AnswerRe: Plugin API Pin
Ravi Bhavnani20-Sep-07 3:54
professionalRavi Bhavnani20-Sep-07 3:54 
GeneralRe: Plugin API Pin
Andre Trollip20-Sep-07 4:00
Andre Trollip20-Sep-07 4:00 
QuestionStatic member Pin
ss.mmm20-Sep-07 3:44
ss.mmm20-Sep-07 3:44 
AnswerRe: Static member Pin
kubben20-Sep-07 3:45
kubben20-Sep-07 3:45 

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.