One Menu Work In Ten Forms

Jun 1, 2009

i want to put one font dialog and one color dialog in one content strip menu that work in every form i have.

View 1 Replies


ADVERTISEMENT

Open A Form From A Menu, Closing It, And Reopening It From The Menu Doesnt Work?

Jun 22, 2010

This is going to be hard to explain but oh well.I have a form with a menu. When I hit option one, it opens another form (form2) inside that same form (mdiparent). When I hit X on form2, then try to open it again from the original form with a menu thru the menu, It says it cant access a disposed object. Here is the code: Form1:

[Code]...

View 1 Replies

VS 2005 - Gotchas With Docked Forms - Forms - Displayed Using Menu Items To Display Information To User

Nov 10, 2011

We have an application that has a main form with a map on it. Right now the paradigm is to have forms that are displayed using menu items to display information to the user. Most of these forms are modal forms, but a couple are non-modal forms that interact with the map. For some of the forms, it really would make for a better user experience if we could dock them in the main form of the app and allow the user to see both the form and the map. For instance. We could have a list of map features in a docked window, and select one of the items on the list and have the map zoom to that feature. Or do the reverse: let the users select a map item and have a docked window that shows details of the feature. Sounds great, but I wonder about what sort of gotchas we may encounter. In particular, what if we have two windows docked at the same time? Could we get tangled up in our event code?

View 2 Replies

Cant Get The Save As Menu Option To Work Correctly?

Aug 5, 2010

I have written an MDI text editor, its almost complete, but I cant get the save as menu option to work correctly.

HTML
'This sub routine controls the save as menu option
Private Sub SaveAsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles[code].......

So whats happening is that it opens the dialog ok, saves the document to my chosen location correctly, but opens a new document and gives the new document my chosen file name and leaves my saved document with the file name New Document.But when I close all the open screens and then re-open my saved document its all as it should be.

View 1 Replies

Work Out Conversion And Loop Back To Menu Options?

Oct 24, 2010

I have this code below that I called a Conversion Wizard Because it converts temperature, weight and currency. It works so far but I am stuck. I don't know how to apply the correct loops to it. For example, Do While and Do Until. I want it to be able to work out a conversion then loop back to the Menu-options. So that you can do as many conversions as you like and end when option 4 is selected.

Option Explicit On
Module ConversionWizard
Sub Main()
Dim userOption As Integer
Dim farenHeight As Integer
[Code] .....

View 4 Replies

Menu Strip - Make Ones Like 'Open' 'Exit' 'Undo' And Redo' Work When Start Debugging?

Aug 6, 2009

I have created a Form, added a MenuStrip to it and inserted the standard Items. My question is that I know some of the options won't work like 'Save' and 'Save As' but how do you make ones like 'Open' 'Exit' 'Undo' and Redo' work when start debugging?

View 9 Replies

Forms :: Work With Multiple Forms In .net?

Dec 15, 2009

i've been working with multiple forms. here's the situation.. i have 2 forms form1 and form2 every time i show the form2 from the cmd Bttn in form1 then i close and reopen it again it always prompts me with disposal error.

View 3 Replies

How Can Add A Menu And Make It To Appear On All Forms

Dec 15, 2011

How can i add a menu and make it to appear on all forms within that project? I remember that 2 years ago i was able to do this with VB6 however with VB 2010 i am unable to do this currently.

Right now i added a Menu Strip on all my forms by copy-paste however i want to find a better solution so that when i add a new menu item all the menus on all forms update.

View 4 Replies

MDI & MDI Child Forms Menu's?

Sep 19, 2011

I have a MDI child form with its own menus. (TestForm)When I call the child form (Testform.show) from the parent form menu, the MDI Child form's menus are appended to the container form..Essentially, the container form steals the menu of the child form..

View 2 Replies

Open Different Forms Through Menu?

Nov 23, 2010

i have to open different forms thru menu. Whenever i am opening new from the current form should be minimized and new form should be visible and when closing the new form the old one should be viewed again. First level of menu to new form works fine but when i am using form to another form minimize works fine but i need to view in normal mode again fails to view. How can i do this?

Main.WindowState = FormWindowState.Normal [Which is not working]

i am using this code to view. To minimize i have used Me.WindowState = FormWindowState.Minimized control.

View 3 Replies

Add Context Menu To A Forms Caption?

Feb 26, 2012

I want to add a context menu to a form's caption. When I right click on it to show a menu.

View 6 Replies

Forms :: Disable Textbox Pop-up Menu?

Oct 3, 2009

is there anyway to disable the menu that contains : Cut, Copy, Paste, etc, on a textbox, when you right click it?

View 4 Replies

Forms :: How To Override Context Menu

Dec 27, 2009

How can I override the context menu that shows up when you right click on the title bar or the icon?

View 3 Replies

Menu Design To Load Forms

Jun 9, 2011

I' ve a small project with few forms. i want to design a menu a one form so that when user clicks on the menu item respective form loads in project.

View 1 Replies

VS 2010 Share A Menu Bar Between Two Forms?

Jun 17, 2010

I'm writing a small software similar to the calculator in Windows, the calculator in Windows has a menu bar; in the menu bar, you can find "scientific" and "standard" mode; once you select different mode, your form will be changed, but the two forms still share the same menu bar.

I want to create the same effect of this:

1. Two forms, only one is visible at any time

2. The menu bar on the top of the two forms should be shared between these forms

I just started learning VB for 2 weeks, I'm not sure my thinking can be achieved by VB, if not

View 4 Replies

Forms :: Same Menu Shortcuts In MDI Parent And Child

Apr 30, 2009

I want to use the same menu shortcut keys in a MDI child as in the parent...the problem is that the parent seems to receive the Event first and is calling his menu entry. The child (though it does have the focus) does never receive any event whatsoever...I can bypass this behaviour by adding a Textbox to the Menu, and the moment that one has the focus the menu shortcuts are working as expected (child gets it first, after that it's passed through to the parent).

View 1 Replies

Multiple Forms With MenuStrip Can The Same Menu Be Used Several Times?

Aug 15, 2011

I have a number of forms which have a common menu strip rather than copy the control onto each additional form is it possible to just call the menu from another form ?

View 3 Replies

Getting Forms To Work With Each Other?

Mar 15, 2010

I was referred to this forum section for VB2008 questions instead of VB6, so Ill assume this is the right place to ask this question. Yes I copy/pasted.I'm EXTREMELY new to VB2008 and I was basically making a program that is used for "password storage" that will be used only by me, I have made a simple login page that will not allow new usernames/passwords and a simple text box-listbox-add-delete page for submitting and displaying what I wish. What Im trying to do is make it so every time I open the listbox form, you are prompted with the login form. Im not sure of a proper term for this as I just downloaded VB2008 2 days ago.

View 3 Replies

Forms :: Dropdown Menu With Values For Displaying Different Tables

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

Forms :: Make A Menu Item To Execute 3 Tasks?

Dec 11, 2009

Can I make a menu item to execute 3 tasks?For instance when I select a file from a ListBox and I press ToolStripMenuItem1, the program will move the selected file to a directory, execute archive.bat file and the move the archived file to another directory?Hmmm... I tried but I can make only one operation - to move the file. Can someone post a helping code or something?

View 2 Replies

Return Two Menu Tabs Using System.Windows.Forms?

Mar 25, 2012

I am trying to return two menu tabs using System.Windows.Forms. I have tried using an array and tried using control.add but I cant seem to get this working. What am I doing wrong?

Public Function MonitorsInit() As System.Windows.Forms.TabPage Implements LabTech.Interfaces.ITabs.MonitorsInit
Dim TP As New Windows.Forms.TabPage("Ticket")
Dim TP1 As New Windows.Forms.TabPage("Ticket1")
TP.Controls.Add(TP1)
Return TP
End Function

[Code]...

View 5 Replies

.NET Windows Forms Custom Designer Doesn't Refresh The Menu

Oct 26, 2011

I have created a custom designer (PannelloSfondoDesigner) for my custom control, a background panel (PannelloSfondo).

<Designer(GetType(PannelloSfondo.PannelloSfondoDesigner))>
Public Class PannelloSfondo
Inherits UserControl

[code]....

It works, I click the little arrow, the context menu appears:I click the menu item, the event is fired, the control is docked:but the menu description is not updated or refreshed (it should show "Undock from parent container"). Then if I click outside the control to deselect it and then I click back on the arrow to show the menu, the right menu item is displayed:How do I refresh the menu items?

View 1 Replies

Add Icon To Context Menu Inside A Windows Forms Application?

Apr 20, 2012

This context menu is pops up where the user right clicks inside a dataGridView

When adding the items the VB code is

Dim m As New ContextMenu()
m.MenuItems.Add(New MenuItem("Disassociate *A* Device"))
m.MenuItems.Add(New MenuItem("Purge Device Assosciations"))

Is there no simple way to reference a resource to add an icon to said menuItems?

Pseudo
m.MenuItem(0).Icon.Source = ....
?

View 3 Replies

Associating A Context Menu With A Windows Forms NotifyIcon Component?

Dec 11, 2010

I've created an application that displays a NotifyIcon when an event happens.

Public ContextMenu1 As New ContextMenu
Public NotifyIcon1 As New NotifyIcon
Public Sub CreateIconMenuStructure()

[code]....

In the form load to "Initialise" the NotifyIcon it then works fine when made visibleinvisible by code in the OnRegChanged event.

View 2 Replies

Forms :: Create Tutorial For .net Form-Simulating Menu Clicks?

May 18, 2010

I am trying to create a tuturial within my software in vb.net. The code will take the current mouse position, move it over the relevant menu header (e.g. file) and click, move to relevant item (e.g. New) and click etc.

View 2 Replies

Forms :: Enable/Disable MDI Parent Menu From Child Form?

Jan 5, 2012

I'm writing an MDI app in vb.net vs2010. The MDI form has the default MDIMenustrip menu with several menu items. Each has some subitems. None of the child forms have a menustrip defined. I thought it would be easy to call a public subroutine in the MDI that would disable or enable the MDIMenustrip items. If I execute the routine from the MDI form, the menu items disable/enable just fine. THe problem I have is when I call the routine from a child form. How can I control the MDI menu from a child form?

View 3 Replies

IDE :: Disable The Context Menu For Webbrowser Control In Windows Forms Using C#?

Sep 9, 2005

disabling the context menu for webbrowser control in Windows forms using c#.

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

.NET Forms Authentication Doesn't Work

Mar 20, 2011

I have an issue with my .NET application and it can only be reproduced sometimes and only on client's location, which makes it extremely difficult to resolve. In the application the forms authentication is used. There is a login page to which every anonymous user is redirected. After user enters username and password, it redirects to DefaultURL or some predefined page. The problem is that sometimes when user enters correct username and password, it doesn't login, instead it just refreshes the login page without any error messages. After several tries of inputing username and password, user is able to login to the system.

See my login page Submit_Click code below:

Dim userName As String = tbUsername.Text
Dim password As String = tbPassword.Text
Dim returnUrl As String = Request("returnUrl")

[code]....

View 2 Replies

Forms :: Get One Of The Lists In .Net To Work Like The Ones In CDBurnerXP?

Feb 22, 2009

Is there a list or a way to get one of the lists in VB.Net to work like the ones in CDBurnerXP?I shows a small icon at the side, then has a title and a little description under that.Have designed a program around this style of list but now when i have came to .net to write it...

View 1 Replies







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