All Questions
37
questions
0
votes
1
answer
50
views
C# When I open Panel first time it doesnt trigger VisibilityChanged WinForms
I have a UserPanel class that has Controls in it buttons,Labels ect. When the Panel is created at runtime it passes to the Constructor of Form1 (this) so I can use some methods and I have a ...
0
votes
1
answer
255
views
Button does not want to stop being visible
So, I'm trying to make simple screenshot app in Window Forms, but i would like my button to dissapear whenever I take a shot. Unfortunately, it does not want to be invisible, even after setting ...
3
votes
1
answer
116
views
Is the documentation wrong for Graphics.IsVisible(Rectangle rect)?
Microsoft's online documentation says that this Graphics method returns "true if the rectangle specified by the rect parameter is contained within the visible clip region of this Graphics; ...
0
votes
0
answers
116
views
Why does calling MessageBox.Show() affects the visibility of other Forms (and threads)?
From a console app which has no window (ProcessWindowStyle.Hidden) I need to start and display a Form (yes - I know this is bad design which should be avoided).
My first intent was the following code:
...
0
votes
1
answer
33
views
What unusual thing takes place when I step into a Control.Visible = true assignment?
I have an UserControl that is made Visible. One of its custom properties is set to true somewhere I do not know. All I know is that after setting its Visible property to another value (true), the ...
0
votes
1
answer
171
views
C# WinForms: Constructing an object with label/textbox properties in a form does not result in those properties appearing in the form. Why?
What I'm doing is: I have an object which initializes its textbox/label contents in the constructor, however when the object is constructed in its intended form I can't make the contents appear on the ...
0
votes
1
answer
78
views
Control not visible after toggling visibility recursively?
A Quick Note
I've tried to be as thorough as possible with my question but you may still need additional clarification; if this happens to be the case, feel free to comment your concerns and I will ...
-1
votes
1
answer
181
views
Winform: Clean way to toggle visibility of a control on TextChanged in TextBox
I have a winform with many TextBox and a single message, I want the message to disappear when any of the TextBox are changed. Is there a clean way to achieve this without adding TextChanged ...
5
votes
2
answers
2k
views
VisibleChanged don't raise when not visible
I'm working on c# WinForm.
I have an custom UserControl : MyControl : UserControl, INotifyPropertyChanged. I attached a method on event on event VisibleChanged : this.VisibleChanged += new System....
-4
votes
2
answers
432
views
How Can I Count Hide Tab Pages?
I Have A Tab Control And Several Tab Pages In It
This Tab Control Is A Component,Tab Pages Have "Page Visible" Property For Declaring Visibility And Tab Control Have Pages.Count Property
Some Of These ...
0
votes
2
answers
447
views
How to close TextBox Menu Item properly on KeyPress [closed]
I am using radial gauges to display temperatures. The user should be able to rename each gauge, which isn't possible by double-clicking on the name, so I have to make a menu where user can change the ...
2
votes
1
answer
3k
views
Minimize and Hide Winform on Form Load
I have a Windows Form in a C# program with the FormBorderStyle set to FixedToolWindow.
The window doesn't have the normal control box, but the user can still minimize it from a menu. There is also a ...
0
votes
2
answers
78
views
Can't change visibility or close form in Event
I'm using the RegistryMonitor wrapper-class from Codeproject to track Registry key changes and this works fine.
But i want to close my form or set an component (groupbox) to invisble when the event ...
4
votes
2
answers
970
views
Make a PictureBox visible / not visible using MouseHover
I think this is a stupid question, but I don't understand what is happening here.
I use this code:
private void pictureBox1_MouseHover(object sender, EventArgs e)
{
pictureBox1....
0
votes
0
answers
115
views
Show only some of HtmlElements in WebBrowser Control
I try to hide all elements of a webbrowser control and show only some of them. As hiding all the elements takes time, I used the following code in which I hide the body element and then show my ...