Hello Everyone, This time i am not asking for any help :-) I am showing anybody ,who wants to know how to add a $ sign into any item/subitem in Listview. Did try to add colour,BUT, there is a BUG in VS. you can code for differant colours in subitems,BUT the BUG will not show these colours. And now back to what I was talking about..hehehe For N As Integer = 0 To LV1.Items.Count - 1 LV1.Items(N).SubItems(7).Text = "$" & LV1.Items(N).SubItems(7).Text Next The above code, will insert the "$" symbol into the 7 column in your Listview. That is what …

Member Avatar
Member Avatar
+0 forum 2

I have a problem My program has 2 form 1: form1 - main form 2: form3 - history browser - to load ariables from "database" (simple csv file) into form1 (Main) controls.. form3 should load and pass variables to form1 controls.text I have only problem with ckheckedListBox in form3 - and I probably know why: Form1 f1 = new Form1(cfg_name); f1.comboBox_Maintenance_incident.Text = return_data[3]; f1.comboBox_Type.Text = return_data[4]; f1.comboBox_Affected_Item.Text = return_data[5]; temp = return_data[6].Split(';'); for (int i = 0; i < temp.Count(); i++) { int index = 0; foreach (object item in f1.checkedListBox_Items.Items) { if (temp[i] == item.ToString()) { f1.checkedListBox_Items.SetItemChecked(index, true); } …

Member Avatar
Member Avatar
+0 forum 2

I have a database with items which I want to populate to a listbox. The first image shows how its right now, and the second shows how I want the final result to look like. ![dd3aaa66fdb74cecb5cca11999b6b6dc](/attachments/small/3/dd3aaa66fdb74cecb5cca11999b6b6dc.png "align-left") ![2645978b29622fc539c0725c199c3e13](/attachments/small/3/2645978b29622fc539c0725c199c3e13.png "align-right")

Member Avatar
Member Avatar
+0 forum 2

I am desperately trying to add a DataGridViewComboBoxColumn to my DataGridView programatically. Here is the Code I've got so far. DataTable dt = new DataTable(); dt = _userBL.getUsersTable().DefaultView.ToTable(false, "Person_ID", "FirstName", "LastName", "Title", "Username"); dataGridView1.DataSource = dt; DataGridViewComboBoxColumn ComboBoxCell = new DataGridViewComboBoxColumn(); ComboBoxCell.Name = "State"; ComboBoxCell.ValueMember = "State";//ComboBoxCell.DisplayMember = "State"; ComboBoxCell.DisplayMember = "State"; ComboBoxCell.DataSource = _userBL.getUsersTable().DefaultView.ToTable(false, "State"); this.dataGridView1.Columns.Add(ComboBoxCell); But i get no data in the comboboxcolumn, and since I added DataSource, I cannot add items (Active,Inactive) in it. Also, when I click it a small dropdown should appear, even for empty comboboxes, but it does not. Thanks in advance!

Member Avatar
Member Avatar
+0 forum 1

I have a multiselection listbox. I want to see the last selected item (which the user just selected). I can't find any way to do this googling.. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 5

I have gone through the articles appeared in this forum on the above Area.But it didn't helped me much,As I am new to VB.net. In VB6 I have the following code and it works well. Private Sub CmbBank_GotFocus() CmbBank.BackColor = vbYellow LblMsg = "Select Bank" Dim A, B, C As Integer CmbBank.Clear CmbBank.Text = "SELECT BANK NAME" Set RS = New ADODB.Recordset If RS.State = adStateOpen Then RS.Close RS.Open "SELECT * FROM Receipts", CN, adOpenStatic, adLockOptimistic If TxtMode = "A" Then Do Until RS.EOF CmbBank.AddItem RS!Bank RS.MoveNext Loop Else Do Until RS.EOF A = Len(Left(RS!Bank, 25)) A = 25 - …

Member Avatar
Member Avatar
+0 forum 16

Hello good day. Thank you for trying to help. My problem is as follows. A few columns in my table, use a JComboBox as the editor for their cells. Each cell, in a row (via JComboBox) presents the same choices to the user. The user is allowed to choose from the options, just not the same option more than once for that row. That being said what I wish to accopmlish is this: Whenever selections are made from any JComboBox the next cells should present as options the remaining unselected choices. So basically whenever a particular choice is made, I …

Member Avatar
Member Avatar
+0 forum 23

hy i got a combo box and datagridview in my form and few other controls (to insert new record into my database),after the insertion is succcesful i want the inserted item to be displayed in my combo box and gridview by then only (i.e without restarting the project) could u please help me out..

Member Avatar
Member Avatar
+0 forum 1

I am populating a combobox with a list of names and the list contains approximately 7600 items. Here is the code: foreach (string customerName in customerNames) { comboBoxCustName.Items.Add(customerName); } This loop takes nearly one minute to complete (58.6 seconds to be precise). I don't think it should take that long, can someone please offer some ideas as to why it's taking so long?

Member Avatar
Member Avatar
+0 forum 3

One of the questions I get asked frequently by exhibitors is “What is the best promotional product to give away at Trade Shows?” Of course the answer is “It Depends.” Massive amounts of money are wasted on poorly thought out, poorly made and even pointless promotional products every year.

Member Avatar
Member Avatar
+0 forum 4

hello, this is my first post here. I'm working on my movie library project now in vb2008. I have a form with 3 listboxes, a remove button and find button. Listbox1 is populated with names of actors from a table in the mysql database and selection mode = one. User can select items from listbox1 one by one and each selected item will be listed in listbox2. If user want to remove a selected item from the listbox2, remove button will do the work. I already made this part. My problem is I don't have an idea how to check …

Member Avatar
Member Avatar
+0 forum 2

Not sure what I am doing wrong but let me try to explain my issue. I have a single combobox on my form that I use to load external settings. If I load, lets say, 100 settings in to this combobox then I clear the combobox via Combobox1.items.clear(), then try to reload a different set of settings that has a far less overall count, the combobox will not load the items and the dropdownlist will be massive but blank. NOW, if I load the settings that have far less then clear and load the settings with significantly more settings, then …

Member Avatar
Member Avatar
+0 forum 2

Create a button in the context menu for each selected contact. Hi all I would like to create a button in the context menu (right click) for the selected contact. This button has the same functions as the call button. Is there a way to create this add-in for Outlook 2007 and 2010 in Visual C # and NOT in VB.NET. I repeat NOT in VB.Net.

Member Avatar
Member Avatar
+0 forum 1

Hello. I can search for items in first listview column using FindItemWithText. I wonder is it possible to search in other listview columns and highlight found text, not all item line ? :?: Searched on google all day long but no luck... :sad: My Listview contains multiple items and each item has 9 subitems. I would like to search in column 4. Thanks in advance for any help! :icon_wink: My code i use to search in first column. [CODE] Dim findItem As ListViewItem = ListView1.FindItemWithText(TextBox1.Text, False, 0, True) If findItem IsNot Nothing Then ListView1.MultiSelect = False ListView1.TopItem = findItem findItem.Selected …

Member Avatar
Member Avatar
+0 forum 5

**Option 1 - From Start Menu** 1. Right click on the Start button -> properties. 2. Uncheck the Store and display recently opened items in the Start menu and the taskbar box, and click on Apply. 4. Click on OK. **Option 2 - From Windows Explorer** 1. Delete contents of this folder: C:\Users\(User Name)\AppData\Roaming\Microsoft\Windows\Recent Items **Option 3 - From Registry** 1. Paste this in a notepad -> Save it with the extension ".reg" and double click it. [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs]

Member Avatar
+0 forum 0

Hi, The code below selects all items in a listview control,fine,but I was wondering how I could code to select all but the very last line in the array. [CODE]Private Sub SelectAllToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem1.Click Dim i As Integer Dim lvItm As ListViewItem Dim str(2) As String Dim oWrite As System.IO.StreamWriter oWrite = System.IO.File.CreateText(Me.Text.ToString & ".txt") For Each lvItm In ListView2.Items str(0) = lvItm.SubItems.Item(0).Text.ToString str(1) = lvItm.SubItems.Item(1).Text.ToString str(2) = lvItm.SubItems.Item(2).Text.ToString oWrite.WriteLine(str(0) & vbTab & str(1) & vbTab & str(2)) Next oWrite.Close() '''''''''''''''''''''''''''''''''''''''''''''''' ' This Code Selects all in listView control '''''''''''''''''''''''''''''''''''''''''''''''' For i = …

Member Avatar
Member Avatar
+0 forum 7

How can I count the number of items in the listview. Example scenario. Today, I added students say, 20 students. and tomorrow I added another 15 students, i need to have a breakdown on how many students i have been adding per day. Please help me. Thank you guys!

Member Avatar
Member Avatar
+0 forum 8

Guys I have this kind of problem where in I have a listbox and two buttons. Each of my button is labeled UP and DOWN. When I press UP, the current item in my listbox will be moved one level (or index) up and when I press DOWN button the current item goes one level down. I have been trying to manipulate the selectedindex property but it isn't working. Can anyone help? Thanks

Member Avatar
Member Avatar
+0 forum 11

Dear All, I got a query where I would like to select the clientName from tblClient but with condition that this clientID does not exist in another table call tblCDSValidity. I tried like this but it failed. [CODE] SELECT tblClient.clientID, tblClient.clientName FROM tblClient,tblCDSValidity Where tblClient.clientStatus='a' And tblClient.clientID!=tblCDSValidity.clientID ORDER BY tblClient.clientName [/CODE]

Member Avatar
Member Avatar
+0 forum 6

[CODE]if(isset($_POST['listingType'])) { ini_set('magic_quotes_gpc', false); // magic quotes will only confuse things like escaping apostrophe //Get the item entered $listingType = $_POST['listingType']; $primaryCategory = $_POST['primaryCategory']; $itemTitle = $_POST['itemTitle']; if(get_magic_quotes_gpc()) { // print "stripslashes!!! <br>\n"; $itemDescription = stripslashes($_POST['itemDescription']); } else { $itemDescription = $_POST['itemDescription']; } $itemDescription = $_POST['itemDescription']; $listingDuration = $_POST['listingDuration']; $startPrice = $_POST['startPrice']; $buyItNowPrice = $_POST['buyItNowPrice']; $quantity = $_POST['quantity']; if ($listingType == 'StoresFixedPrice') { $buyItNowPrice = 0.0; // don't have BuyItNow for SIF $listingDuration = 'GTC'; } if ($listingType == 'Dutch') { $buyItNowPrice = 0.0; // don't have BuyItNow for Dutch } //SiteID must also be set in the Request's XML …

Member Avatar
+0 forum 0

i'm trying to create a search bar where the user searches for an item. the items are in ArrayList and there is multiple ArrayLists. I want the user to be able to search for something, from all the available ArrayLists and show the result possibly in another listBox.. ie. user searches for documents, search returns with all items containing documents which shows in listbox. then the user can click and open that object.. what is the best way to achieve this? thanks.

Member Avatar
Member Avatar
+0 forum 2

Hello Members of DaniWeb, I have run into an issue and need help solving it. I know how to go about adding items to My.Settings and I have already created the Specialized String Collection to My.Settings called List but I am having some trouble getting the items and the subitems to save to the list. If anyone could shoot me a snippet code on how this is done I would greatly appreciate it. Thanks -Chris

Member Avatar
Member Avatar
+0 forum 3

Good day, I've run into a problem with list items displayed inline (i.e., horizontally) using Safari for Windows. If you [URL="http://dwlamb.com/cssproblem/loggedin.html"]follow this link, you'll find an uploaded static version of the problem[/URL]. Viewing it in IE7-8 and Firefox (Windows & Linux), the page yields as it should. The 4 menu items across the top are similar to the 4 items down the left side. However, in Safari the items displayed inline lose the padding. Debugging this, I have narrowed it down that adding display:inline triggers the loss of the style. There are two sections of my CSS that govern these …

Member Avatar
Member Avatar
+0 forum 5

Hello guys, Please i have a problem and i need help.Please I have two table called 1.Register product table 2.Sell product table Register product table consist of (Product Id (txtProdId.text) and Product Name(txtProdName.text)) NB. All are textboxes Sell product table consist of (Product Name(cboProdName.text) and ProdPrice (txtProdCost.text)). NB. ProductName over here is a combobox. When someone saves record in the Register product table, items should be added into the combobox into Sell product table. Please how will I go about it.

Member Avatar
Member Avatar
+0 forum 3

Hi I am a PERL novice. Currently dealing with a problem and wondering whether it can be solved using PERL? I got a folder containing a number of text files. Every time a file is created a timestamp is added at the end followed by an "_". for example "apple_20101210091255.txt". Where: ======== apple = item name 20101210091255 = timestamp, format: yyyymmddhhhhmmss txt = filetype Now the folder contains the following files: apple_20101221134352.txt apple_20101221131735.txt apple_20110401091633.txt orange_20111221131731.txt orange_20111237131755.txt banana_20111221131709.txt coconut_20110401110735.txt The script to create an array which holds the latest file on each item (apple, orange, banana, coconut) based on timestamp. Is …

Member Avatar
Member Avatar
+0 forum 8

i have a project my next task is to display the item selected from my listview to the textbox in the other form heres my code on the listview Public Class listemployee Private Sub listemployee_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Create the column headers. ListView2.Columns.Add("EmployeeID", _ HorizontalAlignment.Left) ListView2.Columns.Add("LastName", _ HorizontalAlignment.Left) ListView2.Columns.Add("FirstName", _ HorizontalAlignment.Left) ListView2.Columns.Add("MiddleName", _ HorizontalAlignment.Right) ListView2.Columns.Add("Birthday", _ HorizontalAlignment.Left) ListView2.Columns.Add("Address", _ HorizontalAlignment.Right) ListView2.Columns.Add("EmailAddress", _ HorizontalAlignment.Right) ListView2.Columns.Add("Contact#", _ HorizontalAlignment.Right) ListView2.Columns.Add("CivilStatus", _ HorizontalAlignment.Left) ListView2.Columns.Add("Religion", _ HorizontalAlignment.Right) ListView2.Columns.Add("SSSId", _ HorizontalAlignment.Right) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnloaddata.Click Dim dr As OleDb.OleDbDataReader …

Member Avatar
Member Avatar
+0 forum 5

I am trying to save a listview item and 5 subitems to a txt file, I have tried one solution that was posted on here but i could not manipulate the code for all of my sub items can someone please help me out.

Member Avatar
Member Avatar
+0 forum 8

Hi, Daniweb members i have an listview containing an normal listviewitem plus one subitem What i want to do is save the info in the listview in a textfile and load when i start my program. So that all the info will be saved, but how do i do this? Hope somebody can help me, Killerbeat

Member Avatar
Member Avatar
+0 forum 3

hello guys i have a question because in my I.O.File i use this to save the data in the listview in a c:\test.txt but the problem is that it only save one data and every time i click the save the previous data that i save is deleted and it change the new one that i save...and also when i click the remove in the listview it will also delete the data that save in the c:\test.txt and the format should like this First name | lastname | address | rae alanah new york john smith los angeles here the …

Member Avatar
Member Avatar
+0 forum 5

Hello mates I've got a database with tables for Job Department and Job position. Every Positions has a respective Department assigned by the id. So, when the user selects a Department, the program deploys into the combobox the values of the Positions assigned to that department. The thing is, the position id is not ordered. If I use the [icode]Add()[/icode] method to add an item, and send the [icode]KeyValuePair(Of Integer, String)[/icode] of each position, when opening the dropdown, it shows me the list as [noparse][1, description_pos_1], [2, description_pos_2][/noparse], etc. How do I store the key value into the combobox without …

Member Avatar
+0 forum 0

The End.