PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Yea, I know I'm an idiot...but

Yea, I know this is going to probably sound stupid and lame and everything, but here it is. I don't know eVB and it seems that all the tutorials I grab on vb don't seem to apply in some areas. I'm trying to get text from a listbox, but using list1.Text isn't working...it just returns an empty string. I tried doing things in c++, but msgbox won't take strings...I'm guessing that's unicode hard at work to hinder me, but I figure I should learn eVB anyway, so might as well kill two birds with one stone and make my little app in vb.
What do you want the text from the list to be sent to? if it were a label for example it would be:

Code:
label1.text=list1.text


That should work, but if not tell me and I will rethink it. I know pretty much about evb, but list's are sometimes a pain.
I'd want to sent it to a static text box when a button is pressed. I can get text into the box when I press the button (that's how I tested what the list text returns), but I can't seem to get variables or the list.text to work (if I use variables, then it keeps claiming they're undeclared)
Don't know VB, but for C++ you can use something like:

Code:
((CStatic *)GetDlgItem(IDC_CONTROL_NAME))->SetWindowText(L"Text to show");


Works with all kinds of controls so you can even change the button text and don't need an extra static control. ;)
got it...evidently it's
Code:
listname.list(listname.listitem)


thanks though[/code]
New problem...how do I change the icon in vb?