Skip to main content

Questions tagged [visibility]

Visibility is an attribute of an object. It may refer to the concept of having something visible (or not) on the graphical interface, or a symbol visibility in linkage. This tag should not be used in place of the more specific tags [memory-visibility] or [class-visibility].

visibility
10 votes
7 answers
70k views

Div type="hidden" + Not hided

In my code, I have a div tag with type="hidden". I just don't want to show the div. If needed, I will show it using JQuery Show(). But, using this, my div is not hidden from view. Edit: Now I ...
useranon's user avatar
  • 29.4k
7 votes
3 answers
10k views

Silverlight DataGridTextColumn Binding Visibility

Following my earlier post I am now trying now to bind the visibility of DataGridColumns to a VM notification property. MSDN suggests I should be able to do this with ease. I already have a value ...
Mark Cooper's user avatar
  • 6,844
2 votes
3 answers
2k views

How can I hide controls (not remove them from the DOM) on the server side?

I have a div with runat="server" set. I have an ASP.NET button control in my page. When this button is clicked, I want to hide the div. Is there any other option that setting visible="false"? I ...
Shyju's user avatar
  • 217k
2 votes
3 answers
2k views

set overflow hidden in some cases

How can I set overflow hidden in cases where the html go's outside the screen Right now I have set html {overflow: hidden;} in the head tag off the page. So, it's hidden all the time In my ...
user avatar
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 ...
Robert MacLean's user avatar
2 votes
3 answers
742 views

Calculating how visible an object is in a 3D-scene for use in game logic/AI

I am starting a game project which will allow characters to hide in dark areas. Hiding in a dark corner should make it harder for other characters to see you. What I need is a way to calculate how ...
Hannes Ovrén's user avatar
17 votes
8 answers
157k views

How can I hide a TD tag using inline JavaScript or CSS?

How can I hide a <td> tag using JavaScript or inline CSS?
Blankman's user avatar
  • 265k
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? ...
AFgone's user avatar
  • 1,210
2 votes
5 answers
2k views

Don't the Ruby methods instance_eval() and send() negate the benefits of private visibility?

w = Widget.new # Create a Widget w.send :utility_method # Invoke private method! w.instance_eval { utility_method } # Another way to invoke it w.instance_eval { @x } # Read instance variable of w ...
pez_dispenser's user avatar
327 votes
4 answers
164k views

Difference between Visibility.Collapsed and Visibility.Hidden

What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
Sauron's user avatar
  • 16.8k
1 vote
4 answers
1k views

Dynamically created Silverlight controls not visible

I am dynamically adding custom controls in Silverlight 2 but they are not visible. However, on examining the visual tree in Silverlight Spy I note that their visibility property is Visible and ...
Steve Crane's user avatar
  • 4,440
2 votes
3 answers
830 views

IE toolbar, visible by default

i have created an IE band object (toolbar) that is working well. however, when installed on a new machine it is not visible by default. Of course one can turn it on by right clicking the toolbar area ...
Grant's user avatar
  • 11.3k
1 vote
2 answers
3k views

Hiding Text in Word (particularly tables)

I've been working on a document that has a number of hidden sections that can be made visible using check boxes (and VBA). Most of this works fine including hiding Tables, Pictures, Formatting and ...
user avatar
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 (...
user avatar
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 ...
BuddyJoe's user avatar
  • 70.7k
0 votes
3 answers
939 views

Javascript: Can I access source of the file that is loaded in the hidden iframe

I have found this code for putting hidden iframe into my html and loading url into it: var i = document.createElement('iframe'); i.style.display = 'none'; i.onload = function() { i.parentNode....
neon's user avatar
  • 1,493
6 votes
3 answers
17k views

Make GridView footer visible when there is no data bound

how to show footer when there is no data in gridview for inserting data from footer.
user avatar
5 votes
1 answer
9k views

Testing the scrollbar visibility of a ListBox in code-behind

How to check whether the vertical scrollbar of the listbox is visible in code-behind? I have a listbox with x:Name="listOfItems" and its underlying ScrollViewer's VerticalScrollbarVisibility is set ...
Kornelije Petak's user avatar
3 votes
3 answers
19k views

Jquery: How do I set a hidden element to display when another element is in focus?

I'm trying to display contextual help alongside form fields, that is only visible when those fields are in focus or hovered over. I've tried using mere CSS, but the results seem very fragile and ...
John Stephens's user avatar
0 votes
6 answers
3k views

WPF GridSplitter visiblity

I have a problem regarding GridSplitter visiblity. In this, whatever I am hosting a Winform DataGridView. The GridSplitter, when dragged is properly visible on other controls. But not on this grid. ...
user avatar
1 vote
2 answers
11k views

About private instance variables in Objective-C

In xCode 3, I defined private instance variables in a class. When I directly access the private variables in the client codes, why does the compiler just show me a warning, not an error? The code can ...
Jiang's user avatar
  • 181
2 votes
2 answers
7k views

toggle div visibility with a checkbox list

I have a web application(ASP.NET2.0 C#). Within it, I have a div that contains a checkbox list and a button. I want to toggle the div viewing, so I got some javascript code online to help me. Heres ...
zohair's user avatar
  • 2,369
132 votes
15 answers
139k views

How do I check if an element is really visible with JavaScript? [duplicate]

In JavaScript, how would you check if an element is actually visible? I don't just mean checking the visibility and display attributes. I mean, checking that the element is not visibility: hidden or ...
Macha's user avatar
  • 14.6k
2 votes
2 answers
3k views

Hide content in listbox item depending on a binding property in Silverlight

I have xaml that lookes like this <ListBox> <ListBox.ItemTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding Name}" /> &...
Emil C's user avatar
  • 1,315
3 votes
2 answers
570 views

What is the best way to use links and anchors to toggle visibility in ASP.NET?

I have a page which is used to display numerous forms for the user to fill out and get reports generated. Each of these forms is inside it's own ASP:Panel control so that I can toggle the visibility ...
TheTXI's user avatar
  • 37.8k
171 votes
18 answers
125k views

How do I invert BooleanToVisibilityConverter?

I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show if ...
user avatar
11 votes
2 answers
7k views

WPF: How to make empty TextBlock not to occupy space?

Let's say that I have a simple layout such as this: <StackPanel> <TextBlock Text="{Binding Path=Title}" /> <TextBlock Text="{Binding Path=ShortDescription}" /> <TextBlock ...
Alan Mendelevich's user avatar
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 ...
Chaowlert Chaisrichalermpol's user avatar
0 votes
1 answer
237 views

changing Visibility to hosted winForms element in wpf application

I have ReportViewer winForms control for showing Microsoft Reports in my WPF application hosted over WindowsFormsIntegration. When the MouseDown event of my textBlock triggers, I would like it to fade ...
Ivan's user avatar
  • 101
7 votes
3 answers
7k views

HTML / CSS - DIV Element hidden when it shouldn't be?

(clickable) Mainad has a valid height and width, however it isn't shown like subad1/subad2. Which are in essence exactly the same! (just a different background image). Firebug shows my div as greyed ...
Daniel Sloof's user avatar
  • 12.6k
2 votes
2 answers
3k views

problem of conditional visibility and page breaks with rectangles in SSRS 2005

I am trying to insert a conditional page break, actually i had a report of 50 pages with invoices each invoice is 3 pages long so i need a paghebreak for the 2nd invoice t printon the next page as i ...
user avatar
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 ...
Jared's user avatar
  • 6,015
192 votes
12 answers
197k views

DataTrigger where value is NOT null?

I know that I can make a setter that checks to see if a value is NULL and do something. Example: <TextBlock> <TextBlock.Style> <Style> <Style.Triggers> <...
Timothy Khouri's user avatar
1 vote
5 answers
2k views

method visibility between classes in java

In Java (And in general) is there a way to make a class so public that it's methods etc... are accessible from little classes all around that don't even instantiate it? Ha, what I mean is... If I have ...
Ziggy's user avatar
  • 22.1k
1 vote
2 answers
899 views

Visibility of script includes in an IFRAME

For example: script.js: function functionFromScriptJS() { alert('inside functionFromScriptJS'); } iframe.html: <html> <head> <script language="Javascript" src="script.js"><...
axk's user avatar
  • 5,354
3 votes
5 answers
7k views

Java Protected Access Not Working

In java, there's three levels of access: Public - Open to the world Private - Open only to the class Protected - Open only to the class and its subclasses (inheritance). So why does the java ...
Anton's user avatar
  • 1,427
17 votes
6 answers
4k views

Java Private Field Visibility

So I was making a class the other day and used Eclipse's method to create the equals method when I realized that it generated the following working code: class Test { private int privateInt; [...]...
pek's user avatar
  • 18k
1 vote
1 answer
385 views

Using internal in package gives error

I'm trying to place a class into a package where another public class is placed. The documentation says that only one external visible declaration can be put in a package. So i declare the second ...
Ikke's user avatar
  • 101k
23 votes
2 answers
6k views

__destruct visibility for PHP

Should the "visibility" for the __destruct() function be public or something else? I'm trying to write a standards doc for my group and this question came up.
Clutch's user avatar
  • 7,534
11 votes
5 answers
6k views

How can I check if one game object can see another?

I have an object, that is facing a particular direction with (for instance) a 45 degree field of view, and a limit view range. I have done all the initial checks (Quadtree node, and distance), but now ...
AshtonKJ's user avatar
  • 1,386
8698 votes
67 answers
3.2m views

How do I check if an element is hidden in jQuery?

How do I toggle the visibility of an element using .hide(), .show(), or .toggle()? How do I test if an element is visible or hidden?
Philip Morton's user avatar
1394 votes
21 answers
759k views

What is the difference between visibility:hidden and display:none?

The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?
Chris Noe's user avatar
  • 36.9k
18 votes
8 answers
20k views

Is there a way to call a private Class method from an instance in Ruby?

Other than self.class.send :method, args..., of course. I'd like to make a rather complex method available at both the class and instance level without duplicating the code. UPDATE: @Jonathan ...
James A. Rosen's user avatar
3 votes
1 answer
2k views

How to prevent the mouse cursor from being hidden after calling CComboBox::ShowDropDown?

In my MFC application, when I call CComboBox::ShowDropDown(), the mouse cursor is hidden until interaction with the combo box completes (when the combo box loses focus.) It doesn't reappear when the ...
Aidan Ryan's user avatar
  • 11.5k

15 30 50 per page
1
60 61 62 63
64