Ok see if following the steps below and the code did WebResource it is correct in my class to design after making the build of control to make sure that the image of the class will appear along with the DLL in design mode the user or client to download my
WebCustomControl
Well here's the steps I did:
STEP 1 - Within my VS2008, when you click the Properties folder of my control with the right mouse button in TAB Resources, created a resource early and then
AddResource> newImage> JPGimage, giving a name for the new feature in the text box that opened the window, and thus created the Resources folder in my WebCustomControl with image inside
STEP 2 - Clicking on this image to select it properties within the Resources Tab, I changed the property to Embedded in.resx Persistence
STEP 3 - Clicking on image created within the Resources folder, clicking the Property BuildAction it moved to Embedded Resource
STEP 4 - Inside AssemblyInfo.cs, pulp properties added this line to my image
STEP 5 - In my ClassDesigner.cs added the following code in GetDesignTimeHtml method
Okseeiffollowingthe stepsbelowand thecodedidWebResourceit is correctinmyclasstodesignaftermakingthe buildofcontrolto make surethat theimage ofthe classwillappearalongwiththe DLLindesign modetheuserorclientto downloadmyWebCustomControl
LuizIta
Member
21 Points
99 Posts
Re: How to Display the image you'll be on my my WebControl Class Designer Embedded Resource using...
Jan 03, 2011 05:46 PM|LINK
Ok see if following the steps below and the code did WebResource it is correct in my class to design after making the build of control to make sure that the image of the class will appear along with the DLL in design mode the user or client to download my WebCustomControl
Well here's the steps I did:
STEP 1 - Within my VS2008, when you click the Properties folder of my control with the right mouse button in TAB Resources, created a resource early and then
AddResource> newImage> JPGimage, giving a name for the new feature in the text box that opened the window, and thus created the Resources folder in my WebCustomControl with image inside
STEP 2 - Clicking on this image to select it properties within the Resources Tab, I changed the property to Embedded in.resx Persistence
STEP 3 - Clicking on image created within the Resources folder, clicking the Property BuildAction it moved to Embedded Resource
STEP 4 - Inside AssemblyInfo.cs, pulp properties added this line to my image
STEP 5 - In my ClassDesigner.cs added the following code in GetDesignTimeHtml method
Ok see if following the steps below and the code did WebResource it is correct in my class to design after making the build of control to make sure that the image of the class will appear along with the DLL in design mode the user or client to download my WebCustomControl
Well here's the steps I did:
STEP 1 - Within my VS2008, when you click the Properties folder of my control with the right mouse button in TAB Resources, created a resource early and then
AddResource> newImage> JPGimage, giving a name for the new feature in the text box that opened the window, and thus created the Resources folder in my WebCustomControl with image inside
STEP 2 - Clicking on this image to select it properties within the Resources Tab, I changed the property to Embedded in.resx Persistence
STEP 3 - Clicking on image created within the Resources folder, clicking the Property BuildAction it moved to Embedded Resource
STEP 4 - Inside AssemblyInfo.cs, pulp properties added this line to my image
STEP 6 - Build on WebControl
STEP 7 - When testing after putting in the Toolbox and add the control on aspx page from a projetoteste that is in the same project directory in my SolutionExplorer of VS2008, it worked, showing the image in design view the image from my supervision
What I wonder is this correct the above steps can be confident that the same has happened in my test will happen to users who download my WebControl
And while you can create one. msi executable with a WebCustomControl WebSetupProject?
I'm waiting and I thank you
Translated from Portuguese into English with Google Translator