How tt handle a custom control in design mode
-
I've created a custom control. I've create a property that allow me in design mode to load an image. I'm not able to save that image in resource file just as visual studio does when i try to load an image as background. Who can help me?
-
I've created a custom control. I've create a property that allow me in design mode to load an image. I'm not able to save that image in resource file just as visual studio does when i try to load an image as background. Who can help me?
Hi, Here I am sending sample application. After creating new application. From resources.resx desing I added icon (AddResources->AddExistingFile). From resources.resx view code I changed Resources\Alarm161.ico;System.Drawing.Icon to
Resource:
Resources\Alarm161.ico;System.Drawing.Bitmap
Because I want to add bitmap to my Button. From form desing I added one button. In Button1_click(..) event I added this code
Code:
System.Drawing.Bitmap bitmap1 = WindowsApplication1.Properties.Resources.Alarm161; button1.Image = bitmap1;
Ravi
-
Hi, Here I am sending sample application. After creating new application. From resources.resx desing I added icon (AddResources->AddExistingFile). From resources.resx view code I changed Resources\Alarm161.ico;System.Drawing.Icon to
Resource:
Resources\Alarm161.ico;System.Drawing.Bitmap
Because I want to add bitmap to my Button. From form desing I added one button. In Button1_click(..) event I added this code
Code:
System.Drawing.Bitmap bitmap1 = WindowsApplication1.Properties.Resources.Alarm161; button1.Image = bitmap1;
Ravi