Make A Form Start Instead Of Another One?
Jun 14, 2009I need a different form to show itself on startup.And then when i click a button make it show another form.
View 17 RepliesI need a different form to show itself on startup.And then when i click a button make it show another form.
View 17 RepliesI have an application that has sixWindows formsI selected one form as the StartUp form and it worked fine. I then did a little "experimenting"...I added a Splash Form, which I had never used before. I later decided that I didn't think a Splah Form was appropriate for my application, and deleted it. Theresult was:) The form I want to use as a StartUp form (call it Form1)does not appear in the list of forms in the Application section of the project properties.2) When I run the application Form 1 appears for several seconds and then is replaced by the form designated as the StartUp form , which, since the form I want is not on the list, is the incorect form.
View 2 RepliesMy 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 RepliesHow can I make it so when a button is clicked it will make the program start on start-up but only if the checkbox is checked?
View 9 RepliesI want to make live search form like when user enter 1 char then it ll find all data start with or contain letter.i have use the sql like query with textbox textchanged event but it is too slow any other method to make it fast?
View 4 RepliesI have a vb.net application and want it to start at Windows start up only if the user checks checkbox1 the procedures on how to do this and the code
View 1 RepliesHow can I get my application to load the Sub Main at the start rather than loading a form on start up.
I have tried declaring 'Public Sub Main' on my forms and in some modules, yet in my project properties, it is not one of the options.
We only have few meetings for Computer subject that's why time did not permit us to discuss timer codes. Anyway, my concern (I think) is just simple (though I really do not know how to start).I plan to make a countdown timer of 60 s that will start once "Start" button is clicked and will display a message box when it reaches 0. I only know the codes for message boxes.
View 7 RepliesI cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
View 5 RepliesI have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
View 2 RepliesI have a program that uses two forms. The program opens to the Main form, and the user can navigate to the other form from the Main form through use of a button. Here's the way I've currently written it: When the Main form loads, it declares and instantiates the other form during the load procedure. When the user presses a button, the second form is displayed by means of the ShowDialog method. On the second form, there is a Return to Main Screen button which closes the second form, bringing the user back to the Main form.
So, here's the structure of the code:
Code:
Public Class frmMainForm
Dim frmSecondForm As New SecondForm
Private Sub btnSecondForm_Click(blah, blah, blah) Handles blah, blah, blah
[CODE]...
Here's my reasoning: Originally, I wrote the code so that a new instance of the second form was created every time the button was pressed. The problem was that whatever data was displayed on the second form, previously, was lost when the user returned to it a second time. Since the user would be switching back and forth between these forms, frequently, I needed that data to persist.
What is the best practice for accomplishing this:
1) Declare and instantiate the second form on program start, as I have done, and use the button simply to show the form?
2) Declare and instantiate the second form each time the button is pressed but maintain the variables on the Main form and pass them ByRef to a custom constructor for the second form? Is this even possible?
3) Something else?
I want a stopwatch thing, to start on the forst form, and stop on the last form, and to show the time.
View 2 Repliesi was wondering if you can make a program run at start up auto
View 9 Replieshow to make a program start as soon as you login
View 1 Repliesvb 2008, How do I get my VB 2008 application to start automatically when a user logs into Windows?
View 6 RepliesPrivate Sub Button7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Button7.Click
[Code]...
oook so this when button7 clicked it will move my mouse to the X:700 and Y:700, but will start from the X:0 and Y:0 but i tried making start from my current mouse position but idk how not working:
i want to make my program to where when you install it, it will automatically start up with your computer everytime, but will start up in the background to where you can't see it....is this possible?
View 3 Replieshow can i make my program start with windows?
View 3 RepliesWhen setting the selection of a RichTextBox, the selected text is highlighted even though I set the HideSelection property to True. Once the RTB loses focus then the selected text is no longer highlighted. Programatically setting the focus to another control doesn't hide the selection, only physically clicking another control will hide it. So is there a way I can make the RTB not show the selection right from the start?
View 1 RepliesI have MDI form and child forms in my app.[code]...
now if i try to refresh the items of combo box of Register form from Desig form, then it is not refreshing. i.e. i can't see my new items in that combo box on Register form.
Now when i try to start my app directly from Register form then the same code works perfectly but same code is not running when i try to start the app from MDI form.[code]...
I just made an auto talker but i wanted to know if its possible to make a random time before it start talking. Exemple: Instead of just talking every 2 seconds, make it random between 2 - 8 seconds so he can talk at 2 seconds then the second 7 seconds then 3, 5, 6, 7, 8 etc......
View 3 RepliesIm trying to make the media player start some tracks that i have in a folder in the working directory of my program. I am not sure how to do this as I have never used the media player. The program has a media Library i have called itunes and a variable for the number of different genera available (there are only 2 at the minute) there is an array that gets the track and genera. The horizontal scroll bar is suppose to select them but doesn't (if i change the number in the array it works) Called HSB.[code]
View 3 Repliesi just want to know how i can make this program run proberly. if you import a file in the listbox and you wanne start it whit the process.start methode it won't work. here is my code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()
[code]....
My question is how can i make the process.start work properly and will the program start the file?
I made a program that makes backups of a database when the user runs the application, etc. I never created something like this. I got all the code to make the backup, now the problem is to create it as a service.This is my form to the person choose the days and the hour to the process runs and install it as a service, and when it runs to be minimizated on the windows icons near clock and date and another option.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
AddToStartup()
End Sub
Public Sub AddToStartup()
Dim Reg As Object
[code]....
I got this code to creates a short cut on the startup path to my project run Every time windows start's and do his job and close, but now I got a problem, how It should be to VB2010 ? And how it would make a run on the specific days / hour that persons choose ?
everyone know the start page of Visual studio it seems to be a web page, how I can make like it in my applications?
Edit, Add more details:
let us say that I want to show the recently opened forms or the Tip of this day, who I can do that, where to store the data and how to generate the HTML file?
you tell me how to make a ClickOnce Application Start when A User Logs on? I am running Express so I cannot use the Installers in the full VS. I would like it so it will only add a shortcut when it is installed. (Application is available offline)
View 4 RepliesOkay so i made a small code that my application can check for updates onstart time. The problem is that it freeze up the application. How can i make it work faster.
Try
My.Computer.FileSystem.DeleteFile(My.Application.Info.DirectoryPath.ToString & "" &
"v.txt")
[code].....
How can I move my window to a specific System.Windows.Forms.Screen?
View 4 RepliesI am developing an application, and i need this application to be running in background (like our anti-virus programs) on system task bar.
and how to add right click menu for this icon on taskbar...
I have a program which has 2 forms. I execute form1 first because it reads files and then writes to a file. Then I execute second form (form2) that will read the file created by form1.
How could I make form1 start form2 once it finishes reading file and writing to a file?