Preload Form In VB9?
Apr 23, 2009
I know this is probably a simple question, but I wanted to load 2 other forms when my mainform loads, but to be hidden. I know how to show and hide the form once it's been loaded into memory, but how to load it in a hidden state?
View 4 Replies
ADVERTISEMENT
Jan 14, 2010
I start my program with a splashscreen and as soon as the mainform is loaded, databases are loaded and data is crunched it shows the form with everything on it. All very nice. But now comes the trick. The form has a strip of 5 tabs on it. The active tab is shown and directly accesible but as soon as i click on the other tabs it needs time to draw everything and calculate its content. And when i have clicked through all of them everything is finally up to speed. How can i speed things up in such away that all this predrawing etc is done in the background just as i got it to work with my mainwindow and its first tab?
I have this in the load sub:
For i = 0 To TabControl1.TabCount - 1
TabControl1.TabPages.Item(i).Invalidate()
Next
But some how this does not do the trick.
View 3 Replies
Aug 19, 2010
im trying to learn how to code more efficiently and was wondering how to preload combo boxes better. im working on a project atm that has many comboboxes with the same menu information. how to i link the information in a sub procedure when the comboboxes all have different names?
View 3 Replies
Jun 7, 2010
on the loan of my application i created a background_worker to pre-load some of my child forms. here is the problem - it seems that the forms gets loaded into the second process and it wont have any affects on the original process .
In another words when i try to show the preloaded form nothing is displayed. How can i ask the background process to "Merge" with the main process when it is completed! i am not sure if merge is the best word to describe what i am trying to do here!!!
also if i try to re load the form that was created by the main process i will get exception saying you can't change one some that was created by another process
View 3 Replies
Aug 26, 2011
Im Using VB 2008. I have MsgBox() statements in all Mouse & Form Click events to TEST & NOTHING FIRES during Form Load when I click on Form or Button Controls !!! The Form Load event contains code for Displaying the Label.Text control many times with changes in the Text to simmulate annimation.
[Code]...
View 7 Replies
Dec 23, 2008
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
View 8 Replies
Jun 12, 2009
get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
View 1 Replies
Mar 28, 2011
I have a form being called form several forms using ShowDialog().
1. Is there a way for called form to know which form called it by receiving a code or key from the calling form?
2. The calling form has a gridview. How can the called form pick up a column's value from the currently highlighted row in gridview in the calling form?
View 4 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
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
Apr 9, 2010
I designed a class contains a form that have buttons. When i click any button this function runs
Public Sub BtnClick(ByVal sender As Object, ByVal e As EventArgs)
result = CType(sender, Button).Text
[CODE]...
In another project I imported this class. I called the method that shows the form in my class. I need to store the 'result' variable in another variable in the new project. How can It be done.
View 1 Replies
Jan 22, 2011
how to pass value from one form into another form...? for example if i have 1 mdiform and 2 form (form1, and form2) for load form1 i'm using system.reflection.assembly here is the code for load form1 :
Imports System.Reflection
Private Asm As Assembly
Private FrmNama As Form
Public Function GetForm(ByVal FormName As String) As Form
[code]....
after form1 load i call form2 from form1 and from form2 i want pass value, here is the code from form2 to pass value into form1 :
form1.textbox1.text = textform2.text
why value from form2 can't fill into textbox1 in form1?
View 15 Replies
Jan 26, 2010
I'm new in .Net and I have an application with windows form "LOGIN" When users enter the user and password and click "ok", then if user passes validation then I have the code Show(MDIMainMenu) (I'm trying to open an mdi form), but I receive the following error: "Form that is already visible cannot be displayed as a modal dialog box. Set the form's visible property to false before calling Show. Error Number 5"
[Code]...
View 2 Replies
Apr 24, 2009
i want to be able to click anywhere there isn't a control on the form and be able to move the form to anywhere on the desktop...
the control box is off and the form text is blank, so there is nowhere on top of the form to click and move the form..
View 10 Replies
Dec 15, 2011
I have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?
View 6 Replies
Aug 18, 2009
Below is the exception code info. when I try to make form visible for the first time from another form then I get an exception code. something like 'a required variable not set'
Quote:
CODE:
View 7 Replies
May 26, 2012
I tried it every way I can think off, but nothing can stop it .
View 7 Replies
Aug 2, 2010
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.PictureBox1.Load(bm2)
[CODE]...
So I'm trying to take a screen capture of the windows form and display only a certain specified area of that screen capture in a picturebox on a different form. Kind of like this. First, take the screen capture of the form: Then get a specified area of that form through x,y coordinates or something and display it on a picturebox on a separate form.
View 1 Replies
Apr 8, 2009
I have a DataGridView on a form that is being populated from a SQL table dataset by giving criteria from a previous form. I have 6 columns in the dataset, of which the last column should be combo box column containing items "Done" and "Pending". How do I make this bound column to a combo box column and display the value as well as the alternate item too in the combo box?
View 6 Replies
Jan 29, 2010
I have a main form with datagridview containing a list of contacts:
VB
Public Class Form1
Private Db As New DataClasses1DataContext
Private Sub Form1_Load
[Code]....
After saving, I get the correct message ("Saved"), and the DataGridView in the first form gets updated in real time.
But... when I take look at the data (or close and reopen the forms) the data in the database (SQL server) have not changed! What happens!
View 4 Replies
May 15, 2012
How do i load the Main form of a WPF so that a seperate thread goes and gets data from the database while the form is in an apartmentstate? (drag-able / movable) I Know this is possible with opening a new window from your main form like this :
Private Sub openOrderWindow()
Dim OrderWindow As Orders = New Orders
OrderWindow.ShowDialog()
End Sub
[code]....
I've tried putting MyBase.ShowDialog() and .Show() and .9000+ other things The only benefit I've got out of using a seperate thread to load from the databse is i can see the screen right away (as oppose to it being a transparent box until it loads) but i cannot move it around or minimize it?is there any way to make it Movable while it loads?
View 1 Replies
Jun 11, 2009
I have mdi application, on main form which is mdi container and has a tree view. i open the child form on afterselect even of treeview. the issue i'm facing that i open the form but focus remain on tree view until i click on the the form. my question is how i can give focus to form rather it stays on treeview. i tried frm.focus also activatemdichild(frm) no sucess.
View 21 Replies
Sep 16, 2009
i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.
View 1 Replies
Mar 11, 2010
i have a main menu on my program which has the option of registering. I have enter name and password ..and a button Confirm
i want to be able to store the added username and pasword to the login form so that it will work...
what must i do? also where would this data be stored...
View 4 Replies
Mar 27, 2011
I need to detect shift + arrow key in blank form. But it's not working. I also tried overriding IsInputKey method but it only detects single key press (like arrow key) but when multiple key are pressed it simply doesn't work.
View 5 Replies
Oct 28, 2010
Here is the pertinent part of my code:
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code].....
View 3 Replies
Mar 12, 2009
I have a basic Windows form with one Crystal Reports form veiwer control on it. When ran on the development machine it displays the report fine.After build and publish the application is now installed on a user PC. I am getting an error that the Crystal Decisions. Windows. Form version 12.0.2000.0 can not be found. All the Crystal dll's are in the install directory but none of them are being installed in the install machines GAC.Am I setting my publish output up wrong, may references wrong, or is the local GAC files the problem. The message is so criptic, it doesnt really point me in the right direction.
View 1 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
Mar 26, 2008
I am using VB2008 Express and a MSSQL Server 2005 db by the way! I have a comprehensive SQL statement, which should fill my Grid:
DECLARE @Sum NUMERIC(9,2)
SELECT @Sum = SUM(I_LS.lmenge)
FROM dbo.lfs AS I_L
[CODE]...
Now here is my problem! I want to have a form with a datagridview that displays all of the values I am querying. This shouldn't be a problem I guess. However, I have no idea how I can integrate two textboxes that can be used to enter the selection criteria (WHERE I_L.lfsnr LIKE '%1253') AND (l.sped_journal = '11-08')[/SIZE]. I have googled and read many threads so far but didn't stumble upon anything that would suit my needs and answer my question. Maybe it's just too elementary!? By the way, it is very important that the input of textbox1 ((WHERE I_L.lfsnr LIKE '%1253')) is linked to 3 positions in my SQL query to define the search criteria!
The worst thing is that I don't want to have a bindingnav displayed! I do not need any delete, update or add functions just the select option, however!
View 1 Replies
Nov 17, 2011
I have read that VB .NET in earlier versions limited the FORM size to that of the development machine screen resolution.I am hoping that there is a way in the current VB 2010 to get around that.However in my attempts to make the form larger, it always resets itself to the screen height on my develoment machine.Is there a way to get around this and have the person be able to use a scroll bar to move down?The data I wish to show actually has two screens worth of information but the stuff in the scroll down section would be used on a limitied basis so scrolling will be useful rather than having to recreat the screen to show less data at one time.
View 2 Replies