144 Topics

Member Avatar for
Member Avatar for Orphæus

Hi all! I am making a TimeCard application and I got stucked.. Anyway, the program looks like this: the user inserts date,start hour and finnish hour into 3 textboxes. On the fourth textbox it will show how many hours he has spent. I am using StreamWriter to save the data …

Member Avatar for codeorder
0
118
Member Avatar for jv_web

Hello, Im trying to generate an email with Multiple Listbox selections... Unfortunately the listbox allows me to select multiple choice but when I submit the form only one "selection" is shown... Im assuming a for each or something will be needed here... all tests using that method have failed. Could …

Member Avatar for jv_web
0
177
Member Avatar for Jollyyy100

Hi, i'm developing a project on employees. I have added a list box and now i need help to display the data about my employees in the list box. How am i supposed to do that, do we have to put in codes or need to use that small arrow …

Member Avatar for Naushad Malik
-1
143
Member Avatar for wesley.groves

I have a VB.net programming question i am loading values into a list box from the database in a form being used to edit a database record. the list populates fine using the following code. Protected Sub LoadCat() Dim myCommand As New SqlCommand Dim myReader As SqlDataReader = Nothing Dim …

Member Avatar for rohand
0
173
Member Avatar for an00p

Hello friends, I have a php page that displays data from a mysql DB. Fields are 1. Username 2. Designation etc... I want to list usernames in a listbox. I know thats not a tough job but I want to give different colors (or background color) to usernames with different …

Member Avatar for an00p
0
177
Member Avatar for lucammino

Hi everybody. I have an UserControl (Windows Application - .NET Framework 3.5) which is composed of a TextBox and ListBox: it should pretty much emulate a "suggestion box" just like the ones in Google and other various search engines. Now, the initial status of this control (TextBox blank) imply the …

Member Avatar for lucammino
0
154
Member Avatar for JOSheaIV

Okay so I am writing some C# and the program at one point reads in a file and stores each line in a string array. This part of the code works I have tested it. Well then I have the string displayed in a listBox with this string array using …

Member Avatar for JOSheaIV
0
3K
Member Avatar for JOSheaIV

Okay so this one should seem easy enough but I can't get past 1 issue I am having. Pretty much what ever is in the the listBox is stored in an array, but also in a text file (for loading and saving). The only issue is that I can't seem …

Member Avatar for JOSheaIV
0
172
Member Avatar for koxy911

Hi all! I need some help. What I need is, to make a listbox, and fill it from a mysql database, which contains users from my website. The idea was, to select two or more users from that listbox, and after hitting a submit button, I would see the comments …

Member Avatar for koxy911
0
145
Member Avatar for toadzky

I have a ListBox using an ItemTemplate. Here is the XAML: [CODE] <ListBox Name="list_Sensors" ItemsSource="{Binding}" Grid.Column="0" IsSynchronizedWithCurrentItem="True"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <GroupBox Header="Part Number/Description" Grid.Column="0" Margin="5" Width="200"> <StackPanel> <TextBlock Text="{Binding Path=PartNumber}" HorizontalAlignment="Center"/> <TextBlock TextWrapping="Wrap" FontSize="8" HorizontalAlignment="Center"> <TextBlock.Text> <MultiBinding StringFormat="{}{0} {1}"> <Binding Path="Manufacturer" /> …

Member Avatar for toadzky
0
400
Member Avatar for Excalibur69

Hi there I am working in Visual Studio 2005 Pro. I have created a WinForm with access to a SQL database. On the WinForm I have two listboxes, the displays DivisionCode and the other DivisionID both having the same DataSource but different DisplayMembers. They occupy the same space on the …

Member Avatar for Excalibur69
0
252
Member Avatar for rumpleteaser33

Hi, I am writing a program that has a listbox which is bound to a dataset. When I click a button (e.g. delete) the item is deleted from the database ok using an SQL query but is still shown in the listbox. How do I get the listbox to refresh/update …

Member Avatar for rumpleteaser33
0
1K
Member Avatar for JonKho

Dear all, My window layout looks like this.. [img]http://i41.tinypic.com/hu27ax.jpg[/img] First, the dialog box that consists of listbox would appear to ask for user input. After the user input has been given, It will display in the next windows.. I have been trying to intergate the two coding together. However I …

Member Avatar for JonKho
0
207
Member Avatar for c.pentasuglia

Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim quantity As Integer Dim quanarr(20) As Integer Dim item As String Dim price As Double Dim x As Integer = 0 Dim counter As Integer counter = QuantityList.Items.Count quantity = Val(QuantityBox.Text) item = ItemBox.Text …

Member Avatar for Smith5646
0
135
Member Avatar for Kruptein

I have a Frame called ChangeDirPanel and an other one called MyFrame, the last one is the top-lvl window and has a function called file_show_dir which updates a listbox in that same window. (both frames have their own class, is it better to have the same class?) I want to …

Member Avatar for Stefano Mtangoo
0
267
Member Avatar for Mekonom

hi all..I am new on C# .My problem is I have a 1 combo box, list box and button . When I choose value on combobox it search on database nd shows on listbox. and I used OwnerDravFixed method..It works and when i change combobox value it show that some …

0
81
Member Avatar for vivek4020

Hi I have a textbox and a listbox. If i write something into the textbox and press the enter key, i would like the content of the textbox to appear in the listbox. What is the best way to do it? Thanks in advance

Member Avatar for sknake
0
2K
Member Avatar for wingers1290

Hi, I have a list box that on form load displays file names inside a directory using this code [code] DirectoryInfo di2 = new DirectoryInfo(path); foreach (FileInfo fi2 in di2.GetFiles()) { listBox1.Items.Add(fi2.Name); } [/code] Which works fine, however i have another function on my form which adds files to the …

Member Avatar for DdoubleD
0
282
Member Avatar for jk8204

Having problems succuessfully populating the listBox via arrays. Array size is input by user. Also, cant quite get the SaveFileDialog working with the option for the user to create own filename & location. [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; …

Member Avatar for DdoubleD
0
152
Member Avatar for jk8204

my assignment is to retrieve data from a txt file and output how many tests were input, average of all the tests, and then list the letter grade beside each text what i have so far: [CODE] private StreamReader strRead; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs …

Member Avatar for Alxandr
0
244
Member Avatar for kool.net

hi, pls. tell me how to select value from a check box, & from a list box or combo box. actually i m new to c# , so sorry for this stupid question but i need your help. Thanx in advance. Happy Diwali Regards ~ Dimple

Member Avatar for avirag
0
218
Member Avatar for sops21

I have a select box with information about people in it. When you click on their name in the select box, I'm trying to display information (Name, Address, Height, Weight) about them inside of a <div>. Here is what I have so far: [CODE]<form> <SELECT NAME="list1" MULTIPLE SIZE=20 class="set_width" id='developer'> …

Member Avatar for sops21
-1
154
Member Avatar for zoiyeeh

Please Help me on how to make my list box function in vb6.....what's the code to use that whenever I'm going to select the choices in the list it will function accordingly..

Member Avatar for vb5prgrmr
0
91
Member Avatar for rogergrippo

I am using Visual Studio 2008. I have made a dropdown list or a Listbox containing various country names and their local site URL. the purpose is to redirect the visitor to correct local site of their choice. I've created the Dropdown List but, I am unable to make the …

0
110

The End.