473,662 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

format listbox

I wish to display the contents of a 2 dimentional array
I think i should use a list box. I wish the output of my array in the
form of 4 rows and 4 colms like a matrix. Can you post some code for
this?

0 0 0 0 1
0 0 1 0 0
0 0 0 0 0
1 0 0 1 0
Nov 20 '05 #1
1 1754
* B.Etienne <b.*******@ntlw orld.com> scripsit:
I wish to display the contents of a 2 dimentional array
I think i should use a list box. I wish the output of my array in the
form of 4 rows and 4 colms like a matrix. Can you post some code for
this?

0 0 0 0 1
0 0 1 0 0
0 0 0 0 0
1 0 0 1 0


Use a ListView with 'View' set to 'Details' and subitems containing the
values.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
18176
by: Rookie | last post by:
I need to display several columns of numbers in a textbox. I wish to display the columns with the decimal point position aligned vertically. I have found that the # digit placeholders do not reserve the spaces for the number if the number of digits are fewer than the number of placeholders. My simplified example: included within a loop such that it displays two columns
17
3111
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP) Me.lboxRP.SetSelected(newRPindex, True) When the last line executes, I get an error message:
6
2872
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset a denormalized mirror of the database, but I'm not having much luck getting the selection logic down (I haven't found a 'hook' where I can access the listbox object as an object to set the listitem's selected property before it gets rendered).. ...
7
4529
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but ASP.Net stuff when I need a Windows Form control. I've seen dual listbox populators in countless Windows applications, and have seen them run very fast, so I figured this would be extremely popular. Here's how it should work:
4
1259
by: postings | last post by:
Hi I have a decimal numbers showing up on my datagrid that is displaying lots of trailing zeros in the listbox. i.e. 1.000100 or 1.000000 I want to get rid of all the trailing zeros (I don't want to do any rounding).
1
5314
by: Hoffmania | last post by:
Hello, I am binding a DataSet to a listbox. This listbox is used to set the current binding for an appointment page. A problem I have is that there can only be one appointment per day and I would like the listbox to only display the Date and not the Time. In otherwords, I want the DisplayMember to call ToShortDateString() rather than ToStirng(). Or, could I apply a formater or a format event to this basic binding. Any help would be...
4
460
by: bazzer | last post by:
i m trying to compare a time i have stored in a session variable, to a time of day: If (Session("theShowTime") < 18.0) Then .... basically i want to know if the time is before or after 6pm. 'theShowTime' is in short-time format from a microsoft access table(18:00). but i get the error: Input string was not in a correct format.
5
3869
by: sara | last post by:
I've looked at all the posts I could and don't see the solution. I am aware that the format to get a BLANK when the number is 0 is: $ #,###.00;($ #,###.00);"" But I can't, for the life of me, get it to work in the following VBA string. I have a total field that is 0 unless there's a total. I want the user to see BLANK if it's zero (that's how they think of it). thanks
5
5355
by: StarryNight | last post by:
I hate doing this but I've tried for hours to solve this problem. I'm trying to format a listbox to show the number as currency. The list box is controled by a query. here is the code: SELECT =Sum(+++++++++++)*25 AS totalSum, Format(,"Currency") AS Expr1 FROM WHERE (((.ClientID)=!.!!) AND ((.Year)=(Year(Now())))); as you can see I'm trying to use the format function but no formating occurs in the listbox. Can anyone point out the error....
11
5069
by: Mai Phuong | last post by:
Hi all, I have a page of aspx and a listbox. I want to format font for 3 last lines of my listbox with Bold Style by code. Notice that my lisbox has more than 3 lines, and I don't know exactly text for the first three items of the list until my web application runs. Lines of text are added to my listbox by the following way: foreach (DataRow row in dt.Rows) {
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5654
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.