Make A Drop-down Box?
Sep 27, 2009How Can I make a drop-down box, like a combobox, display all fonts on your computer?
View 18 RepliesHow Can I make a drop-down box, like a combobox, display all fonts on your computer?
View 18 RepliesI'm creating a simulation programe. In one sheet I have a group of cells (AngleConf) that have a drop down list. I would like to make some operations when I change the value of one of these cells. It always works when I insert the new value manually. But it doesn't always works when I change it by selecting the value from the list. I supose that that happens because of some option that I change while I'm working but I can't find out witch one exactly.The code that I think that its implicated:
Sub Worksheet_Change(ByVal Target As Range)
If InRange(Target, Range("AngleConf")) Then
Call resistance 'Actualiser le r�sultat mecanique
[code].....
You will have to excuse me but I am a little bit new to vb. Anyways I was wondering if anyone knew a way to have a vb app accept dropped files on the main form. Basically what I have is a program that needs to accept dropped files (outlook attachments to be specific) and copy that file to a specific location on the C: drive. Then I need it to store the file name and path to a variable and set a text box on the main form equal to that variable
View 5 RepliesI am looking to after the user selects from a drop down to give read only access to the form( textboxes, buttons, etc).Upon the second selection the user would have read-write access and upon the third selection full access.Does anyoen have an example of how this might go ? I have the code in place which places the information in the drop down from the configuration table itself.
View 1 RepliesI have a menu strip, which i want the drop down items to show when i move my cursor over it.
View 3 Repliesok, I'm basically trying to make mulitple drop down lists on my form. When the page loads, I can get my main dropdown list, called makelist, to fill in with the items that I want from a txt file.
What I'm trying to do is whenever the selectedindex is changed in makelist, it has to load a different dropdown list, called modellist with items from a different txt file.
[Code]...
This is in regards to the toolstrip spiltbutton control.
When I click the arrow on the right, not only does the drop down menu show, but the code in the button's click event executes also. How do I make the drop down arrow separate from the button itself?
I bet you all know DotNetFrameWork 4 needed for VB 2010 applications to work...
Any idea how i make my own framework?
I want to be able to make my own buttons drop down boxes...
And after i make it how to i put it into a dll so i can reload it in another app and use it...
Is their a way to make drop down menus like they do in Firefox? Like when you click File, it drops down a menu giving you options.
View 4 RepliesSo I made my form transparent by changing the transparent key to dimgray, change background color to dimgray. I also changed the picture box's BG color to dimgray everything was fine except that the drop shadow on the picture I did was just a grey blob.Is there anyway to make the drop shadow look like its a drop shadow?
View 5 RepliesHow can i make a drag and drop teeth chart in vb2005? i really need help, please just tell me how to go about it? i just need a simple dental teeth chart.
View 1 RepliesHow to make the File menu drop down on form load ?
I want to make the File Menu to drop down when the form is opened.
I am using the DateTimePicker in VB 2008 express. I am making a program for a person who is visually impaired and needs to see BIG WIDE buttons. The drop down button is very slim and I need to know what to do to modify the size of the drop down button itself in the properties. I tried googling this and have run into dead ends.
View 4 Repliesi'm making some login function with some website but this website button is some different before what i know method. to login this website , first should have to some button click then drop down menu go down then can input id and password. how can i emulate click and make drop down this menu? if you go following website you can see right side 'Log in' button if click this button drop down menu go down [Code]
View 2 RepliesIs it possible to reorder the elements of a drop down list (combobox) via drag and drop?For example, when the list is dropped down, I want the user to be able to drag the items up or down to reorder them. I tried this (and some google searching) but I'm wondering if its just not possible:
Private Sub cmbClassLists_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cmbClassLists.MouseDown
If cmbClassLists.DroppedDown And Not cmbClassLists.SelectedIndex = -1 Then
[code].....
ComboBox drop up instead of drop down..i want to defualt for a particular drop down box to work this way how can i do it.
View 6 RepliesI am currently working on a drag and drop project and I was wondering if there is a way to drag picturebox1 and drop it in picturebox2; that will snap to a specific location in the picturebox2?
View 2 RepliesListView Drag&Drop allow to Drag&Drop between form??
Public Class frmModule
Private Sub ListView1_ItemDrag(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag[code]....
Can it be drap and drop item to other form control??How to write the event when mouse up at the other form control?
I am trying to figure out a way to include the listview's tag field when dragging one listview's subitems into another listview. I am hoping someone here has experience with this. My Listview drag code is below - the two listviews that I am dragging subitems into or from are LV1 and LV3. Also, this is being done in Visual Basic 2008 and the project is a windows application.
[Code]...
Does anyone know if it is possible to make a drop down list control (when clicked) list its contents above the item, rather than below? Effectively, I need a drop up list rather than a drop down list...
View 1 Repliesdrag and drop nodes within the same tree (not between trees) when users drag and drop nodes within the tree, give them the option to move the original node to a new location within the tree OR to just copy the original node in a new location (seems complex but I have a month to figure this out). change the system default blue highlight for selected nodes to another color change the system default cursors for invalid and valid drops (instead of the circle with slash indicating invalid target, i want a red minus) and (instead of the little plus sign with little box indicating a valid target, i want just a big green plus sign) add a red insert line to indicate where the node would be dropped within a tree also drag and drop the text of a node from the tree to a textbox add a "folder" image next to parent nodes and a "document" image next to children nodes
I have looked through the internet but I am having difficulty sorting through all the information available (I see a lot of information for Visual Basic 5 and 6, and those codes don't work for me in visual studio 2008). I can email anyone my code I have so far.
Public Class Form1
Private MouseIsDown As Boolean = False
Public Sub TreeView_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs)Handles TreeView1.ItemDrag
[Code]....
I want to be able to hold CTRL down to select multiple text entries and drag them all to certain text boxes. Or even one at a time, but once I try dragging another word into the box it replace the first one. Is there any way to just have it add to the text box rather than replace it?
And if possible, place a "-" between each entry?
This is the pop-up form with the listbox that contains the words to drag:
Private Sub ListBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseDown
ListBox1.DoDragDrop(ListBox1.SelectedItem, DragDropEffects.Copy)
[Code]....
I have a small requirement and that is: There are two combo boxes on a form and for populating the employee names and roles. I am populating the combo boxes as follows: I have created a class called "DbConnect" and in that there are 02 functions as:
Public Function getEmployees() As DataTable
Dim employeeDS As New DataSet
Dim employeeDA As New SqlDataAdapter("prc_emp_list", conn)
employeeDA.Fill(employeeDS, "employees")
[code].....
The data is getting populated into the combo boxes correctly and my requirement is that when I select and employee from the first combo, his corresponding role should get selected in the second combo.
I am wondering how to do simple drag and drop in wpf? All examples I found over the new were in C#
View 8 RepliesHow would i set a panel to allow drag-n-drop from explorer to my program, only with dll and exe files though.
View 4 RepliesProtected Sub registerStudButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles registerStudButton.Click
[Code]...
If you look at the source code for the html you can see the combobox has an id. However when i run a loop through all hte elements on the page in vb.net it comes up as a blank instead of the id thats clearly defined. I'm thinking it has something to do with the javascript giving it a dynamic id. Anyway. I need to set this box after the page has loaded in a webbrowser object.
<input type="hidden" name="wlw-select_key:{actionForm.dobMonth}OldValue" value="true">"
<select name="wlw-select_key:{actionForm.dobMonth}" id="dobMonth" class="dobMonth"><option" value="">Month</option>
<option value="01">January</option>
[code]....
that didn't work either?
I have a form with several listviews. 1 master with two columns and 10 other all with two columns. I have been able to do a drop from 1 to the others and among the others. I want to move the second column around also. I can't read the subite.
[Code]...
I am writing a small program that has two list box's which are populated from my sql database. I want to drag an item from LB1 to column1 in a datagridview and drag an item from LB2 to column2 in the same datagridview.
I am getting close, but I am having trouble getting the data to drop. I did some testing and I can drop a string, but I am not able to get the string data from my listbox. I just get a datarowview. I see the string inside the "itemarray", but cannot get to it.
Here is my dodragdrop:
LB_OriginalPallets.DoDragDrop(LB_OriginalPallets.SelectedItems(indexOfOldPalletToDrag), DragDropEffects.Copy)
I am able to successfully get a value from a datagridview using the following
MsgBox(Files.Item(4, i).Value)
When the cell has a drop down, I am not able to get the value, it just comes back blank.How can I get the value from a drop down box?