[ToolboxBitmapAttribute(typeof(PictureBox), "PictureBox.bmp")]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
[ComVisibleAttribute(true)]
[DefaultBindingPropertyAttribute("Image")]
[DefaultPropertyAttribute("Image")]
public class DevFloatingPicture : Component
<ToolboxBitmapAttribute(GetType(PictureBox), "PictureBox.bmp")>
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)>
<ComVisibleAttribute(true)>
<DefaultBindingPropertyAttribute("Image")>
<DefaultPropertyAttribute("Image")>
Public Class DevFloatingPicture
Inherits Component
Dim instance As DevFloatingPicture
[ToolboxBitmapAttribute(typeof(PictureBox), L"PictureBox.bmp")]
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)]
[ComVisibleAttribute(true)]
[DefaultBindingPropertyAttribute(L"Image")]
[DefaultPropertyAttribute(L"Image")]
public ref class DevFloatingPicture : public Component
[<ToolboxBitmapAttribute(typeof(PictureBox), "PictureBox.bmp")>]
[<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)>]
[<ComVisibleAttribute(true)>]
[<DefaultBindingPropertyAttribute("Image")>]
[<DefaultPropertyAttribute("Image")>]
type DevFloatingPicture =
class
inherit Component
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim imagePath As String = "C:\Image.jpg"
Dim img As Image = Image.FromFile(imagePath)
Using fpic As New DevFloatingPicture(img) With {
.ImageLayout = ImageLayout.Zoom,
.BackgroundColor = Color.Black,
.BackgroundOpacity = 0.75,
.FitBoundsToWorkingArea = True,
.TopMost = True,
.TitleBar = False,
.ImageBorder = True,
.ImageBorderColor = Color.FromArgb(255, 30, 30, 30),
.ImageBorderSize = 5,
.CloseOnEscapeKey = True,
.CloseOnLeftMouseClick = False
}
fpic.ShowDialog()
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
DevFloatingPicture | Initializes a new instance of the DevFloatingPicture class. |
DevFloatingPicture(Image) | Initializes a new instance of the DevFloatingPicture class. |
BackgroundColor | Gets or sets the background color of the control. Default value is Black |
BackgroundOpacity | Gets or sets the background opacity of the control. This value does not affect the image opacity. Default value is 0.75 |
CloseOnEscapeKey | Gets or sets a value indicating whether the control should be closed when pressing Escape key. Default value is True. |
CloseOnLeftMouseClick | Gets or sets a value indicating whether the control should be closed when doing a left mouse button click on it. Default value is True. |
Container | Gets the IContainer that contains the Component. (Inherited from Component) |
ContextMenuStrip | Gets or sets the context menu for this control. Note: the default context menu has a single command named "Close Picture". |
FitBoundsToWorkingArea | Gets or sets a value indicating whether to fit the control bounds to the desktop working area. if this value is False, the control can overlap the desktop taskbar bounds. Default value is False. |
Image | Gets or sets the image to show in this control. |
ImageBorder | Gets or sets a value indicating whether to draw a border around the image. Default value is False. |
ImageBorderColor | Gets or sets a value indicating the color of the border drawn around the image. Default value is Black. |
ImageBorderSize | Gets or sets a value indicating the size of the border drawn around the image. Default value is 2. |
ImageLayout | Gets or sets the image layout. Default value is Zoom |
Site | Gets or sets the ISite of the Component. (Inherited from Component) |
TitleBar | Gets or sets a value indicating whether the control has a title bar. Default value is False. |
TopMost | Gets or sets a value indicating whether the control should be displayed as a topmost cotrol. Default value is False. |
TransparencyKey | Gets or sets the color that will represent transparent areas of the control (see: TransparencyKey). Default value is Fuchsia |
Close | Close the control. |
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject) |
Dispose | Releases all resources used by the Component. (Inherited from Component) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
Show | Diplays the picture. |
ShowDialog | Diplays the picture as a modal dialog box (i.e. it blocks execution until the control is closed). |
ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component) |
Disposed | Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
GetEvent |
Gets a EventInfo that match the specified event name
declared in the source Component.
(Defined by ComponentExtensions) |
GetEventHandlers |
Gets all the delegates associated to the specified event raised by the source Component.
(Defined by ComponentExtensions) |
GetEvents |
Gets all the events declared in the source Component.
(Defined by ComponentExtensions) |
GetSubscribedEvents |
Gets a list of events declared in the source Component
that are subscribed to a event-handler.
(Defined by ComponentExtensions) |
InvokeUITypeEditorT |
Invokes the default UITypeEditor to edit the specified property.
(Defined by ComponentExtensions) |
InvokeUITypeEditorT |
Invokes the default UITypeEditor to edit the specified property.
(Defined by ComponentExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |
TryGetEvent |
Tries to get a EventInfo that match the specified event name
declared in the source Component.
(Defined by ComponentExtensions) |