MenuStrip - Stays Open And Only One Selected?

Feb 12, 2011

I have a Sub Menu which has a list of values and when the user selects one it sets a variable to the checked value. I was wondering if it is possible to group them into a control so only 1 can be checked at a time? And also so the menu structure doesn't close each time one of these options is selected.

I have attached a quick ScreenShot to show what i mean of the menu.

View 1 Replies


ADVERTISEMENT

Implement A Continuous Http Stream Which Uses The Same GET Request But The Connection Stays Open

Oct 26, 2010

My app currently sends GET httpwebrequests and parses the content after reading the response stream for each request and the repeats this process over and over. I need to implement a continuous http stream which uses the same GET request but the connection stays open, from what I understand. how would I change my existing code to do this?

The streaming HTTP implementation allows one to cosume data in real time over a single persistent HTTp request. It access a data feed that continues to send activities on that response. I need to read data from the response, process it(parse and store) and then continue reading from the response and continue this process until the connection is closed. Would this be like a asynchronous request instead?

CODE:

View 1 Replies

MenuStrip - How To Get Selected Sub Menu Content To MSG Box

May 15, 2012

I am new in VB Forms. I am using a MenuStrip. How do I get the selected sub menu content to a MSG box? This is working for the top menu, but what for sub menus?

Private Sub MenuStrip1_Clicked(ByVal sender As Object, ByVal e As ToolStripItemClickedEventArgs) Handles MenuStrip1.ItemClicked
'Get the text of the item that was clicked on.
Dim s As String = e.ClickedItem.Text
MsgBox(s)
End Sub

View 1 Replies

Detect If The Menustrip On The Taskbar Icon Is Open Or Not?

Sep 20, 2009

Is there a to know the status of the menustrip? I'd like to disable functions when the menu is open so that is is not closed by the functions running.

So I need to know how to detect if the menustrip on the taskbar icon is open or not.

View 1 Replies

Menu Without Menustrip Or Menustrip Not Right Across Screen?

Mar 9, 2012

I want a menu with just two dropdown lists, the menustrip puts a strip right across the form, is there any way to change the width of the strip? Changing in properties does not work. Is there a different type of menu I can use?

View 12 Replies

Open A New Form Through A MenuStrip Of Form Menu?

Nov 16, 2009

I want to add a Menu bar to my Main form and by clicking OpenButton on that Menu bar i want to open a new form window while my Main form remains open as well.

View 7 Replies

Open The Containing Folder And Have That File Selected?

Dec 21, 2010

If i have the path of a .txt file how can i open the containing folder and have that file selected.

View 4 Replies

Open Selected Data From Form1 To Form 2?

Aug 2, 2011

i have my database table in textbox i want to add a comment button when they click on that it should open a new form with another textbox from the same table.my problem is i cannot get it to load the selected rows comment colum.

My table is containing for example, username, password, name, surname and comment

on form1 i have username, password, name and surname with a button that should open form2 with comment with multilines.so if i have selected a username for example test and i click on comment i want to add data to the username test.

View 2 Replies

NotifyIcon Stays After App Closes

Mar 2, 2009

I have a NotifyIcon in my system tray.

When my app closes, the NotifyIcon is still there until I run my mouse over it.

How can I make it go away when the app closes?

View 8 Replies

Program Stays In Memory?

Aug 16, 2011

1. I run a program in VB, then i click X button to close the main form, the program exits.

2. Then I change the code slightly (for example I add MsgBox("abc") and try to run the program.

3. An error appers: "The operation could not be completed..." and then some text in my own language, I try to translate it into english: "...The process cant get access to file, because its been in use by another process"

View 8 Replies

VS 2008 How Come ProgressBar's Value Stays Same

Nov 21, 2010

[code] How come the ProgressBar's value stays the same?

View 1 Replies

Why Progress Bar Stays Empty

Dec 24, 2009

This is the code I have
Function1()
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ProgressBar1.Minimum = 0
ProgressBar1.Maximum = 6
ProgressBar1.Value = 0
[Code] .....
However the progress bar stays empty. The application runs fully so I know one of the functions is not stuck in an infinite loop.

View 5 Replies

Forms :: Listview: Open Item Path From Selected Row?

Jun 24, 2011

I have a simple Windows application, it list all Directories from a specified path in a liestview. My Listview have 2 column. First one show only icons and second one is the name of the Directory. Now i have a context menu "open dir". It should be open the Directory in/with explorer - Doesnt work.The Problem part, i think, is following event: ToolStripMenuItem1_Click

Here is my

Imports System
Imports System.IO
Public Class Form1

[code]....

View 1 Replies

Open A Text File Selected In One List Box Into Another Listbox?

Oct 10, 2010

with the following: Open a text file which is selected in a listBox and then load the selected files contents into another list box

View 7 Replies

Saved String Or Value In Your Database - Open This That It Is Selected In A Treeview?

May 1, 2012

If you have a saved string or value in your database. How can you open this that it is selected in a treeview? i mean when you click for example a commandbutton (Open my data)

View 1 Replies

Using A Combo Box To Open A Form Displaying The Record Selected?

Oct 11, 2011

work using Access 2010, however am having to use VBA as the Macros are not compatible.I have a form which for this I will call Form1, on this form I have a Combo Box called Combo202, this combo box lists a selection of Building Names, and a button called Command201.The process goes;User selects a Building Name from the drop down list in Combo202, and then clicks Command201. This then opens a form, Form2, which displays a record based on the field [Building Name] in Form2 matching that value in Combo202. I have been using this code;

View 1 Replies

Form Stays On Top When Click In The Background

Nov 9, 2009

Okay so I'm making an on screen keyboard, and was wondering - when I click something in the background, my form stays on top, how can this be accomplished? Can someone point me in the right direction?

View 5 Replies

If The Context Menu Is Open For A Selected Item It Should Return And Not Refresh?

Jul 13, 2010

If cmOptions.Visible Then
Return
End If

I have a refreshing process that updates a listview every ten seconds. If the context menu is open for a selected item it should return and not refresh?

View 1 Replies

Open A Windows Explorer Window With A Specific Folder Selected?

Jun 30, 2011

I have a winform application and this winform application has created few files. I want to implement "find target" function in my application to show those files. Those files located in a same folder. See the picture:Let's say that I have created few files in "C:Test" folder and this folder has this file: "C:TestFile1.txt". How to create "find target" functionality using VB.NET?

View 2 Replies

VS 2008 ImageList - Stop Image From Being Selected Again While The Program Is Open?

Jan 16, 2010

When i select an image randomly from an imagelist on my form and insert it into a picturebox, how can i stop that image from being selected again while the program is open ?

View 1 Replies

VS 2010 - How To Get Path Of Selected File In External Open Dialog Box

Apr 4, 2012

My question is as follows: The user has clicked File>Open in Notepad and also clicked on a file/folder. My Application in VB.NET needs to know the path and filename of the selected file/folder before the user selects the OK button of the Open Dialog box. How can I do this with VB.NET (VS2010).

View 5 Replies

Application Process Stays Loaded After Exit

May 27, 2011

We have an application that allows custom UI and interaction via SDK. A DLL is developed for this purpose using VB.Net and the SDK. An object variable refers to the application and there are some other object variables for components within the application.

[Code]...

View 2 Replies

Application That Stays On Top Of Counter Strike While I Am In Game

Dec 6, 2009

I play a lot of Counter Strike: Source.. and I was wondering if there was anyway that I could make an application that stays on top of Counter Strike while I am in game.

View 4 Replies

Box Type - Stays As A Single Line And When You Click On It

Jan 4, 2011

Is there any box type in vb.net that is multi lined, however stays as a single line and when you click on it , it will open up into a multi lined box (because I want 10 of them in a small area , in single lines will be perfect but needs to have lots of information stored in each one) and then when the user clicks out of the box / into the next one, it returns to its single lined state?

View 8 Replies

NotifyIcon Stays On Taskbar When App Closes In Program

Dec 6, 2009

NotifyIcon stays on taskbar when application closed, then when I move mouseover it, it disappears.[code]...

View 1 Replies

Open A Second Form By Double Clicking Selected Item That Are Shown In Listbox?

Jun 27, 2010

I'm trying to open a second form by double clicking selected item that are shown in listbox.

View 20 Replies

Forms :: Ensure That A Form Stays Completely On-screen?

Sep 10, 2010

how to ensure that a form stays on-screen completely and cannot be dragged outside the bounds of the window.

This is because the user needs to be able to completely see the form without any of it being cut off.

View 5 Replies

VS 2008 : Form Stays On System Process When Closed?

Sep 22, 2009

I got a strange form in my project that doesn't close when I close it, so every time the user will use it, it will stay on system processes. The form is not even shown on the taskbar when it is loaded. It is just a regular form - System.Windows.Forms.Form.

View 9 Replies

VS 2010 NotifyIcon Still Stays In The System Tray Unless Hover Over It

Oct 25, 2009

[Code]...

Im having a wee problem with my NotifyIcon, when i close my program my NotifyIcon still stays in the system tray unless i hover over it , anyone know how to close it completly when my program is closed

View 8 Replies

Getting Excel 2010 To Close. Stays Running In The Task Manger?

Jan 13, 2012

I cannot get Excel 2010 to close by using VB on my Windows XP computer at work. I have what I thought would be able to close it, but it doesn't. I do not get any errors, it its just that after multiple times of the code running, I have multiple instances of EXCEL.EXE running in the task manager, which causes problems. I am going to post the code below:

Option Strict Off
Imports Excel = Microsoft.Office.Interop.Excel
Public Class CompareDataExcel\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

View 3 Replies







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