VS 2008 - Link Main Window Form With Menu Strip To Set Parameter

Apr 15, 2010

I an trying to create a GUI and I have added a menu strip, under the tools section of the menu strip, I have added a settings option. I want to click settings and have it open another windows form linked to the main windows form with the menustrip in order to set certain parameters. How do I link these two boxes using the settings menu strip?

View 1 Replies


ADVERTISEMENT

Make A Menu Item On A Menu Strip Link To Another Windows Form?

Jul 25, 2009

How do I make a menu item on a menu strip link to another windows form (like a menu item that links to an about page already created in the project). I know that every coder knows how to do this, but i've read most of the instructions in the world for Visual Basic coding, but can't find ANYTHING I know coding fairly well, so I can modify it, but I can't create it my self.

View 4 Replies

MDI Main Form Having Menu Strip And One Maximized Mdi Child Form?

Dec 14, 2009

The problem is that icon on the Child Form appear in front of Menu strip control on MDI form when child form is maximised.

View 2 Replies

Context Menu Strip Open Link

Oct 2, 2010

How to open a link with the right mouse button in the webbrowser
We use the ContextMenu ?

View 1 Replies

[2008] Menu Strip - When A User Clicks On "Print" In The Menu Strip On The Keyboard Should Automatically Press "Ctrl+P"

Oct 25, 2008

I am totally new to VB and I'd like to know, for example, when a user clicks on "Print" in the menu strip on the keyboard should automatically press "Ctrl+P", because the original print dialog, and the WebBorwser print dialog is toootaly different.

View 11 Replies

Menu Strip - Disable The Subitems In The Menu Strip

Jan 1, 2011

My program goes like this, i have a log in form where in the admin and guest can access, then the form will navigate to main menu form, i have there menu strip, pls help. how can i disable the subitems in the menu strip if the user is 'guest' for security purposes..

View 1 Replies

VS 2008 : Making 'main Window' Form Acting As A Container For The Other Forms?

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

Adding Menu Strip With Items To Form

Jun 18, 2012

1: I have to create an application that will dynamically add a menu strip with menu items to a form (i.e., NOT dragged and dropped onto the form) in Visual Basic. The menu strip should be created in the Form_Load event handler. I have to use a TextBox for user input. If the user enters information into the TextBox and clicks on the Add Button, the text should be added to a ComboBox control.

A Menu should then be created that must be added to the menu strip dynamically. There should be a second TextBox that will be used to add a new menu item to the menu that is currently selected in the ComboBox. When a menu item is selected, it must simply display a MessageBox with the items name (For example, adding a menu item called View would display a MessageBox with the message "View").

2: I have to create a quiz machine program in in Visual Basic with the following:
A menu strip that must be created programmatically (ie NOT dragged and dropped onto the form). There should be an exit option added to the menu strip that must exit the application.
A structure must be created to encapsulate all the questions and suggested answers. The structure must contain:
Question String
Answers Collection
Correct Answer String

When the form loads, 5 questions must be created in code using these structures. These 5 structures will then serve as the quiz. The user must be shown the first question, and have the option of browsing forwards and backwards through the quiz. The program should store saved answers to select the radio button when users cycle through. This can be done by any means possible, for example an ArrayList or SortedList.

I have to ensure that the suggested answers are randomized the first time the form loads only. Once the user has selected an answer for every question, the Submit button should be enabled. When the user clicks this button, the program must then evaluate the quiz and compare the users selected answers against the correct answer. A valid message must then be displayed via a MessageBox indicating the user's score.

View 4 Replies

Cannot Find Context Menu Strip In Form?

Jun 5, 2012

I'am trying to find my context menu strip in my form but my code doesnt seem to displayed my desired output...here is my code:

[Code]...

View 1 Replies

Form With Menu Strip - Type Not Defined

Feb 28, 2009

If I have setup a simple form named Fmain, in this form I have created a menu strip, this menustrip has a item showing a new for called Frfxcom. In this Frfxcom form I placed a textbox and used its databinding property for connecting to a local database pointing to a certain column in the database named " ip". The database wizard started and inserted some code, at that moment the errors "type not defined" showed up. Here is the automatic generated code:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Frfxcom
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
[Code] .....

View 1 Replies

Context Menu Strip - Form Kept Showing Up Repeatedly

Dec 9, 2010

Background Story: My program contains a form and 3 buttons (Add New, Delete, Edit...etc), and it works perfectly. Recently, I decided to add menuStrip, since it helps end-user to work faster. So, I put the menu strip coding.

However.....Sometimes, it works normally. But sometimes it works very strange.

Strange 1. When I chose the "Add New" item in the menu, the Add New Form will be showing up, and then I clicked on the Cancel button in the Add New Form. The Form kept showing up repeatedly. But sometimes, it works normally. (Note: Add New Form's Cancel button contains one line simply coding, it's "me.close")

Strange 2. When I chose "Delete" item in the menu, the MsgBox showing up (since I coded it and it's a warning message to end-users), but the MenuStrip KEPT showing up, so the MenuStrip overlapping the MsgBox. (I expected the MenuStrip disappear in this situation)

Is some codings I have done incorrectly?

Here below is the coding:

CODE:

View 17 Replies

Reusing A Menu Strip On Another Form Inside Project?

Mar 26, 2010

created a menustrip (MenuStrip1) by dragging the tool onto my form (form1.vb). And designed the headings/items etcI have now created another form (form2.vb) within the same project.I would like to use MenuStrip1 that i designed for form1.vb in my new form2.vb.

View 6 Replies

Child Window Open Inside Of The Main Window Form?

Oct 12, 2010

I have create a project with one main form window and also i have to use a number of other forms as well. now i want to open these other forms inside the main window and not outside. I'm using Visual Studio .NET 2010 as developing environment.

View 1 Replies

VS 2008 Menu Strip Look

Apr 30, 2010

I'v noticed in a few applications that the menu strip is bevelled looking like: url... i can't seem to figure out how to do it in the menu strip options is it something i'm missing?

View 2 Replies

Menu Strip Appears On The Parent Form But Not On The Child Forms?

Feb 13, 2009

I have created a parent form and 2 child forms. Each of the forms have menustrips. When i run the application the menu strip appears on the parent form but not on the child forms. I have the menu strip set to visable.

View 4 Replies

2008 Context Menu Strip

Feb 26, 2010

I have an INI file that contains several of these following entries.The Section names are all labled ASSET_CONTROLS_#.[code]The "Name" field should be added to the ContextMenuStrip control as a ToolStripMenuItem.If there is a value in "SubMenuNames" in the INI file, the ToolStripMenuItem created from the "Name" field, should have a DropDownItem created under it. I have separated multiple SubMenuNames with a SemiColon, so a loop would be used to create the separate menu items.Command and Parameters are to be used with the Process.Start function when the Menu Item is clicked. What is the best way to code this? I have been trying to do the event handling for the menu items for hours now and can't get it right. I basically want to call a procedure and pass the "Command & Parameter" values to it to use the Process.Start function.[code]

View 11 Replies

VS 2008 Custom Menu Strip (Is It Possible? O.o)?

Jun 27, 2009

I've had TuneUp Utilities for a while now and I noticed this:Can I do that? Add a reference to my program so that when I click *My App* it'll open my program

View 4 Replies

Add A Menu In A Main Form From A Dll?

Jun 11, 2011

I have a main form that reference to a dll. Inside the dll is also a form that will add additional menu in the main form that calls it. How can I do that?

View 1 Replies

Menu Strip Has Disappeared But The Menu Items Are Still Showing In Properties List?

Oct 6, 2011

I have combed these forums and the 'net and can't find an answer to my specific problem. My menu strip disappeared (after deleting a small secondary form within my project). I therefore created a new strip and while recreating the menu items realized that the original menu items are still present, showing in my properties list. I have checked my design file as well and the original menu strip is definitely gone but the original menu items are there. I don't have many items so I would have no problem just deleting the original ones but I can't see them to delete them! I have checked and they are all set to visible. I have also moved everything on my form to see if it is behind anything else.

View 4 Replies

Main Menu Doubles In Height When Re-doc A Form

Apr 18, 2012

I have a main form that is set to be an MDI Container (IsMDIContainer - True). I have a number of child forms to that parent. When I first display a child (Maximized and .Dock= DockStyle.Fill) in the MDI Window, all is fine, but if I click the maximize button to bring the child down into the MDI window, then click the maximize button again to dock it again, the size of my menu in the main form doubles. I have that main menu setting "Allow Merge = False."

View 3 Replies

Menu Entries - Pick 3 And Super 7 In Main Form

Jan 23, 2009

I am new to VB, I am currently trying to make a basic Lottery application for me and a few friends. I have a couple of questions regarding that. Basically the reqs are:

1) we should be able to input for 2 lotteries (super 7 and pick 3) the amount of money spend individually. IN a separate menu Should be able to input the winning numbers for past draws, in a notepad or access.
2) Should be able to see the most picked 3 numbers in the previous draws for both the lotteries.

Question. Say I have menu entries: Lotteries- Pick 3 and Super 7. This is my main form. If I go pick 3, enter last draw numbers should it open up a new form or can I just repaint and work in the same form?

View 1 Replies

Set Window TopMost Of Main Form?

Feb 18, 2010

What I need to do is Set my new form to be the top most form of only my application while still having click access to the main form. Right now I have tried the property Topmost = True but the thing about that I really do not like is it puts the form above every single windows form. I only want the form to be the topmost of my application. The showdialog also will not work because I no longer have access to my main form with click events.

View 4 Replies

VS 2008 - Make A Class Link Into Main Code

Feb 7, 2012

I'm just wondering, how do i make a class link into my main code, it is in the same project so no need to reference it

Ive set up the the class and typed

code:

But they aren't linking/ working.

View 11 Replies

Use Main Form Like MDI Parent Form In Window Application?

Sep 10, 2010

how can I use main form like MDI parent form in window application?

View 1 Replies

Window Appears Under All The Controls On Main Form?

Nov 26, 2009

So I know how to get a form inside a form.. I've got

Dim ch As New Settings
ch.TopLevel = False
ch.Visible = True
Me.Controls.Add(ch)

in my form_load.. The trouble is the window appears under all the controls on my main form.

1. How can I make it appear above the controls?

2. How can I make the form center in my main form?

View 1 Replies

Close Login And Open Main Window Form?

Feb 15, 2012

I am having a difficulty in this login form that I have made. The same as the premade template login in VB 2008 which I am using right now.Here's what happens when I run the program Log in form open > Log in successful > Main window appears *The login form still does not disappear.

I tried hiding it via me.hide() Log in form open > log in successful > Main window appears > log in form disappear.*Now the problem is that I cant close the whole application because the login form is still there only hidden. Again I tried putting in the "EXIT" button the code me.close() login.close()Log in form open > log in successful > Main window appears > log in form disappears > Exit application *Now everything seems to be ok now and then I found another problem.Instead of clicking the exit button I tried clicking the X button on the main window. There I found out that it only closes the main window. Therefore not closing the whole application because the login form is still hidden.

View 2 Replies

Office Automation :: Put The Excel Window On Top Above The Main Form?

Aug 17, 2011

i made an application in VB2010 where the application should be always on top above one specific window. Anyway i set the property of the main form to "topmost = true". The application is also writing some data to excel which is not a problem but the excel workbook is behind the main form which is on top. Is there any way to put the excel window on top above the main form?

View 1 Replies

Context Menu Affects Main Menu Drop Down Location

Jul 13, 2010

I open a context menu by right clicking it.

It stays open when the cursor leaves it.

I click a main menu item.

The drop down opens at the top left of the screen.

Not under the main menu item I clicked.

I want to search the Internet but can't guess what key words to use.

View 2 Replies

Forms :: Let The Users To Select Their Desired Wallpapers In The Window Main Form?

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

DB/Reporting - Menu Strip - Fetch Items From Database And Load In To Menu Items

Nov 28, 2008

I have a menu strip. In the menu strip I have something for some saved urls in the database, I called it Bookmarks. So I'm trying to fetch the items from the database and have it load in to the menu items.. but it keeps adding items and I only want them added once.
[Code]

View 5 Replies







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