Forms :: VB - MDI - Application That Consists Of Mainly One Main Form - Ranging Form Graphs, Tables, Dropdown Boxes, Print Preview
Apr 7, 2010
I have to write an application that consists of mainly one main form, but several different things I wanna display. Pretty standard I guess. So there is a menu, some controls, and the main stuff below (ranging form graphs, tables, dropdown boxes, print preview, etc). I would like to use it like one would use frames in html, design an object that is limited to a box or panel that I define. The literature I have does not give me a clear idea of how to do this (yet). The most obvious seem to be the use of MDI, open a predefined form with no borders, maximize it before showing and remove all minimize/maximize options. But that does not work so well. The form inside the MDI parent does not fit the size that is given for it when it is loaded. e.g.
[CODE]:......................
So my main question is: Is MDI the way to go here at all or are there better/easyer ways to achieve this? If MDI is the way to go, how do I sucessfully restrict a child form inside another object, without giving the user any opportunity to resize (i noticed that I have minnimize/maximize/close buttons, even if I disable them on the child forms themselves)
View 6 Replies
ADVERTISEMENT
Mar 11, 2010
i want to take print preview of window form and after taking print preview want to take print of form
View 4 Replies
May 25, 2009
I am using the following code in the 'Application.Designer.vb' to set one of the two forms as the the mainform for my splash screen.The global string array gSetupStr(0,1) only produces a correct result when any Msgbox is inserted before the 'If' statement.However,I do not want the Msgbox during a splash screen, but do want to control the mainform. [code]
View 1 Replies
Apr 2, 2012
Is a simple line of code that will allow me to bring up a Print Preview of my Datagridview which i have on a form?
I have managed to make a button which will directly print the file,
but i want to be able to make it show on a print preview but im struggling with finding a code.[code]...
View 9 Replies
Nov 25, 2010
When i get into the print preview form , it only shows half of the form ...
I've searched some of the related threads but i still can't get the solution to my problem ... i've read some of the suggestions like using the srcollable options , margins ... but i don't get how it works ... i just want to know what can i do to show the whole form in the print preview instead of just half of it .
View 10 Replies
Jul 23, 2010
I have problem in printing i want to take print preview of form in vb.net code is as follows
[Code]...
View 3 Replies
May 3, 2010
How to Print a Win form of VB.net after Print Preview?
View 2 Replies
Apr 29, 2011
[Code] I want like to check if a file exist on main form, if not: force open settings form. And then when the user is closing the form with exit button = check if the file exist again. If it doesn't exist, close application. It's a huge application and I need optimized on most parts. Also, the settings form is asking the closing question two times.
View 1 Replies
Jun 7, 2009
In the main form the user can choose to download information from a device.Since this request takes time, when "download information" is pressed I open new form in a separate thread: Private Sub RunDownload()
[Code]...
View 3 Replies
Apr 20, 2011
When I open my child form,
frm_Analogs.ShowDialog()
It opens up the new form, but now I can not interact with my main form. It will not accept focus or allow me to interact with it.
Do I need to change the form type?
View 4 Replies
Jan 8, 2011
I have a log in form, I have had a couple of idea's. When a user logs in I want his/her name to print on the top of the main form with the current date, the data for the login form is collected from a sql database (not sure if that is relevant). also, I have a particular button on the main form I only want active when the Administrator logs in, if anyone else logs in I want the button inactive.
View 2 Replies
Apr 12, 2010
My application consists of about ten Forms so far. One of the forms gives the user the option of choosing the language that all the text on the forms will use. Each Form has a declaration like this
[Code]...
I have this declaration (Public myLanguage As New DataClass.LanguageStrings) where I had intended to keep my working copy of the chosen language strings, so that each Form's Constructor could set the xxx.Text properties using this type of assignment - ... = myLanguage.yyyStrings.xxxString. However, the IDE throws an error at the first occurrence of "myLanguageSet" in the module SetLanguages above, saying that I should use "New" to declare an instance which I can then use, despite the line above that point where I thought I was doing just that. It doesn't seem to matter where I put the declaration of myLanguageSet, I just can't avoid the "New" error being thrown.
View 1 Replies
Sep 3, 2009
How to control other form from a main form? For example :
I want to change background color in Form2 after a button in Form1 is clicked.
View 3 Replies
Sep 10, 2010
how can I use main form like MDI parent form in window application?
View 1 Replies
Mar 17, 2011
I've created a windows form application in vb 2010. I've got all my forms complete and now want to add a Login screen. One the login screen, after the username/password is entered and OK is pressed, I try to open the a connection string. Obviously if the connection fails, the user has entered the incorrect credentials. If the credentials are ok, True is returned and I then open up the Main form that shows the correct items for the logged in user.
[Code]...
View 5 Replies
Nov 20, 2009
I need to get a subtotal from multiple forms and add them together on the main form. I can add two forms together but not the third.
View 1 Replies
Feb 8, 2011
I am looking for a way to be able to use the tab control on my main form and transfer all 3 other forms onto that main form that has the tab control. Problem being is that some functions are named the same in each of the septate forms i want to bring into just one for the tab control.Is there a way to separate the code for each form ON the main form of the tab control so i don't have to rename/recode each of the 3 forms i want to place on the main form of the tab control? [code]so when i put both form1 and form2 code on the main form where the tab control is, its going to tell me that i have a duplicate function name.
View 2 Replies
May 25, 2009
I want to have a drop down menu with the values:
Year 7
Year 8
Year 9
And I want to display different tables for each the values selected in the drop down menu. For example, when the "Year 7" value is selected in the drop down menu, a table is displayed for that year.
View 3 Replies
Jan 13, 2010
Our Winform app consists of a Main.exe and a Launcher.exe. The purpose of the Launcher app is to check for updated versions of the Main.exe. If it finds no updates it launches Main.exe using System.Diagnostics.Process.Start
If it finds an update, it copies the new Main.exe into position and launches Main.exe the same way (in this case it will be a fresh copy of Main.exe).Here's the Process.Start code:
Dim p As New ProcessStartInfo
p.FileName = "Main.exe"
p.WindowStyle = ProcessWindowStyle.Normal
Process.Start(p)
This code executes whether or not there's been an update and always successfully fires up Main.exe.However our Main.exe, if it's being run for the first time (ie. after an update), will error on any line which references the My namespace, such as My.Settings or My.Computer.FileSystem For example this line will cause an error:Msgbox(My.Computer.FileSystem.SpecialDirectories.Desktop)
Here's the error: System.IO.DirectoryNotFoundException: Could not find special directory 'Desktop'. at
Microsoft.VisualBasic.FileIO.SpecialDirectories.GetDirectoryPath(String
Directory, String DirectoryNameResID)at
Microsoft.VisualBasic.FileIO.SpecialDirectories.get_Desktop()
at
Microsoft.VisualBasic.MyServices.SpecialDirectoriesProxy.get_Desktop()
But while this example refers to Desktop remember it can't find any of the SpecialDirectories. It's not restricted to Desktop. But only the first time it's run (ie. immediately after an update). Thereafter it will run fine.If the process failed more spectacularly, to do with file system issues, locks or threads, it would be more understandable. But why just this "minor" problem with the My namespace?
View 1 Replies
Jan 21, 2010
Print Preview without opening Excel application?
View 6 Replies
Mar 11, 2010
I have a form that consists of a Tab Control..that is filled with text boxes..a ComboBox..and a Notes Box. I just really dont know what extension to put in the SaveFileDialog : Can I just put something like *.* or maybe All Files,,
View 2 Replies
Oct 2, 2009
I am developing a commercial application that needs to do some environment checking upon start up. I need to check things like the following. 1. Is there a registry entry on this machine that has various keys for paths to SQL Server 2. If it does not I need to create them. 3. Prompt user for the path to the SQL Server 4.Check the SQL Server to see if the database I need exists. 5. Create the DB if not. 6. Populate the DB with the tables I need 7. Create stored procs in the DB 8. Write the registry. I could do all this in the form load of the main form. However is there a better way? Like doing all these checks as part of a splash screen for example.
View 2 Replies
Feb 25, 2009
I have an application that contains a MDI Form as the main screen. In the text field of the form, I am trying to display the version of the application using the following syntax:[code]Using the above code, it always looks like 1.0.0.0 when in reality I'm on version 1.0.0.6. What am I doing wrong?
View 11 Replies
Jun 22, 2010
I was a vb6 user, done a few projects only with forums Now i am moving to vb.net(vb2010) and i have some trouble.Lets say we have a form(form1), a module(mod1) and a textbox on the form1.
i want to start a Sub (DoWork) in the module but in a new thread.
Dim Thread1 As System.Threading.Thread
Thread1 = New Threading.Thread(AddressOf mod1.DoWork)
Thread1.Start()
The DoWork sub does some stuff and when it's finished i want to change the text of a textbox1 in the main form and start another sub (DoWork2) on the main form under the main thread not the one DoWork is running under.
Plese do not refer me to another post that mighe give me a part answer, try to explain to me what i have to do and why.
View 3 Replies
Aug 5, 2010
i have my main child form open. then i show the new form:
[Code]...
but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?
View 12 Replies
Jun 12, 2009
I need to reload the form of my application. The application has only one form vb.net 2005. I need a button that will call the page_load event so I can restart and reload all my settings. basically I need to call the Sub private Page_load event().I just need to force the reloading of the form without having to close it and reopen it.This is the code which I need to reload:
Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
For Each URLname As String In My.Settings.URLtoTrackCollection
URLtoTrack.Add(URLname)
[code]....
View 8 Replies
May 23, 2010
I wanted to let the users to select their desired wallpapers dynamically in the window main form. Is it possible? Funtional spec:
1. Let the users to select their desired wallpapers from any directory.
2. Save the wallpaper in the database.
3. Load the wallpaper in the main form after login sucessful.
View 1 Replies
Sep 24, 2010
I have a splash screen, the default from Visual studio. It loads up, is shown for a few seconds, then, when it disappears, the main form is loaded. Now here is the problem: the main form appears in the back, behind the windows explorer window I load the application from.
The weird thing is that this only happens on some computers, particularly Windows XP machines.I tried a lot of things like BringToFront() or TopMost = true in the on Load event of the form but nothing seems to change this.
View 3 Replies
Mar 17, 2009
Am devloping an application with multiple forms, which reside on top of a main form. i.e the main application window. The 'child' forms do not need to be linked in any way as they do not pass information to the parent form, as all the parent form does is act as main window.Now I would like to know what is the correct way for the 'main window' form acting as a container for the other forms? So that all the smaller secondary forms stay focused on top of the main application form, that when the main window is minimized, so these forms should do also etc..
I have read other posts and they mention, leaving all the forms standard i.e. IsMdiContainer = False and then using form.showDialog() to call the secondary forms. This did not work for me as what happens is that as soon as I give focus to the main app form, the secondary form disappears underneath.I tired making the main app form IsMdiContainer = True and when it loads calling:
frmMemberForm.MdiParent = Me
Now this works, because I can click off the form and minimize the app etc and the frmMemberForm doesn't disappear. However if i close the MemberForm and reopen it, it looses this property and once again when it looses focus, it will disappear.
View 16 Replies
May 7, 2011
I have a login form which I need to close without the entire application being terminated. I tried using Me.Close() , Me.Hide() as well. The login form is used as the main form as well.
View 2 Replies