Create Menu ( In Taskbar) - This Gives Only The Option "ContextMenuStrip"?

Sep 10, 2010

how i can create menu ( in Taskbar) in my Program? this give me only the Option "ContextMenuStrip"

View 1 Replies


ADVERTISEMENT

How To Handle Input - Console Application - Click One Option On Windows Context Menu And Another Function When You Click Another Option

Jul 28, 2009

I want my console application to be able to do one function I have when you click one option on the windows context menu, and another function when you click another option.

View 3 Replies

Writing The Save Option - Code Up The Save Menu Option So That It Updates The Current Document?

Jun 10, 2010

I am writing a text editor program and I have written the new, open, save as, exit menu items but I am struggling with writing the save option.Now I have created the menu itself (well vb did, I just used insert standard items) but how do I code up the save menu option so that it updates the current document or if the documnt has not yet been saved bring up the save file dialog.Here is the code I have so far

Public Class Main
Private Sub NewToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripButton.Click, NewToolStripMenuItem.Click[code]....

I know I have some finishing touches such as messages and error handling and stuff but at the moment I want to get all the basics working,I think the save menu option is all I am struggling with at the moment.

View 1 Replies

Change ContextMenuStrip Item Depending On What Object The Menu Is Called Over

Feb 24, 2011

I have a ContextMenuStrip that is attached to a DataGridView, how can I change the text of an item in the ContextMenuStrip depending on the value of the cell in which the strip is activated over?

View 1 Replies

VS 2008 ContextMenuStrip - Give Labels A Context Menu With Message Box

Jan 1, 2010

I'm using VB.NET 2008. I have a form with about 10 or so labels on it, and that could increase the more I develop my assignment. I would like to give each of these labels a context menu, which says "Whats this?" and provide a message box to the user with the appropriate help text. Now what I've done so far is created a contextmenustrip on my forum, and linked all the labels to that single contextmenustrip. I have also added a menu item to that strip called WhatsThisToolStrip MenuItem, but I am at a loss, on where to go next, and find out on what label the contextmenu was activated on?

So for example if a user right clicks the lblStatus label and selects "Whats this?" item a different message box will appear than if the user right clicked the lblSid label.

View 5 Replies

VB 2010 - Disabling Taskbar, Start Menu And Alt+F4

Oct 3, 2011

I'm making a security program that locks the users screen. I have already figured out how to disable task manager but now I need to disable the task bar from showing and the start menu. Also, trying to do an event on alt+F4 doesn't seem to stop the program from exiting. Any other solutions? This program is intended for security reasons and I am not using it for any viruses.

View 6 Replies

VS 2008 MENU Bar - Don't Have The "Step Into Option" From My DEBUG Menu

Aug 7, 2009

Two(2) Things. I don't have the "Clickonce Option" when I select BUILD for the menu bar. I also don't have the "Step Into Option" from my DEBUG menu. Do I have a problem? Or do I need to turn something on?

View 4 Replies

2008 : Make Taskbar's Group Menu Item To Be Disabled?

Feb 23, 2010

(VB.NET 2008 )How can I make taskbar's group menu item to be disabled?For some reson ,I have to make taskbar's group menu item to be disabled.(ex. close group item)

View 6 Replies

How To Stop Tools Strip Menu Items From Appearing In Taskbar

Mar 6, 2012

I have a program which runs mainly though a NotifyIcon in the bottum right of my windows screen (XP). Whenever I open the ContextMenuStrip that appears when the icon is right clicked, a box also appears in the task bar. I also have nested menus inside the menu (mouse over one item leads to another menu), and each additional menu also creates a taskbar box upon appearing. So once I am at the third or fourth nested menu, there would be 3 or 4 windows appearing in the taskbar. After the menu disapears, so do the windows in the taskbar.How can I stop the taskbar from displaying boxes to represent these menus? I have done nothing in my code as far as I know to create this type of behavior. I have searched for similar problems but have found nothing similar. There is no "showintaskbar" property for these items as far as I can see, and no other property that I can find which would affect this. I have investigated the owner of the contextmenustrip since I read the owner may effect these type of behaviors, but that doesnt seem to be helpful as there isn't an owner property of the contextmenustrip.

View 2 Replies

ContextMenuStrip Color Properties - Set The Background Color Of A Selected Menu Item?

Oct 15, 2009

Right Click drop down menu using ContextMenuStrip. The background color of an unselected menu item is set with "BackColor".The color of the text of a selected menu item is set with "ForeColor".How to set the background color of a selected menu item? Default appears as a dark grey and I would like to change it.

View 2 Replies

VS 2008 Set Up App That Has Menu And Have Each Option Run On Different Thread

Mar 27, 2010

I am trying to set up an app that has a menu and have each option run on a different thread. When I set up 2 thread to run I get the following error: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThread Attribute marked on it. This exception is only raised if a debugger is attached to the process.From what I have researched, it says to make sure the openfile dialog function should be used with the main thread only. Since I have <STAThread()> added above the main I'm not sure how else to handle this. The main thread needs to be listening for the menu options and if I change it around it runs that option and the other threads hang. [code]

View 4 Replies

When Left Clicking Notify Icon On System Tray For Context Menu, Blank Form Shows In Taskbar?

Jul 3, 2010

Simply saying I've added an Notify Icon to my project and then added context menu showing up when the left mouse button is pressed. The problem is that with the context menu some blank form is showing in the taskbar. There is no such form within the project.Does anyone know why it may be happening or how to get rid of the effect? I might add that I have other context menu attached for mouse right click button and it works fine, no blank forms and such showing on the taskbar it's just the left mouse button that works that way.Here is the code that I am using to show the menu:(the visible state to false is necessary for the other menus not to pop up with the one i want... unless anyone knows better method)

Private Sub NotifyIcon_Click(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon.Click
If e.Button = MouseButtons.Right Then

[code].....

View 5 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

IDE :: Set As StartUp Project Menu Option Does Not Exist

Apr 2, 2009

I am learning Visual Basic Express 2008. When I follow step #5 below, the option Set as StartUp Project does not exist. How I can accomplish this. To create a test project for your class. Open the Persons project that you created in the previous lesson. If you did not save it, you will first have to go back to the previous lesson, Adding Methods to a Class, and complete the procedures.

On the File menu, point to Add, and then click New Project.
On the Templates pane in the New Project dialog box, click Windows Forms Application.
In the Name box, type PersonsTest and then click OK.
A new Windows Forms project is added to Solution Explorer, and a new form appears.

In Solution Explorer, select the PersonsTest project, and then on the Project menu, click Set as StartUp Project. In the Solution Explorer, select the PersonsTest project, and then on the Project menu, click Add Reference. The Add Reference dialog box appears.

Click the Projects tab, and then select Persons and click OK.
Double-click the form to open the Code Editor, and then enter the following declaration just under the line Public Class Form1.

View 7 Replies

Save Menu Option Sytax Error?

Aug 1, 2010

I have written a sub routine for a Save>Menu option for a MDI Text Editor, see my code below

Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
Dim f As Form2

[Code]....

Now if I take out the ( I get yet another error which states

"Argument not specified for perameter "File" of public sub WriteAllText(File as string, text as string, append as boolean)

All I want is when the user clicks the save menu item the document either saves the changes made to the current document or the save as routine is involked.

View 4 Replies

C# - Create Vista-like Style ContextMenuStrip?

Dec 7, 2011

I've never worked with it , but I saw some of my friends used it in their .NET apps.

View 1 Replies

Sub Routine For A Save>Menu Option For A MDI Text Editor?

Mar 11, 2010

i have written a sub routine for a Save>Menu option for a MDI Text Editor, Please see my code below

Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
Dim f As Form2
If f.Text = "Text Editor V.2 - New Document" Then

[Code]...

View 1 Replies

VS 2008 - Add An Option To Windows Explorer Right Click Menu?

May 1, 2010

I did some research and i found that i will need to edit the registry.So if i make a folder called "Get Path" in the ContextMenuHandlers folder.When i click on the file in windows explorer or desktop etc i will have the option called "Get Path".Now for the value key what do i put inside?What i want is when the user right - clicks on the file my program starts up and displays the path of that file on a msgbox or listbox. I was thinking of letting the Windows Installer (.msi) doing this for me.

View 37 Replies

Dynamic Sql Menu - Create A Menu Based On Items In My MS SQL Database

Aug 23, 2011

I am wanting to create a menu based on items in my MS SQL database i have 3 tables

FormTbl

FormID - Int Eg (1)

FormName - nvarchar(50) Eg (Form1)

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

I can get the form names to be populated in to the menu and can open it my question is how do i set where the menu items will be placed. Eg File with FormHierarch 0 will be the very first one. Exit with FormHierarch 0.1 will be the very first one under File

Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim menu As New MenuStrip()
Dim dst As DataTable = User.MenuItems(Me.ToolStripStatusLabel1.Text)

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

View 2 Replies

Paint Event - Add A Button To A Form Each Time The User Clicks A Menu Option

Apr 17, 2009

[Code]....

I add a button to a form each time the user clicks a menu option as:

[Code]....

This draws a small blue line at the bottom of the button to show it is highlighted. Just like the mouseoverbackcolor property on a button except this will draw the line. It works fine until you slide the mouse very fast between the buttons. It is as if the mouseleave event doesnt always fire.

View 2 Replies

VS 2008 Windows 7 Create Taskbar Controls

May 1, 2010

I was wondering how to recreate those snazy controls you get when you hover over either the iTunes or windows media player icon on the windows taskbar (the play skip back and skip forward buttons)

View 8 Replies

Switch Form Between Full Screen No Taskbar And Sizable With Taskbar?

Mar 29, 2011

I have a form in an application I'm working on that normally displays full screen without a taskbar but provide the option to switch to a minimizable window with a taskbar. When I switch from full screen without taskbar to minimizable window with taskbar everything is ok. When I try to switch back to full screen the border disappears but the taskbar is still there and the form is not aligned properly.The text at the top is cut off somewhat and there's a small margin at the right edge that shouldn't be there.I put this code in a keydown event for the form.

If Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None Then
Me.ControlBox = True
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable[code]....

How do I get the taskbar to disappear and the form to display properly when I return to the full screen mode?

View 2 Replies

"exit" Option In Menu Strip Remind The User To Save Their Settings

Jun 24, 2010

I'm just trying to have my "exit" option in my menu strip remind the user to save their settings...If they haven't, the click "no" and save their stuff, and then exit. I can't get the form to close if I hit "yes."

[Code]...

View 4 Replies

Create A Small Program That Runs In Taskbar To Monitor Browser Urls For Particular Words.

Dec 5, 2009

I need to create a small program that runs in the taskbar to monitor browser urls for particular words.We are using it at work to catch people going to certain banned websites in the work place.Right now it works if i hand code each banned site into the code directly and run with a timer:[code]This works perfectly. Problem now is the Admins want direct access to add/remove different sites to the list.There is no way I am giving them access directly to my code (a bad day comes to mind).So I am attaching a small database with a small table to the server and allowing them to add URLS there. I am stuck in how to use this data though.I have tried pulling up the database column into a listbox but can not configure the code to check each line in listbox to compare to each browser window.

I also tried listed the items in a one column datagrid and try to loop through each row to compare each window.I need each browser window to be compared to a list of items and trigger events if a match is found.If your wondering why I am building this, our IS security people are all or nothing. Either no Net or Full Access.Also our people are a bit to smart to be tracked through history or simple blocking methods.

View 2 Replies

Cannot Find "build" Option In VB 2010 Menu

May 6, 2010

In VB 2008 Express, in the top menu, there is "Build" (Between Project and Debug), but it's not there in VB 2010 Express. I tried to find an option for it in Tools, but I can't find it. I can use the Build menu in VB2008 to build an .exe that shows up in the "Release" folder. What can I do to make an .exe as a release, so that I can implement it? If I was to use the .exe in the "Debug" folder, I can only run it in Debug mode.

In VB2010, I can right-click on the area near the toolbar and choose "build", which makes 2 buttons appear. I can click on the Build" button, but it does not create a new .exe in the "Release". Sorry if the solution is really simple, but I am a newbie, and I've only recently converted to VB 2010 Express. I can't believe how difficult this problem is!

View 9 Replies

Create Exe File With Option(parameters) Like Dir /p?

Jun 3, 2010

I want the program exe file should be used as a dos command with options. ex: dir /p

same way myapp.exe /auto. Iam using visual studio 2008,

View 3 Replies

Installer And Still Have An Option To Create A Shortcut?

Feb 2, 2012

I just published a new sample on the MSDN Code Gallery. This may be useful for the community here if you would like to deploy your application without an installer and still have an option to create a shortcut.

This Desktop Shortcut sample allows programmers to give consumers a way to easily create a shortcut for the application. Most installers automatically come with this feature, but some prefer to keep installers lightweight and provide the shortcut manually.[URL]..

View 2 Replies

Create An Uninstall Option In The Setup Package?

Jun 5, 2009

Is it possible to create an uninstall option in the setup package?

View 1 Replies

Enable Create Desktop Shortcut Option?

Sep 18, 2009

I have a client app written in VB (Visual Studio 2008) + VS 2008 SP1. I can see the option "Create desktop shortcut" under --- Publish > Option > Manifest but it is disabled.What do I need to do to enable it so I can have it checked before publishing it?

View 3 Replies

Option To Create Shortcuts - Setup Project?

Mar 16, 2010

I know how to create shortcuts on desktop and program files but i want to make an option with checkboxes...so that you can select if you want those two shortcuts or if you don't them.I've tried this with checkboxes (in User Interface), i've set checkboxes properties and changed "User's desktop" and "User's Start Menu" conditions (in File System). "CHECKBOXA1" for desktop shortcut, "CHECKBOXA2" for start menu shortcut...but it doesn't work... both icons are visible every time.

View 2 Replies







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