Get A List Of Users On My Computer And Assign Them To A Combobox?
Nov 1, 2009How can I get a list of users on my computer and assign them to a combobox?
View 4 RepliesHow can I get a list of users on my computer and assign them to a combobox?
View 4 RepliesI am trying to get a list of users on my computer Example of what I want;
UserNames:all users
Weather they are active or not IE active:yes Total users: Example 4 I am using a ListView to display the information just not sure of the coding?
I have an asp.net web app that uses forms-based authentication, a SqlMembershipProvider (using an encrypted password format), and a SqlRoleProvider. I need to know if it's possible to administer the users (create new users, assign them to roles, etc.) from a windows application - the powers that be don't want any administrative functionality in the web app itself.Here is the membership provider definition from web.config:
<membership defaultProvider="MyProvider">
<providers>
<add name="MyProvider"
[code].....
I am testin my application on XP and have 2 issues: Issue 1) I have a combobox that has filter items in it:
[Code]...
I have someone who downloaded my program using click-once. My program allows user to read a .txt file and then manipulate data The user selects the file to open by goin gto File>Open on menu strip
I have a user who gets an error message upon clicking on File Open
It doesnt open up the OpenFileDialog return ans unhandled exception
Method not found System Windows.Forms OpenFileDialog get_SafeFileName
Anyone have an idea what i should be looking at I cant re-create it on my end
I'm Trying to make a piece of software where You enter a number and the computer measures the length of the number, and then generates random numbers to match the human number. It will then count the number of guesses and the time taken. However it always comes up that there was a infinite loop "An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll". I have searched up how to do this and I can't seem to find out how. I think I just put my wording wrong when looking it up. My Software Has Has 2 TextBox, 2 Buttons, 6 labels (4 just to make it user friendly) and a timer.
Here is the Code:
Public Class Form1
Dim TimeTaken As Integer
Dim GuessesTaken As Integer
[Code].....
I have been trying to find a code that would allow me to use a slider to adjust the users actual computer volume. Is this even possible?
View 1 RepliesI'm trying to create a Combobox List and I created the following my first try:
Private Sub ComboBox1_DropButtonClick()
ComboBox1.List = Array("LI-3:comparing and contrasting two or more print sources based on
[code].....
I use this line to download files: My.Computer.Network.DownloadFile(VideoFilename, SaveLocation, "", "", True, 8000, True But if a users cancel the download my application crashes. I searched Google but there's very little info about this problem. I tried with: My.Computer.Network.DownloadFile(FilenameMP3, SaveLocation, "", "", True, 8000, True, FileIO.UICancelOption.ThrowException, FileIO.RecycleOption.SendToRecycleBin()) But that line of code doesn't work. I need to get rid of the file when a users cancel
View 1 Repliesi would like to assign the value of a combobox to a variable and use this variable as a parameter on the insert statement.see code below,code 1 works ok,but code 2 brings an error relating to wrong datatype,i cant seem to find where the problem because i think i am doing everything right.
[Code]......
i would like code 2 to work so that i can assign the variables different values at different scenarios. column serialno is a foreign key from table Stock.
I have Combobox "Combo5" with a string value selected by the user.
How would I assign that selected value to another variable that I want to use later on or how od I refer to a combobox value that is currently selected?
I would like to assign cboBegCust.SelectedValue to c and cboEndCust.SelectedValue to d
Dim c, d As String
cboBegCust.SelectedValue = "customer"
cboEndCust.SelectedValue = "customer"
[Code]....
Trying to learn VB 2005. So my questions might tend to use the logic from VBA/VB6.
So, my question is, is it possible to assign indexes on the listbox/combobox? What I have is an ID and a Description from a table and would like to display it on listbox/combobox to allow user to choose from by looking for required description. When selected the ID will be used to search for other information related to this ID.
I manage to display the description but how to assign the IDs?
On Combobox how do I assign variable to those stings?
View 5 RepliesI'm trying to assign a datasource to a ComboBox control during runtime. When I do so, I get the attached message. Here is my
cmbAddressDesc.DataSource = dbDataSet4.tblAddressCodes.addrDescColumn
dbDataSet4 is a typed dataset. I want to learn how to use an Interface. The error message is suggesting using an IList. How would I do this. I'm having trouble finding good documentation on this.
i have a combobox and wish to assign multiple values if possible, eg is i select WESTERN EUROPE i would like the values to be: western europe OR western-europe AND Generic as the combobox is used to search for these strings within a listview (which is working fine for the combobox1.text but the listview sometimes has "western Europe" as "western-europe" and does not find it.
[Code]....
I wish to create a drop-down list box with items in it. Easy to do and done that. What I also wish to to is assign a numerical value to each list item. I believe under VB6 is was done using the list's `Value` property to set and get the item. It's so I can write a one byte value to a file but display a text value on the form. Don't wish to mess wish classes and arrays, but if I have to I guess it'll be have to be done.Was looking at some examples of making in-memory arrays/datasets for a list-box but just sees like a programming overkill for the simple thing I wish to do.Put it another way....
List box item 1 = "First option". List box value 1 = 35
List box item 1 = "Second option". List box value 1 = 44
List box item 1 = "Third option". List box value 1 = 3
If the user selects "Second item" from the drop down list box then that property do I use to retrieve that list item's value `44`. Also, when I pprogramatically populate the drop-down list, how to I set each lite item's `Value` property accordingly. As in the example 35, 44 and 3 Tried using `SelectedItem` and `SelectedValue`?
I am creating a program with a few listboxes. And I want to assign a value to each of the items in the list box. Here are what my listboxes consist of and the values i want assigned to them.
Listbox1
Playstation Value is 100
Xbox Value is 90
WII Value is 80
[Code]....
I then want to take the values add them together and display them in a text box. So for example someone chooses playstation and call of duty that will be 130 and I want this to display in a textbox.
So I am able to get the comboBox populated with the proper list of "clientLocations".
However they all have a valueMember of 0; thus the issue at hand is properly assigning the value of the comboBox items to the database column (which is returned in the dataset) rather than just the name.
Private Sub updateClientLocationComboBox()
'clear list
comboBox_clientLocations_deviceList.Items.Clear()
[Code].....
i need to get users domain from any server and fill my combobox.[code]
View 3 RepliesI am trying to develop a recipe manager that allows a user to create a shopping list. I've already determined that I want to use a list view for this job. I want to be able to group the items in the shopping list by the appropriate grocery aisle (i.e. Dairy, Bread, Canned Goods, etc.) I'm not sure how to assign the items to the appropriate group as the user selects each item.
I haven't started actually building the application yet as i'm still in the development stage, but i have been testing the list view out to figure out how it works. i've figured out how to add items. i just don't know how to specify the group that each item should belong to.
[code]...
I have a user defined structure in a list that I am trying to change the value for in an individual element within the list of structures. Accessing the element is not a problem. However, the compiler complains
"Expression is a value and therefore cannot be the target of the assignment"when I try to update the value.For example:
Public Structure Person
Dim first as String
Dim last as String
Dim age as Integer
[code]....
Public Structure testStruct
Dim blah as integer
Dim foo as string
[code].....
I am new to vb.net and I am using visual studio 2010. I have two comboboxes on a form, each combobox is set to DropDownList so that a list of items can show in the combobox, but no text is allowed to be entered.
For combobox A, if user chooses item 1, the list of combobox B should be updated accordingly. I think this is quite common on a lot of applications. But I do not know to implement it. I even do not know the keyword to search for the relevant property or event handler.
Is it wrong? Please suggest me correct way.
Public Function ReadXML() As List(Of String)
Dim list As New List(Of String)
Dim xmlDoc As XDocument = XDocument.Load("C:\MappingFile.xml")
[code].....
Im trying to get a list of users in an AD group. My code is [code] I think the line causing the problem is the filter ("(&(objectClass=person)(memberOf=CN=MyGroup))").Could anyone confirm or advise how to get the list of members please?
View 5 RepliesHow it is possible to maintain list of users who eneter in the website after gving their name and passwords. So that every e usres can view all online users. Is ther 3rd part tool or ajax for the purpose?
View 1 Repliesanyway ive created a basic form useing a webbrowser, combobox for the address bar and a go button.
what i want to do is when i put a computer name into the combobox exp: (a-1-001) i want (https) and port 2000 (:2000) added to the address automatically. In return the address should look like this: (https://a-1-001:2000)
[Code]...
I'm making a combobox on a form. I want the combobox to have a list of choices from a table in a db. The two columns are a String and a Date. I want the date column to only show the year. I'm hoping I have the code right as it is above, but I'm not positive I've done the whole date thing right.
I have created some profile properties for when a new user is added to our system.
One property is called 'Client' and links this user to a particular client and stores a client id.
I am trying to create a page that shows a list of users for each client on the system such as:
Client 1
User 1
User 2
[Code].....
Is there a way to get a list of users that match a particular profile property?