Halo 2 Header information displaying in ListBox
Halo 2 Header information displaying in ListBox
I have a good header class and have successfully made header information appear through labels, but I want to try a list box. I know that it is probably easy, but I just don't know the code to make the information appear in the list box. How can I make it appear?
It is generally helpful to know what programing language you are asking for help in......
Edit: Opps, i missed the reference to header files.
Edit: Opps, i missed the reference to header files.
Last edited by conure on Fri Aug 15, 2008 7:34 am, edited 1 time in total.
Halomods member wrote:tags meta? There is no such thing for Halo PC.
With h being your header object and lst being your listbox, I would recommend something along the lines of:
Code: Select all
lst.Items.Add("Header Value: " + h.Value);
...
Oops. I am programming in C#.conure wrote:It is generally helpful to know what programing language you are asking for help in......
Edit: Opps, i missed the reference to header files.
Well, that code doesn't seem to be working for me...OwnZ joO wrote:With h being your header object and lst being your listbox, I would recommend something along the lines of:Code: Select all
lst.Items.Add("Header Value: " + h.Value); ...
- grimdoomer
- Posts: 1440
- Joined: Mon Oct 09, 2006 4:36 pm
Try this:
[/code]
Code: Select all
listView1.Items.Add("Name Of Value - " + map.Header.Value.ToString());
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.