Setting Visibility Property Of Main Window To Hidden?
Jan 8, 2012
I have set the Visibility property of the main window to Hidden and added the following in Window_Loaded:
private void Window_Loaded(object sender, RoutedEventArgs e){
this.Visibility = System.Windows.Visibility.Visible;
}
But it doesn't show up the Window.
View 1 Replies
ADVERTISEMENT
Nov 26, 2010
I have a GridView with a load of data in, there is an ID associated to the data that I would not like to be visible to the users. All worked fine when all the cells were visible, but as soon as I change the ID DataBound column to false, when I try to access the item in code I get "" instead of it's actual value (that worked perfectly when it was visible).
Is there a reason for this? If not, how should I be approaching this?
View 2 Replies
Nov 9, 2009
I have a panel with 5 labels and 5 listviews in it. By default they are hidden. At runtime I want only the ones shown that are needed. For example, if there are enough players for three tables then three tables should show up. I know how to make the controls visible, but not sure how to control how many are actually displayed. I also think I may have to do seperate loops and seperate the control types?
Private Sub Set_Tables()
Dim tables As Long
tables = Math.Ceiling(NumPlayers / NumPerTable)
[Code].....
View 1 Replies
Apr 23, 2012
how to control the visibility of movieclip property from vb.net
[Code]....
View 5 Replies
Nov 27, 2010
I seem to be having a problem binding the visibility property of a textbox to a database value using the advanced binding property.I found this article (BUG: Inconsistent behavior when you bind the Visible property of a Windows Form control to a Boolean field) stating there is a bug in some ol
View 3 Replies
Dec 5, 2009
I seem to be having a problem binding the visibility property of a textbox to a database value using the advanced binding property.
I found this article (BUG: Inconsistent behavior when you bind the Visible property of a Windows Form control to a Boolean field) stating there is a bug in some older versions of the .net framework.
Does anyone know if this has been fixed in 4.0?
View 2 Replies
Feb 4, 2010
On my .aspx page i want to be able to show and hide certain panels depending on user selections (radiobuttonlists).
For example in my aspx page i have;
<form id="form1" runat="server">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True">
<asp:ListItem>1</asp:ListItem>
[Code].....
View 2 Replies
Oct 26, 2011
Using vb.net. I've got a main form that displays when application is opened. A popup form can then be opened. If there are other windows opened on the desktop, for example windows explorer, then when the popup form is closed, the main form gets hidden behind windows explorer. You have to move windows explorer out of the way to get to the main form. Is there a way to keep this from happening?
View 2 Replies
Feb 9, 2012
I have a VB.NET application that uses Managed DirectSound to capture audio.Everything works just fine until (a) the application is minimized or (b) the application is completey obstructed (covered) by another window.
The thing is that the CaptureBufferDescription structure does not include a GlobalFocus property so I don't know what to do to let my application continue capturing when the main window is hidden.
Here's the basic initialization code I'm using:
' Create a buffer description object
bufCapDesc = New CaptureBufferDescription()
With bufCapDesc
[code]....
View 8 Replies
Oct 12, 2010
I have create a project with one main form window and also i have to use a number of other forms as well. now i want to open these other forms inside the main window and not outside. I'm using Visual Studio .NET 2010 as developing environment.
View 1 Replies
Aug 18, 2009
I'm using vb.net 2005. I've a textbox , a hidden field and a button. My textbox is setted to password mode. While editing an existing password, in order to display the password in password mode, i wrote txtPassword.Attributes.Add("value", strpassword)
View 6 Replies
Apr 14, 2009
how to retrieve microsoft access filenames from a particular folder on my computer? Within my project the user can create a database, and i want to be able to display all of these databases in a combo box?
View 8 Replies
Jan 23, 2012
I have application with 2 forms (Form1, Form2), when i click in a button in form1, form2 open.when form2 opened & I switch to other window and try to switch back to my application (By clicking in its icon in taskbar), it switch to form1.I need when form2 open & click in taskbar, it switch to form2 & also when form2 open I can't edit or type anything in form1.Exactly the same as the below scenario in windows:when I open any new window from "Windows Properties" (Right click my computer), and switch back to windows properties, it will switch to the new window not to the main Windows properties window
View 2 Replies
Aug 13, 2008
Like a window behind another window.
And also, what if the screen saver comes up? Will the underlying screen still be copied???
View 1 Replies
Mar 28, 2011
Is there way to get the pixel color of the specific point of an hidden window WITHOUT to use the PrintWindow Api?[code]....
View 3 Replies
Dec 6, 2010
There's some code I have hidden via the Outline-Hide selection method, and the hidden code shows as a box with 3 dots. I saw that if you put some code in the #region - #end region area the hidden code box can be renamed, but region-end region cannot be used inside a property, so is there any other method to rename the hidden code in a property?
View 4 Replies
Apr 12, 2012
If my window is hidden or out of focus, how do I detect a keypress? The idea is that it just sits in the tray as an icon until a key combination is pressed and then it pops back up again.
View 2 Replies
May 1, 2011
i'm using Visual Basic 2008
here is part of my code:
Private Const SW_HIDE As Integer = 0
Private Const SW_SHOW As Integer = 5
[code].....
View 3 Replies
Jun 14, 2012
ok when my program is running from scratch I have a piece of code that just says if the size is this.. then make this.. else make this.. so it just makes is small and big..after you close it.. it hides itself in the sys tray... if you bring back out of the system tray.. and click the button to make small or big.. does nothing.. it come out of the sys tray as the large size.. and wont go small again..
does something on the form get set when you hide it ? that needs to be unset to let it resize it ?
View 1 Replies
Jun 10, 2009
I am using the code below, but it still shows the program.For example, if I pass in CALCIt will start the calculator but show it.
Code: Public Function ExecuteFileHidden(ByVal lFile As String, ByVal largs() As String) As String Dim oSTR As String = "" oSTR += "Attempting to execute " & lFile & vbCrLf Try Dim p As New System.Diagnostics.Process p.StartInfo.FileName = lFile Dim a As String = "" For Each l In
[code]....
View 1 Replies
Aug 19, 2011
I have designed a small component I need to derive. The problem is one property from base class doesn't make sense in derived class, but won't hurts too (just it's ugly in property editor)
Now there is a solution to make that property non-derivable or hidden in derived objects?
View 9 Replies
Apr 12, 2011
In on a section of my book about classes and properties. In this example, the author is attempting to show how you can validate a value passed to the property before setting the property. Looks like so far in this book, a couple of things have slipped past the editor, and I think this might be another one...Here's the example:
[Code]...
View 2 Replies
May 24, 2009
I get an error while trying to install a third party Excel add-in [Thomson One Analytics]. Error: "Compile error in hidden module: Main" Microsoft Excel 2003
[Code]...
View 2 Replies
Jun 11, 2012
At the bottom of the Properties window in the Visual Basic 2010 IDE, there should be a brief description of the selected property. For example "Text: the text associated with thecontrol". But it's reduced to a height of 0 so far as I can tell, and I haven'tfound a way to make it visible. Right-clicking the Properties window and selecting/checking"Description" has no effect. How do I make this pane visible?
View 2 Replies
Mar 19, 2010
This should be fairly basic but maybe the search terms are too general to find relevant answers.I have an MDI form with a conventional toolbar. When I open a small non child form I want to set focus back to this main form so the user can click the help button on the toolbar if necessary.
Tried frmMain.Select() and frmMain.ToolStripButton0.Select() at end of small form load but it doesn't work. The user has to click the help button twice, once to select it and once to open it. A minor problem but annoying.
View 2 Replies
Mar 25, 2011
Any way I can set parent of the MainMenu control? I don't want to use other controls because there is no windows 7 or vista style as in picture. Other controls have just ugly blue and white color. When I add MainMenu it sets position on top of the form. I want to set MainMenu Parent to one Panel. Other controls have just ugly blue and white color.
View 8 Replies
Oct 20, 2010
I have an application that opens and saves spreadsheet via interop.At start up I set
Code:
_excelApp.Visible = false;
_excelApp.DisplayAlerts = false;
[code].....
View 2 Replies
Jul 23, 2009
My app has a main form from which the user can set specific 'setup' information for things such as ports and IP addresses, plus it gives them visibility to a table that is used in conjunction with the TCPListener/responder. The program receives a request for information which it gets from the TCPListener, it gets the requested information and sends back the requested information. It all works great, but I need to move it into the background. When the listener starts, the app is basically locked from any user interface (including the ability to close the form and terminate the process).
What I currently have is:
A class called MyTcpListener with a shared sub 'RequestRespond'
From the main form, there is simply a button labeled "START" for the user. When the user clicks on start I call the listener by:
MyTcpListener.RequestRespond(LocalPort)
View 4 Replies
Aug 15, 2010
I have a simple WPF vb.net application and wish to set the visibility property of some buttons on the main window to True when user successfully logs on
I have a MainWindow window with a frame hosting any number of pages and use the navigation service to load into this frame eg. Me.BodyFrame.Navigate(New System.Uri("Logon.xaml", UriKind.Relative)) One Page (logon) enables user to logon.
vb.net code:
Dim txtLocalLogonID = txtLogonID.Text
Dim pwdLocalPassword = pwdPassword.Password
Dim LocalLogon As New gblLogon()
[Code]....
How do I reload the main window? I realise the code is primitive but I just want to get it working first.
View 1 Replies
Mar 5, 2011
I have a little problem with application setting in VB.net 2008. I want to switch main server and backup server connection string with combobox. [Code] It did change the Application Setting connection string in the main form when combobox1 was changed. But the problem comes, when child form was called. On the child form there is DataGridView with Dataset using application connection string. Even the Backupserver was selected on the main form, child form dataset connection string doesn't change. I don't know how to pass the current connection string to child form dataset although it is set to use application setting.
View 6 Replies