General .NETFor general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums. If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I'm in the process of creating a composite control using C# and Visual Studio Prof 2005. The control takes an Image Url as one of its properties and this is defined in the component as:
//snippet of code
private String _FirstImageURL;
[
Category("Images"),
Description("The URL of the Image - e.g ~/images/first.gif"),
Browsable(true)
]
public String FirstImageURL
{
get { return _FirstImageURL; }
set { _FirstImageURL = value; }
}
//end code snippet
However, this doesn't give the desired effect when the component is being used in a project. Where the built in ASP:Image component has a button in the properties to allow the programmer to browse for the image within the current project, mine is just a normal text box.
I have tried many different ideas including changing the type from String to Image in the component code.
Does anyone have any ideas of how I can achieve this browsing option in the property of my component?
Thanks in advance,
Orig. :)
(p.s. please let me know if you need me to explain it better, I realise I might not be explaining this very well!)