I'm creating a specific DataGridView control that includes two scrollbars so that I can control their size and visibility. So, I have created a User control that contains the DataGridView and the two scrollbars inside a 2x2 TableLayoutPanel.
The issue I'm facing is that when I add my control to a Windows Form, I can't set my DataGridView's DataSource or define the column styles from the design view, because the link that I use for that when I use a common DataGridView (that little white arrow appearing on the top right side of the DataGridView) is not appearing.
While doing some testing, I saw that if I inherit my control from DataGridView, that link appears. But if I do that, I guess that I can only extend the functionality for the DataGridView, but I need my control to be a composite control.
So, that's my question: how can I get those design-time capabilities on my custom control? I am specially interested on the columns layout and the datasource.
I think the reason may be that the smart tag is at control level. When the DataGridView is used on its own, then it is a single control and the smart tag is available on it. Even in the designer surface of the user control, the smart tag may be available as different controls added to the user controls can be accessed separately.
But once the user control is compiled and is used as a control on a form, then the user control along with all nested controls will behave like a single control. Hence, if a smart is provided for the control as a whole then it may be available on the control.
With a similar analogy the properties of different controls comprising the user control can be accessed through the Properties window by clicking on a control in the designer surface of user control. Whereas, after compiling the user control and placing it on a form the properties of the user control only will be available in the Properties window and the properties of individual controls comprising user control cannot be accessed separately in the Properties window.
Hence, I think an option is to provide a smart tag for the user control. In this regard I think the following articles may be helpful.
If one creates a windows service and threads remain running when the service does a normal exit then the service will continue to run requiring one to kill it.
Exit() terminates all threads.
And if one wants to do dynamic batch processing or any other process management processing with executables then Exit() can be used to return information to the caller. This is normally going to be less useful than services but since the only way to truly isolate unmanaged code is in another process it can on rare occassions be useful.
i'm doing my C# animation project, just like i said, i'm new and i learned :
* switch case
* do while
* environment exit
all over google chrome with 20 tab yesterday.
in result, i created a bouncing ball in box.
the point is, i'm just curious WHAT IS 0 IN ENVIRONMENT EXIT.
i searched all over the universe and what i found is just it is exit code to send to machine or whatever.
what i need is just something more than that, NOT FISH.
so don't think i'm not doing anything,
and again, if you're not going to answer my question, don't post anything.
i'm not the one who ask before stuck like hell.
(although that thing didn't stuck my app)