Click here to Skip to main content
15,913,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: textBox1.Visible=false NOT work! Pin
Martin#9-Aug-07 20:01
Martin#9-Aug-07 20:01 
QuestionGDI+ Printing using C# - Please help Pin
krishna44569-Aug-07 7:22
professionalkrishna44569-Aug-07 7:22 
AnswerRe: GDI+ Printing using C# - Please help Pin
Judah Gabriel Himango9-Aug-07 9:52
sponsorJudah Gabriel Himango9-Aug-07 9:52 
GeneralRe: GDI+ Printing using C# - Please help Pin
krishna44569-Aug-07 11:01
professionalkrishna44569-Aug-07 11:01 
QuestionCrystalReportViewer and export document Pin
Saamir9-Aug-07 5:43
Saamir9-Aug-07 5:43 
AnswerRe: CrystalReportViewer and export document Pin
Tom1019-Aug-07 6:09
Tom1019-Aug-07 6:09 
GeneralRe: CrystalReportViewer and export document Pin
Saamir9-Aug-07 6:44
Saamir9-Aug-07 6:44 
QuestionArray of Images as a property doesn't work Pin
rflloyd9-Aug-07 5:38
rflloyd9-Aug-07 5:38 
I wish to create a property of a control which is an array of Images, such that I can add, edit and delete images in the VS2005 property window. I've created the property as:

private Image[] _myImages;

public Image[] MyImages
{
get { return _myImages; }
set { _myImages= value; }
}
Confused | :confused:
The property appears in the property window, with a button that brings up the Image Collection Editor (empty, as expected). However, when I press the add button, I get the message "Cannot create an instance of System.Drawing.Image" because it is an abstract class."

If I prepopulate my array with "private Image[] myImages = new Image(3)"

It shows up as an array tree with three (none) images. I can edit each of these (good), but unless I set all of them to something (non null), I am unable to save the form (error is "Code generation for property 'MyImages' failed. Error was: 'Object reference not set to and instance of an object."

I have no trouble includeing a single Image as a property, nor do I have any trouble with an array of strings.

Any Indication as to what I may be doing wrong?


AnswerRe: Array of Images as a property doesn't work Pin
Judah Gabriel Himango9-Aug-07 5:51
sponsorJudah Gabriel Himango9-Aug-07 5:51 
QuestionChang Listview Color? Pin
abcomp019-Aug-07 5:11
abcomp019-Aug-07 5:11 
AnswerRe: Chang Listview Color? Pin
Judah Gabriel Himango9-Aug-07 5:44
sponsorJudah Gabriel Himango9-Aug-07 5:44 
AnswerRe: Chang Listview Color? Pin
abcomp019-Aug-07 5:58
abcomp019-Aug-07 5:58 
GeneralRe: Chang Listview Color? Pin
Judah Gabriel Himango9-Aug-07 9:41
sponsorJudah Gabriel Himango9-Aug-07 9:41 
QuestionProblem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 5:11
sharpiesharpie9-Aug-07 5:11 
AnswerRe: Problem with Visual Studio 2005 Pin
Judah Gabriel Himango9-Aug-07 5:37
sponsorJudah Gabriel Himango9-Aug-07 5:37 
GeneralRe: Problem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 6:53
sharpiesharpie9-Aug-07 6:53 
GeneralRe: Problem with Visual Studio 2005 Pin
Judah Gabriel Himango9-Aug-07 7:21
sponsorJudah Gabriel Himango9-Aug-07 7:21 
GeneralRe: Problem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 9:16
sharpiesharpie9-Aug-07 9:16 
GeneralRe: Problem with Visual Studio 2005 Pin
Luc Pattyn9-Aug-07 9:30
sitebuilderLuc Pattyn9-Aug-07 9:30 
GeneralRe: Problem with Visual Studio 2005 Pin
sharpiesharpie9-Aug-07 9:39
sharpiesharpie9-Aug-07 9:39 
Questionhelp converting an image to a string. Pin
snorkie9-Aug-07 4:59
professionalsnorkie9-Aug-07 4:59 
AnswerRe: help converting an image to a string. Pin
Luc Pattyn9-Aug-07 5:20
sitebuilderLuc Pattyn9-Aug-07 5:20 
GeneralRe: help converting an image to a string. Pin
snorkie9-Aug-07 5:33
professionalsnorkie9-Aug-07 5:33 
GeneralRe: help converting an image to a string. Pin
Luc Pattyn9-Aug-07 5:47
sitebuilderLuc Pattyn9-Aug-07 5:47 
QuestionInactivity Timer Pin
Stathread9-Aug-07 4:17
Stathread9-Aug-07 4:17 

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.