I've got a UserControl which I created myself, it is for display like PictureBox, but it displays my datas about something. So if no target thing to display things about it, it hasn't got any image to show. If this happens (always when I put my custom control on the form), the control can't be seen (only if I select it) because of no image to show. I want to do something like what the PictureBox does, in the editor when it hasn't got image to disaplay, it has a line border to "tell us" "here is a picture box on the form", but when I run the program and the PictureBox with no image, it hasn't got that border. Image. How can I detect this for my custom control?
How to detect if my custom control in the editor or not?
303 Views Asked by Magyar Dávid At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in EDITOR
- C editor with text formatting and context awareness
- how to create a pdf editor for grails
- Debug Java in Brackets editor or Visual Studio Code
- How override Print in Kendo UI Editor?
- Set language for syntax highlighting in Visual Studio Code
- Netlogo editor for Eclipse
- WordPress Text Editor Buttons not showing
- Remove duplicates from text file based on second text file
- eclipse pde expandable section of code in editor
- How can I access a Button Press from a different Form? C#
- How to turn off auto code folding in PHPStorm?
- How to drag and open file in editor?
- How do I edit a file after I shell to a Docker container?
- How can I 'change in number' or 'change in digits' in Vim
- Is there a shortcut key to comment multiple lines in matlab editor
Related Questions in CUSTOM-CONTROLS
- DataTrigger is not working
- MODx Create dynamic frontend page / display manager page without login
- Overriding init() in a CustomUIView crashes app (EXC_BAD ACCESS)
- WPF Custom Control VB.net
- Passing parameters to custom control (databinding)
- Custom Numericupdown
- Custom WPF DataGrid with optional button column
- How can I add controls to a tab control that is inside of a custom control, at design time?
- WPF Custom Control/Control template
- MFC Custom Button control
- Custom drawing using System.Windows.Forms.BorderStyle?
- Callback with extended EditText
- Custom Spin Button in Excel
- lightswitch create cusom table/list with javascript
- An ObservableCollection of a DependencyProperty is returning null
Related Questions in PICTUREBOX
- showing a black transparent box over picturebox with an Image
- How to hide control when click outside it?
- c# move picturebox from an array of picturebox up when you hover mouse
- VB.NET Fading out button properly
- Switching images in picturebox
- Move windows form from a picturebox in C#
- How to zoom into a picturebox image without changing the image sharpness?
- More Fluent Image Movement
- Winforms Cursor
- Update picturebox
- C# PictureBox variable in a class
- How to get position from Image in PictureBox
- BackGammon Game
- Class With PictureBox Variable and Double. And more
- picture box crossed out C#
Related Questions in DISPLAYOBJECT
- AS3 display object height not reported correctly
- What simple step is on this javascript, php, display failure missing? can't figure it out
- How to get the correct elements with elementbyid? simple correction or input should solve the failure
- math.pow results not displaying
- Itunes Connect display issue
- How to display logos in Flex 3.2?
- How to detect if my custom control in the editor or not?
- How to link a menu bar that will display in a container but in the same page in html?
- Display table data django
- bad display component in diffrent orientation in react-native
- AS3: Saving a sprite to a file and reading it back?
- actionscript bitmap draw with transform.matrix and rectangle.bounds
- IPython.display: how to change width, height and resolution of a displayed image
- PySpark "column" object content to display
- Advice on CSS Positioning
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You may use the property
DesignModeto determine if your control is in design mode to draw theRectanglearound it, otherwise at runtime, the rectangle will not be drawn.