Click here to Skip to main content
16,008,183 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Ambiguous calls Pin
Alexandru Savescu3-Dec-02 21:57
Alexandru Savescu3-Dec-02 21:57 
GeneralRe: Ambiguous calls Pin
Soni4-Dec-02 0:11
Soni4-Dec-02 0:11 
GeneralForm Handle Pin
Jeff J2-Dec-02 10:33
Jeff J2-Dec-02 10:33 
GeneralRe: Form Handle Pin
Kannan Kalyanaraman3-Dec-02 3:53
Kannan Kalyanaraman3-Dec-02 3:53 
GeneralRe: Form Handle Pin
Jeff J3-Dec-02 13:06
Jeff J3-Dec-02 13:06 
GeneralC++ plotting routine Pin
amica29-Nov-02 12:34
amica29-Nov-02 12:34 
QuestionHow to Change the Icon from the TitleBar Pin
Peter Fonk27-Nov-02 22:34
Peter Fonk27-Nov-02 22:34 
AnswerRe: How to Change the Icon from the TitleBar Pin
Jeff J2-Dec-02 15:41
Jeff J2-Dec-02 15:41 
Apparently, a System::Drawing::Icon can only be created from an .ico file, and not a .bmp file. There do not seem to be any Icon constructors that take a bitmap. I do not know how you managed it for your menubar icon.

Perhaps the easiest solution would be to copy the bitmap to an .ico file (via resource editor or other), then use the method you posted. Of course, with an .ico you could just set the form's icon from the propery settings, if you are integrated with C#. If you are purely MC++, I suppose you would have jump through a few hoops to compile the icon into a raw resource, and link it in to your executable. Supposedly VS.Net 2003 will make that ea$ier.

If you are mainly interested in converting a bitmap file to an Icon, you could alternatively do:

Bitmap *bmp = new Bitmap("MyIcon.bmp");<br />
this->Icon = Icon::FromHandle(bmp->GetHicon());


or...

Icon *ico = Icon::FromHandle(new Bitmap("MyIcon.bmp"));

Cheers
GeneralRe: How to Change the Icon from the TitleBar Pin
Peter Fonk3-Dec-02 0:55
Peter Fonk3-Dec-02 0:55 
GeneralWrapping a unmanaged C++ class Pin
simwiz27-Nov-02 22:28
simwiz27-Nov-02 22:28 
QuestionCan anybody help me? Pin
mwhassan26-Nov-02 15:36
mwhassan26-Nov-02 15:36 
Generalfstream Pin
krauftig24-Nov-02 22:39
krauftig24-Nov-02 22:39 
GeneralRe: fstream Pin
Nick Hodapp25-Nov-02 8:01
sitebuilderNick Hodapp25-Nov-02 8:01 
GeneralRe: fstream Pin
Anonymous25-Nov-02 17:42
Anonymous25-Nov-02 17:42 
GeneralRe: fstream Pin
Nick Parker27-Nov-02 5:14
protectorNick Parker27-Nov-02 5:14 
GeneralRe: Converting managed object to unmanaged object Pin
Nish Nishant24-Nov-02 22:52
sitebuilderNish Nishant24-Nov-02 22:52 
GeneralRe: Converting managed object to unmanaged object Pin
simwiz29-Nov-02 0:33
simwiz29-Nov-02 0:33 
GeneralRe: Converting managed object to unmanaged object Pin
Nemanja Trifunovic7-Dec-02 17:45
Nemanja Trifunovic7-Dec-02 17:45 
QuestionDatabase Problem ? Pin
Nick Parker22-Nov-02 16:47
protectorNick Parker22-Nov-02 16:47 
AnswerRe: Database Problem ? Pin
Kannan Kalyanaraman2-Dec-02 2:44
Kannan Kalyanaraman2-Dec-02 2:44 
GeneralRe: Database Problem ? Pin
Nick Parker2-Dec-02 8:25
protectorNick Parker2-Dec-02 8:25 
AnswerRe: Database Problem ? Pin
taks6-Dec-02 3:56
taks6-Dec-02 3:56 
GeneralRe: Database Problem ? Pin
Nick Parker7-Dec-02 4:15
protectorNick Parker7-Dec-02 4:15 
Generalsetting dos screen prompt other than C:\ Pin
IrishSonic22-Nov-02 13:48
IrishSonic22-Nov-02 13:48 
GeneralRe: setting dos screen prompt other than C:\ Pin
Nitron7-Dec-02 13:02
Nitron7-Dec-02 13:02 

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.