Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
GeneralBinaryWriter Pin
Steven Behnke7-Aug-02 11:55
Steven Behnke7-Aug-02 11:55 
GeneralTextbox input with the passwordchar Pin
Bill Ferreira7-Aug-02 9:17
Bill Ferreira7-Aug-02 9:17 
GeneralRe: Textbox input with the passwordchar Pin
Nnamdi Onyeyiri7-Aug-02 21:49
Nnamdi Onyeyiri7-Aug-02 21:49 
GeneralSolutions with multiple projects Pin
Bill Ferreira7-Aug-02 9:11
Bill Ferreira7-Aug-02 9:11 
GeneralRe: Solutions with multiple projects Pin
Nnamdi Onyeyiri7-Aug-02 21:50
Nnamdi Onyeyiri7-Aug-02 21:50 
QuestionCentering Message Boxs - How? Pin
Joel Matthias6-Aug-02 7:33
Joel Matthias6-Aug-02 7:33 
QuestionIs there a vertical scrollbar? Pin
Nnamdi Onyeyiri6-Aug-02 7:11
Nnamdi Onyeyiri6-Aug-02 7:11 
AnswerRe: Is there a vertical scrollbar? Pin
Luis Alonso Ramos7-Aug-02 7:19
Luis Alonso Ramos7-Aug-02 7:19 
GeneralRe: Is there a vertical scrollbar? Pin
Nnamdi Onyeyiri7-Aug-02 7:37
Nnamdi Onyeyiri7-Aug-02 7:37 
GeneralReturning by Ref Pin
gekoscan6-Aug-02 6:35
gekoscan6-Aug-02 6:35 
GeneralRe: Returning by Ref Pin
Nnamdi Onyeyiri6-Aug-02 7:10
Nnamdi Onyeyiri6-Aug-02 7:10 
GeneralRe: Returning by Ref Pin
Andy Smith6-Aug-02 9:19
Andy Smith6-Aug-02 9:19 
QuestionProblem in Running in Other Platform! Why? Pin
DotNet6-Aug-02 1:24
DotNet6-Aug-02 1:24 
AnswerRe: Problem in Running in Other Platform! Why? Pin
James T. Johnson6-Aug-02 1:50
James T. Johnson6-Aug-02 1:50 
AnswerRe: Problem in Running in Other Platform! Why? Pin
Johnny Zee6-Aug-02 4:33
sussJohnny Zee6-Aug-02 4:33 
QuestionHow to use uxtheme APIs in custom control? Pin
Li-kai Liu (Angus)6-Aug-02 0:13
Li-kai Liu (Angus)6-Aug-02 0:13 
AnswerRe: How to use uxtheme APIs in custom control? Pin
James T. Johnson6-Aug-02 1:49
James T. Johnson6-Aug-02 1:49 
GeneralRe: How to use uxtheme APIs in custom control? Pin
Li-kai Liu (Angus)6-Aug-02 19:20
Li-kai Liu (Angus)6-Aug-02 19:20 
Hi, James

The thing you addressed in the second part using P/Inovoke
is what I've done in my program. But it's still not working.
I've already had my unmanaged function declared as you did
in the post. And it looks to me that OpenThemeData doesn't
work as it should do. I had another uxtheme API

static public extern bool IsThemeActive();

It works very well. But just don't know why OpenThemeData
always return Null whenever I call it.

Part of the code in my control is as follow:
protected override void OnPaint(PaintEventArgs pe) {

IntPtr hTheme = OpenThemeData(this.Handle , "button");

if (hTheme != IntPtr.Zero)
{
// draw themed control
}
else
{
// draw normal control
}
}

However, OpenThemeData always return Null...

Am I doing right with this?

Thanks!
GeneralRe: How to use uxtheme APIs in custom control? Pin
James T. Johnson6-Aug-02 19:43
James T. Johnson6-Aug-02 19:43 
GeneralRe: How to use uxtheme APIs in custom control? Pin
Li-kai Liu (Angus)7-Aug-02 1:03
Li-kai Liu (Angus)7-Aug-02 1:03 
GeneralRe: How to use uxtheme APIs in custom control? Pin
James T. Johnson7-Aug-02 1:07
James T. Johnson7-Aug-02 1:07 
GeneralRe: How to use uxtheme APIs in custom control? Pin
Li-kai Liu (Angus)7-Aug-02 11:20
Li-kai Liu (Angus)7-Aug-02 11:20 
GeneralRe: How to use uxtheme APIs in custom control? Pin
James T. Johnson7-Aug-02 15:06
James T. Johnson7-Aug-02 15:06 
GeneralRe: How to use uxtheme APIs in custom control? Pin
Li-kai Liu (Angus)7-Aug-02 17:45
Li-kai Liu (Angus)7-Aug-02 17:45 
GeneralDataReader Pin
Mazdak5-Aug-02 20:44
Mazdak5-Aug-02 20:44 

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.