Datagridview Seems To Cause Startup Form To Appear Even After Been Hidden?
Feb 15, 2010
I have created a DB with access and imported it into my application. What I am trying to do is startup with regi.vb and test to see if there are any entries into the DB and if so, hide the startup form(regi.vb) and show the login.vb form. have done a test and it loads regi.vb then I enter some details into the textboxes and then after clicking a button, it inserts the info from the textboxes into the DB. It then loads login.vb, which is fine, but then if i exit the app and reload it, it tests to see if there is anything in the DB and when it finds that there is, it reloads the bloody regi.vb(startup form)!!So why, when it discovers that the DB is not empty, it re-opens the startup form??
I have used login.show()
me.hide()
Here is the code for the startup form (regi.vb)
[code].....
View 13 Replies
ADVERTISEMENT
Nov 29, 2009
I have a problem and its driving me nuts.I have so far, 2 forms. 1 called regi.vb and the other called logon.vb.I have created a DB with access and imported it into my application. What I am trying to do is startup with regi.vb and test to see if there are any entries into the DB and if so, hide the startup form(regi.vb) and show the login.vb form.
I have done a test and it loads regi.vb then I enter some details into the textboxes and then after clicking a button, it inserts the info from the textboxes into the DB. It then loads login.vb, which is fine, but then if i exit the app and reload it, it tests to see if there is anything in the DB and when it finds that there is, it reloads the bloody regi.vb(startup form)
[Code]...
View 2 Replies
Nov 11, 2009
i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.
View 3 Replies
Jun 20, 2010
I can hide my startup form (or make it appear hidden) on startup. I can start my app on windows startup--through registry values--if the user checks a checkbox.
But if the app starts up on windows startup, I want the form to be hidden, so the program can just keep working without bothering anyone. If it starts up because the user started it, I want the form to be showing, because the user probably wants to change some settings or something.
View 8 Replies
Jun 7, 2011
how can I set to visible = true those hidden rows in my datagridview?. When the form loads, I set some rows to visible = false due to some reason. Now, I cannot find away to unhidden them.
View 1 Replies
Nov 20, 2009
I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.
What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.
View 6 Replies
Feb 28, 2012
How can i export data from datagridview to excel 2010 without export hidden row(s). Just want to export rows that are visible.[code]...
View 3 Replies
May 16, 2012
I'm hiding the "EmployeeID", my Primary key that is part of my datagridviews datasource. I need to get the value of that hidden column of the selected row of my datagridview. How do I go about doing that?
View 1 Replies
Jun 9, 2011
I have a DataGridView which contains a hidden column. On the BindNavigator SaveItem_Click event i need to populate the hidden column cell with the current date. I tried using the DefaultValuesNeeded event but it did not work out.
View 4 Replies
Mar 13, 2012
I want to make 5 attachment options in that 4 out of the 5 are hidden.but when he clicks "more attachment" link it will show the other 4.Im using ASP.NET with VB?
View 2 Replies
Mar 23, 2011
well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used
Me.toplevel = false
Me.parent = form1
View 6 Replies
Jan 25, 2012
I have a new application, and for some unknown reason, it's hidden behind other opened applications. It is shown when launched on desktop only if desktop is empty. How do I force my application to be in front of desktop ?
View 1 Replies
Mar 27, 2009
I have made a validation application, the application runs in the tray and responds to events of another app such as save document, on this event my application runs, validates the document and creates a pop up message of errors in the document. However the pop-up is hidden behind the other application, the other application is locked because it is waiting for my app to finish. I have tried combinations of show(),activate(),bringtofront () with no success i have also tried SetForegroundWindow() and SwitchToThis Window() for win api but with these the app still just flashes orange in the taskbar behind the other application which is locked.I think it is almost definatly a problem with stealing focus from the other application but im not trying to make an annoying pop-up, it is needed and only appears when there are problems with the document the other application is locked and will not respond untill okay is clicked on the pop-up and it is easy to miss the flashing icon in the taskbar
View 1 Replies
Jul 8, 2009
I wrote an application with multiple forms.One form is used to show any kind of messages helpful to the user (frmMessageWindow).The user has the option to not show frmMessage Window.I would like to hide frmMessageWindowbut keep it loaded and continue to add messages to it so they will be available when the user chooses to show the form again.I use frm MessageWindow.Visible = false to hide the form and this works fine.But there is a check box on frmMessageWindow and if I check the value from another form it makes frmMessageWindow visible.
View 2 Replies
May 7, 2011
Is there a way of checking if a form (the mainform) is hidden?
View 2 Replies
Jul 2, 2009
I am using vb.net 2008 i have been using a mdi form which is the startup form for my prog. and i have a main menu on that form. now i would like to shift to tree view as my client has asked for it. whenever a node is selected i can select the form corresponding for that particular code. everything is fine till here. but when the form is loaded the tree view is coming on top of the form the tree view is docked in a pannel. now i have tried everything treemenu.sendtoback and the say the form to b called is taxtypemaster then taxtypemaster.bringtofront but still the tree view is coming over the form
I have tried the following :
Dim mMenuSelected As String = e.Node.Name
Select Case e.Node.Name
[CODE]...
Even the visible doesnt work as it seems after the .show it makes the tree view visible again. how do i hide the treeview pls. someone guide me at the earliest. i feel it is not the prob. of treeview but something to do with the mdi form am i right ?
View 23 Replies
Nov 19, 2010
I'm using simple data binding and have in total 3 fields on my Form and 2 of them are hidden. The two hidden fields are calculated by filling in the first one. bellow you find the code I'm using, when the update is done only the first field that is fill in is written to the Database. How can I change the code to get all 3 of them written to the Database
Public Class frmLicenseKey
Inherits System.Windows.Forms.Form
Dim dsLicenseKeyInfo As DataSet
[code].....
View 1 Replies
Jan 1, 2010
I can show/hide a form, but is there anyway for me to check if a form is hidden/shown? After the form calls InitializeComponent(), and activates the OnLoad Event, it automatically calls the Show() of the form. I do not wish my form's default startup mode to be Shown. I tried overriding onshown method and call Hide in OnShown. It works but this method looks pretty ugly to me though so is there anyway that I can stop the form from even calling Shown when it was first initialized?
View 31 Replies
May 22, 2009
I want to pass a few variables to another page. Currently I'm using response.redirect and passing the variables in the url. I'm not really interested in using Session Variables. Is there a way to pass hidden variables in .NET to a completely different form?
View 4 Replies
Mar 11, 2010
Form1 Loads data from a Db and has 3 buttons, each button represents showing data from a different table onto form2When form2 is initialise for the first time i can use an onload event, but if i go back to page 1 and click a different button to show a different table i get the table from the origional as form2 does not use the onLoad event again.
To switch between forms i use
Class Form1
Public Shared whichtbl as string
[code].....
View 2 Replies
Oct 6, 2011
I'm trying to create a program that will look at a website and check it for updates, similar to an RSS feed. It then will show a dialog (Form2) that will inform the user that there is an update.Form1 is used as the configuration form and is able to be shown via a notify icon in the system tray, which is on Form1.Originally I would have Form1 hidden via Me.Hide() and then run a timer which would check for the updates and call Form2.ShowDialog() when there's an update, I found out however, that if Form1 is hidden, the dialog will not show.
Next I tried not Hiding the form, but instead setting its ShowinTaskbar property to False. At this point the program functions correctly, however when I minimize Form1 it sits in a shrunken window near the task bar... Is there any way to completely hide Form1 (when minimized), and allow Form2 to be shown as a dialog?
View 11 Replies
Jan 3, 2010
What I want is -
Dim filename = System.IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString)
Dim openForm As Object
[Code]....
View 4 Replies
Jun 24, 2011
I want to know how to start a forum hidden. I know I can just add Me.Hide() to the Window_Loaded event, But it's ugly. The user sees the form for a split second then it dissapears. I want to form to start up hidden. Little background on my program, it is a small taskbar application, Has a small notify icon. When the app is loaded. I only want the notify icon to be visible. I have done this by creating my own Main subroutine in a Module that I created. and I am laucnhing the application like so
Imports System.Windows.Application
Module MainModule
Sub Main()
Dim mainWin As New MainWindow
[CODE]...
View 5 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 Windows Form Application to which I added a splash screen created using the splash screen template. I also added an MDI Parent Form. In my project properties, I chose the splash screen and the MDI Parent as the loading form.
I want the MDI Parent to load Maximized, so I changed the WindowState Property in the list to do just that. Now here is the problem:
If I leave the WindowState set to Normal, the splash screen loads, does its thing, closes, then loads my MDI Parent just like it is supposed to, BUT, if I set the WindowState of the MDI Parent to Maximized, the splash screen displays for about a second, the MDI Parent loads on top of the splash screen, and the splash screen finishes in the background and then closes.
I tried giving Focus back to the splash screen in the Lost Focus event but that didn't work. I know splash screen is still open and working when it gets covered up because I can hit ALT+TAB and see it just before it closes on its own like its supposed to. I also never adjusted any of it's time settings or any other settings.
How do I keep the splash screen on top while my MDI form is Maximized? or how do I delay the MDI until the splash screen has done its job? I dont understand why I am getting this result.
View 3 Replies
Feb 26, 2009
My FormLoad event contains a simple line which is Me.Hide. Then I make the tray icon visible so the application can be shown if the user needs it. However, the Me.Hide statement doesn't work during the form load procedure. It seems to work fine after the form has been loaded. So, my question is, how can I simply stop the form from becoming visible in the first place or hide it after it has loaded?
View 4 Replies
May 23, 2011
As usual, I change the startup form under Application tab. At this time, it doesn't run my selected Startup form. Whatever I set to any forms or even excluding that form, it still runs the same form.
View 2 Replies
Mar 31, 2009
Is there a way to get the name of startup form? I want to access a property of a control that is on startup form.
View 3 Replies
Jul 28, 2010
VB2008 application.
Using a splashscreen.
When the spashscreen is done, the main menu for the program appears.
The problem is that the main menu appears UNDER things already open on the desktop.
Always On Top could be the answer BUT if I do that, all sub-menus will be UNDER the main menu rather than stacked on top.
View 4 Replies
Oct 30, 2010
I continue to get this error when using the code samples from Cengage's book Zak's Programming with Microsoft Visual Basic 2008. I am running Visual Studio 2010.I am attaching the code below:
Option Explicit On
Option Strict On
Option Infer Off
[code].....
View 8 Replies