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.
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?
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
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?
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.
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.
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"
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.
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
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)
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;
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?
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?
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?
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 ?
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).
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.
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.
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?
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.
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
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\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\