All Questions
Tagged with visibility c#
297
questions
4
votes
2
answers
3k
views
Does a WPF storyboard animation continue to run when the affected control is hidden?
I am implementing a "marching ants" style animation by applying a StrokeDashOffset animation to a Rectangle control. I would like the animation to play when the rectangle is visible but not take up ...
3
votes
2
answers
135
views
Basic class naming and visibility questions
I always see people giving me code (I mean code examples for questions on SO and the like) like:
class MyData{
ObservableCollection<Color> Colors;
ObservableCollection<...
12
votes
4
answers
9k
views
How can I determine programmatically whether the Windows taskbar is hidden or not?
I need to know whether the Windows taskbar is hidden or not. I believe there is no .NET method to do this, and also I have come across a lot of "how to hide and show the taskbar" samples, but I haven'...
3
votes
1
answer
2k
views
How to check absolute control visibility and how to be notified for changes of absolute visibility
I have several controls inside my form and I perform several changes (Text, Font, BackColor etc.) on these controls. My changes are necessary only if the controls are visible. So, I want to stop ...
24
votes
4
answers
28k
views
Disable or grey out a node in the TreeNode Editor
How do I disable a specific node so the user can not select it. Hiding it for the user is also valid.
I tried the Visible property but that hides the entire tree (all nodes). I only want a few of the ...
19
votes
7
answers
40k
views
C#/WPF: Make a GridViewColumn Visible=false?
Is there an option to hide a GridViewColumn somehow like this:
<ListView.View>
<GridView>
<GridViewColumn Header="Test" IsVisible="{Binding Path=...
8
votes
3
answers
9k
views
Detect if Tooltip is shown?
I am manually displaying a System.Windows.Forms.Tooltip on a control using the show method, but how can I detect if a tooltip is currently shown?
If I need to change the method for showing it to find ...
2
votes
3
answers
5k
views
How to change visibility of first row in datagridview
I am using datagridview and its datasource is a BindingList.
But when I try to change the visibility of first row, I am getting InvalidOperationException.
How can I change first row's visible value?
...
1
vote
2
answers
7k
views
ASP.NET C# OnMouseOver Event to Make ListBox Appear and Disappear
I have a single webform that has a listbox and a button. When the onmousover event fires the listbox will appear; however on page load, the listbox should not be visible. I have the following code (...
24
votes
17
answers
31k
views
C#/.NET - WinForms - Instantiate a Form without showing it
I am changing the Visibility of a Form to false during the load event AND the form still shows itself. What is the right event to tie this.Visible = false; to? I'd like to instantiate the Form1 ...
11
votes
5
answers
3k
views
Does Interlocked provide visibility in all threads?
Suppose I have a variable "counter", and there are several threads accessing and setting the value of "counter" by using Interlocked, i.e.:
int value = Interlocked.Increment(ref counter);
and
int ...
7
votes
3
answers
23k
views
Binding Visibility in XAML to a Visibility property
I've seen on the internet quite a few examples of binding a boolean to the Visibility property of a control in XAML. Most of the good examples use a BooleanToVisibiliy converter.
I'd like to just ...