visibility

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 (please excuse the background color changes): Button2.Attributes.Add("onmouseout", "this.style.backgroundColor='Blu...

IE toolbar, visible by default.

Hi, 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 and selecting it, however, i would like to know if there is a way or an option in the registry that will enable me to have the bar turn...

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 toggling it to Collapsed and back to Visible causes the controls to become visible. What might I be doing wrong? Any ideas on what I should look ...

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 Looking at the example above which relates to the Widget class (below), the send and instance_eval methods violate all of the protections pro...

How to change visibility of first row in datagridview

Hello, 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? Thanks in advance. ...

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

How can I hide a <td> tag using JavaScript or inline CSS? ...

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 the lighting conditions are where the character is located. The ideal would be to have a double getLightFactor(GameCharacter observer, Gam...

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 out, that is fine. ...

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 convertor and VM notification property that I know works (I have tested these on another element on my page: <CheckBox x:Name="chkAllTeams" Vi...

Changing visibility does not immediately hide iFrame

Hi, I have a page that on a certain action makes an iframe visible and fills the iframe with some HTML (say for example a multi-select box and an ok button). The OK button on the iframe has the onClick method defined kinda like this: onClick="parent.hideIFrame();parent.processMultiSelectBox();" When User clicks OK on the iframe (pre...

How to supress empty subreports in SSRS 2008

Hey all! I'm creating a 'master' report in SSRS 2008 that collaborates other reports about a person. Sometimes not all of the other reports are relevant and as such return nothing. I'd like to be able to exclude this from the master report so it does not leave a blank page. I'm aware of the 'no-rows-message' feature, but a whole page ...

Ok, we can have private identifiers in javascript, but what about protected ones?

Simple as that, can we emulate the "protected" visibility in Javascript somehow? ...

Emacs-Lisp: make newly created buffer visible before the function returns?

In the following function in emacs Lisp, (defun show-life () (interactive) (switch-to-buffer "*Life-Window*") ; show how life goes on while living (live)) ; it takes 70 years to finish and return! I'd like to create the buffer "Life-Window", and have the life event generated by (live) displayed continuously while live goes on. ...

Bind ContextMenu's MenuItem visibility to ListView selection

I have a user control with a ListView containing simple items from an ObservableCollection. I would like the ContextMenu of that ListView to contain items depending on what's selected in the ListView. If no item is selected, some MenuItems should not be visible. My converter isn't even called when I open the ContextMenu. The binding se...

Silverlight: How to bind DataGridColumn.Visibility?

I have an issue similar to the following post: http://stackoverflow.com/questions/983272/silverlight-datagridtextcolumn-binding-visibility I need to have a Column within a Silverlight DataGrid be visibile/collapsed based on a value within a ViewModel. To accomplish this I am attempting to Bind the Visibility property to a ViewModel. ...

Jquery Div Hide on click

I using coda slider in my page. View it here: http://www.ndoherty.com/demos/coda-slider/1.1.1/ Each tab causes the pane to shift the content inside it when it is clicked. I want something ELSE to happen on click. When a tab is clicked, I want an image to appear in the topleft section of the page in a div called "#topleft". For the sa...

Need help understanding problem alternating visibility of a DIV by dynamically switching classes

This code attempts to dynamically switch the class of the StateContainer div from StateOne to StateTwo to alternate the visibility of the DIV. When I run it, I always see the following both before and after clicking the button. Visible first Visible first Visible first Visible first Would appreciate any suggestions for why this code ...

ASP.NET with visibility:hidden, not being shown on .Visible = true

Hi, I have a few labels on my page with a class of 'error', the rule for .error is: .error { color:Red; visibility:hidden } The markup for the labels is: <asp:Label ID="lblError" runat="server" CssClass="error" ></asp:Label> I then set the .Text of the error in my code behind. If I use lblError.Visible = True; when I ...

Can you control the order in which images (hidden vs visible) on a web page are loaded?

If I have two divs, one shown, the other hidden, I want the images in the visible div to load first and only then for the other hidden images to load. Is there a way to do this? <div class="shown"> <img src="a.jpg" class="loadfirst"> <img src="b.jpg" class="loadfirst"> <img src="c.jpg" class="loadfirst"> <img src="d.jpg" class="loadfi...

Difference between JS style.display and .NET visible

I have seen some instances where people will say you have to use JS .style.display = 'none'; and that .NET .Visible = false will not work. What is the difference between the two and why would something work with the JS and not with the .NET? An example is http://www.componentart.com/forums/ShowPost.aspx?PostID=27586 (see the bottom pos...