Show A Form After Parent Load?

Mar 11, 2010

I am just a beginner in vb .net. I am now developing a window-based software.This is the problem:

1. After the user log-in, the system must show the parent form and automatically show the main transaction form base on the user role or user accessibility in my system manager. Is it possible to do this?

2. In my menulist, I need to recognize which menulist.item is selected. So, I need to bold the letter of the selected menulist.item or underline the word.

View 6 Replies


ADVERTISEMENT

Call A Form Load Parent Event From A Child Form?

Jun 3, 2011

I have two forms. Form A and Form B. Form A has a datagrid that is populated from a SQL Database Table query. When a button is pressed Form B is launched that allows you to add a record to the database table. I need for the datagrid to be refreshed and show the newly added record when I close form B and go back to the parent.

[Code]...

View 2 Replies

VS 2010 : Load A Child Form By Default In MDI Parent Form?

Jan 23, 2011

I want to load a child form which is a login form by default when the parent form is loaded.Right now when I click new file on the toolbar of the parent form, then only the login form is loaded but i want it be loaded by default without clicking anything.

View 10 Replies

Show Form In Mdi Parent?

Oct 4, 2010

Showing form inside the mdiparent?

View 2 Replies

Load Parent From Login Form?

Jun 9, 2011

I've build an application with Mdiparentform. I want to load login form on start up of the application and on succesful login load the mdiparent form and close the login form.

View 8 Replies

Set FrmFrontEnd In The Form Load Event To Be The Parent Form?

Aug 3, 2009

I want one form frmFrontEnd to be the base of my application, so when i press F5 it is the first to 'open/be seen' and then from here using previous i want other forms to open. How can i set frmFrontEnd in the form load event to be the parent form? If you're not living on the edge, you're taking up too much room

View 1 Replies

Show And Dialog Into A Parent Form

Feb 20, 2012

Actually i'm trying to show and dialog into a parent form, An reference example is:[code]Form that is not a top-level form cannot be displayed as a modal dialog box. Remove the form from any parent form before calling showDialog.

View 1 Replies

Get A MDI Child Form To Load At The Center Of The MDI Parent?

Dec 2, 2008

I am trying to get a MDI child form to load at the center of the MDI parent. I know it's a property on the form but it is not working. any suggestions?

View 3 Replies

VS 2008 - Show Child Form In MDI Parent Taskbar?

Mar 30, 2012

I have developed vb.net application and have one main form with isMdiContainer property true. It has one Menustrip control docking on top of the form and StatusStrip docking on bottom of the scrren. When User click on any menu item it opens new form or if already opened, show it. My application allow to open multiple child forms opened at same time and all forms StartPosition is set to CenterScreen. My problem is becuase all forms are in cetenr it ovelaps each other and user wouldn't know which form(menu option) is opend. I would like to see all opened forms in different tabs (like in windows taskbar) in bottom of MDI parent form.

View 2 Replies

Show Child Windows Form In The Status Bar Of The Parent Window?

Oct 13, 2010

In my project i have one parent window form with one menu bar and one status bar. that is what i want is:when i show the child form to see in the status ber an icon relative to the child window.How i can do that?And if that can't be how i can see an icon in a task bar?

View 1 Replies

How To Show All Controls After Form Load

Nov 13, 2010

I have an app that before it loads the form it uses Location to place the controls in the wright place.When it loads up I can see their original outline before they are displayed in their new location.So I have moved the the sub before the form load event but the result was the same.I also tried me.control.clear at the beginning of the formload.But I cant seam to find contrl property that allows to show all

Private Sub control_location()
CWgroupconfig()
Buildergroupconfig()

[code].....

View 5 Replies

MsgBox To Show At Form.Load?

Apr 21, 2009

I want a MsgBox to popup right after Form.Load. I can't seem to get my program to accomplish this with the program code I have tried so far.How do I tell my program to load a MsgBox right after it loads the Form??? Here is the code I have after several attempts:[code]....

View 8 Replies

Show A Form After Application Load?

May 21, 2010

I want to show a dialog box or form immediately after my application loads. If I place a .showdialog in the main form load event the dialog shows before the application shows.

I'm trying to give some user tips when they load my application.

View 2 Replies

Show Form After Load / Place Everything?

Dec 27, 2011

I have a little problem, nothing very serious, but something that anoys me and i can�t solve.

I have a VB.NET windows form project, with a main MDI form containing a menu.

I load all forms with:

Private Sub MostrarFormulario(ByRef formulario As Form)
Try
formulario.MdiParent = Me
formulario.BackgroundImage = Me.BackgroundImage
formulario.BackgroundImageLayout = Me.BackgroundImageLayout

[Code]...

When show the form, i can see all combos / grids / objects being placed and feeded. Its a fraction of second (in fast machines). All my objects placing and loading are made in the Activated event.(because some combos data may have been added/deleted and the app can have multiples form oppened at the same time).

Is there a method for loading everything first (not showing) and then display all at the same time?

View 8 Replies

VS 2008 : First Item Show On Form Load?

Jan 25, 2012

How do i get my first item to show in combo box when form has loaded?

View 6 Replies

Save And Show Next Number In Succession On Form Load?

Aug 26, 2011

I need to know how create a number that increases every time my main form is loaded. This would go in succession. So the first time after putting this code in it would show the number 1. The second time I open my main form it would show a number 2, and so on.

View 2 Replies

Show A Msgbox White Motherboard Id When Form 1 Load

Aug 14, 2010

i made a project in vb , i want to make serial protect for my project..i want to get the mother board id then make serial for it.i want to show a msgbox whit the motherboard id when the form 1 load then the user send the id to me and i gave him a serial..i find a thread to do this thing , but it is not VB code (i think it is c++) url....

View 7 Replies

DB/Reporting :: Adding New Record On Form Load - Show Correct Row ID

May 5, 2008

In an attempt to learn VB I'm trying to build a database project for a friend's business. This db will be used to track customer information, predominantly for targeted marketing purposes. So far, the development has been slow (I'm still trying to adapt from VBA to VB), but its all starting to make sense now. I'm using two different forms for adding new customers and reviewing the information of existing customers, mainly because the database will grow by about 2,500 customers per year and we wanted to be able to search the records without returning every record when the forms load. Most of this works so far, but I'm having trouble with two issues.

When I open the new customer entry form, I want the form to automatically begin entering data without clicking the "Add New" button. The second problem involves the row ID from the database. It keep showing up as "-1", "-2" etc. The row ID records properly in the table, so no big deal. I have read that this problem is a bug in VB and that its nothing to worry about. However, down the road I will need to access the correct row ID from this same form in order to print out a report for the customer (as needed).

For what its worth here is the code I have so far:
Code:
'Update current record when the form closes
Private Sub frmNewCustomer_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.TblCustomersBindingSource.EndEdit()
Me.TblCustomersTableAdapter.Update(Me.dsNewCustomer.tblCustomers)
[Code] .....

View 13 Replies

Working With Arrays - Make It Global And On Form Load I Wanna Show It's First Position And On A Button' S Click

Apr 8, 2012

Dim LabelArray(12) As Integer
LabelArray(0) = Label3.BackColor = Color.White
LabelArray(1) = Label4.BackColor = Color.White

[CODE]..................

i have made an array. first of all i want to make it global and on form load i wanna show it's first position and on a button' s click i want to increase it's position by one how can i do that

View 2 Replies

Show Subitems Of A Parent Item In A Datagridview?

Feb 20, 2010

I have 1 table which has columns which include "parent" which says who the parent is if there is a parent, and "name" which has the name of the item. so for example

[Code]...

or something to that affect. the reason being that the user can do the autocomplete by typing a letter or a few letters, it will go to the parent and then they can use the enter key to move down 6 or so down at a time( if possible) or arrow to move 1 at a time down.

Is this possible in DGV or should I go use something else? I have seen this used in a program before but I do not know how it was implemented.

View 8 Replies

VS 2010 How To Load Child Data When Query A Parent

May 30, 2010

i have a one two many relationship on a form that loads empty so that the user have to do a search in order to populate the data into the form. To acomplish this, i created a filter (query) in the dataset. The filter works fine for the parent data, but how can i load its corresponding child data?

This is the code generated automatically when i created the filter in the DataSet:

VBCode

Try Me.TblConfidencialesTableAdapter.Buscar_Confidencial(Me.ConfidencialesDataSet.tblConfidenciales, TablillaConfidencialToolStripTextBox.Text)
Catch ex As System.Exception

[Code]....

View 5 Replies

VS 2005 - Form Load - Retains The Previous Values During The Form Load

Jul 27, 2009

Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Dim con As OleDbConnection
Dim cmd As OleDbCommand


[CODE]...............

The insertion part of the form works great. But my problem is in the form load part......If i leave a field blank(Null),then perform Save operation,close the form after successful insertion and then reopen the form,then it retains the previous values during the form load......This is only in case where i leave a field blank in the previous data entry in the database.......But if i enter values in all fields then form load is working great.

View 2 Replies

VS 2005 : Load A Form And Allow It To Run It's Code In The Form Load But Keep It Not Visible?

Dec 14, 2009

How can I load a form and allow it to run it's code in the form load but keep it not visible. I want it to do what it needs to but but not display.

View 3 Replies

Microsoft Report Viewer To Show Parent/child Data Such As Invoices Headers Followed By Invoice Details?

Mar 25, 2012

After several hours of searching the internet I could not find any Report Viewer tutorials that show a project that contains a parent/child report. I'm using rdlc report files.I can create a single report but we want to create a report that shows shows invoice header information followed by the invoice details followed by the next invoice header and details and so on.

If a sample project is not available, do you know of an online tutorial that shows how to do it?I saw something that might help on gotreportviewer.com about subreports, but it's in C# and not VB.Net so I could not figure out how it works.

View 1 Replies

2003 Control On Child Form To Create Event On Parent Form?

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

Change Startup Position And Move A Docked Form With Parent Form?

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

VS 2010 Sub/Child Form Close When Click On Main/Parent Form?

Jun 5, 2012

i am having some trouble in my Windows form application. i have 2 forms1st Main / Parent Form2nd Sub / Child Form (Menu)

View 7 Replies

Write Text From A Parent Form To The Active Mdi Child Form VB 2010

Jan 28, 2012

It has to be a simple line of code but I do not know how to construct it. Using VB 2010 Express, I have a MDI parent form and many child forms. I want the parent form to determine what child form is active and load data into the RichTextBox1 on the child form. Each Child form has a RichTextBox1. The parent form gets its data by loading a file.

I am close to a solution but just can't get there. You will see in the code below, if I make a direct reference to a specific child form, it works great. What I want to do is to use the Active Form function to determine which form to write to. I have looked at the MS tutorial which gets me close.

Private
Sub OpenToolStripMenuItem_Click(ByVal sender
As System.Object,

[Code].....

View 6 Replies

Create New Instance Of A Form That Does Not Close Then The Parent Form Closes?

Oct 28, 2009

I have been making a webbrowser for a while now, everything works well, except i am unable to make the 'open in a new window' button work right. So far i have managed to get a new instance of my form to open with the right url, but i am unable to keep that new form open when the orginal parent form closes.

Code:

Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
e.Cancel = True
Dim Href As String

[code]....

View 2 Replies

DB/Reporting :: PopUP Form Refresh Combobox On Parent Form

May 31, 2008

I have a parent form that has a combobox. Whn the form loads I get the data from the db and bind to the combobox. that works fine and here is the code I use in form load to cause this to happen: [code] Now if there is not an Account Type, I have a button that will pull up a small form to allow the addition of an account type. The popup form adds the data back to the database just fine, but I am now trying to get the combobox to refresh its data. So I call a public Sub that is located in the parent form to from the popup form to accomplish this task and I have walked the code and the sub is called and appears to work correctly, but the new data never appears in the combobox. Here is my public sub that i call to try and refresh the combobox on the parent form. [code] But when I go back to the parent form, the combobox is not updated with the new account. How can i get the combobox to refresh from the database with the new data?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved