|
Prev: converting to a double number in a diffrenet culture format
Next: Connection Sharing without WiFi
From: jp2msft on 3 Apr 2008 12:05 I can create a new ListViewItem, assign it text and add a SubItem to this. I add it to my ListView, and the ListView.Items.Count is successfully incremented. However, the ListView looks empty! I thought it was, but I can tap inside the ListView in the Emulator, key in the UpArrow on my keyboard, and the ListView.SelectedIndex changes to the ListViewItem I just added. However, the currently selected ListViewItem is still not visible! I have set the ListView's ForeColor to Black and BackColor to White, same as the ListViewItem. Why can't I see ListViewItems in my ListView? It worked in the past on this Project, so I must have set something or something has become corrupt. I made many, MANY changes to the code before noticing the ListView was not showing ListViewItems, so I really don't want to go back to the code from 2 weeks ago (I know, I should backup more regularly). Does anyone have any suggestions? IDE: VS2005 Pro for Pocket PC 2003
From: Chris Tacke, eMVP on 3 Apr 2008 12:44 You don't have any columns/column headers added. -- Chris Tacke, Embedded MVP OpenNETCF Consulting Giving back to the embedded community http://community.OpenNETCF.com "jp2msft" <jp2msft(a)discussions.microsoft.com> wrote in message news:6D869481-1BEA-4C07-B0B8-DF9D69431FFD(a)microsoft.com... >I can create a new ListViewItem, assign it text and add a SubItem to this. > > I add it to my ListView, and the ListView.Items.Count is successfully > incremented. > > However, the ListView looks empty! > > I thought it was, but I can tap inside the ListView in the Emulator, key > in > the UpArrow on my keyboard, and the ListView.SelectedIndex changes to the > ListViewItem I just added. > > However, the currently selected ListViewItem is still not visible! > > I have set the ListView's ForeColor to Black and BackColor to White, same > as > the ListViewItem. > > Why can't I see ListViewItems in my ListView? > > It worked in the past on this Project, so I must have set something or > something has become corrupt. I made many, MANY changes to the code before > noticing the ListView was not showing ListViewItems, so I really don't > want > to go back to the code from 2 weeks ago (I know, I should backup more > regularly). > > Does anyone have any suggestions? > > IDE: VS2005 Pro for Pocket PC 2003
From: Scott Seligman on 3 Apr 2008 12:46 =?Utf-8?B?anAybXNmdA==?= <jp2msft(a)discussions.microsoft.com> wrote: > >I can create a new ListViewItem, assign it text and add a SubItem to this. > >I add it to my ListView, and the ListView.Items.Count is successfully >incremented. > >However, the ListView looks empty! Have you created any columns for the listview? -- --------- Scott Seligman <scott at <firstname> and michelle dot net> --------- I'm the one that has to die when it's time for me to die, so let me live my life, the way I want to. -- Jimi Hendrix
From: jp2msft on 3 Apr 2008 13:34 Thanks both for the quick reply; however, I forgot to mention that I *do* have two Columns in this ListBox. Here are some more features of the ListBox: BackColor = White CheckBoxes = False ForeColor = Black View = Details Activation = Standard Columns Count = 2 HeaderStyle = None Visible = True I'll try setting the HeaderStyle to something other than None so they are visible. Any other suggestions? "Chris Tacke, eMVP" wrote: > You don't have any columns/column headers added. > > > -- > > Chris Tacke, Embedded MVP > OpenNETCF Consulting > Giving back to the embedded community > http://community.OpenNETCF.com > > "jp2msft" <jp2msft(a)discussions.microsoft.com> wrote in message > news:6D869481-1BEA-4C07-B0B8-DF9D69431FFD(a)microsoft.com... > >I can create a new ListViewItem, assign it text and add a SubItem to this. > > > > I add it to my ListView, and the ListView.Items.Count is successfully > > incremented. > > > > However, the ListView looks empty! > > > > I thought it was, but I can tap inside the ListView in the Emulator, key > > in > > the UpArrow on my keyboard, and the ListView.SelectedIndex changes to the > > ListViewItem I just added. > > > > However, the currently selected ListViewItem is still not visible! > > > > I have set the ListView's ForeColor to Black and BackColor to White, same > > as > > the ListViewItem. > > > > Why can't I see ListViewItems in my ListView? > > > > It worked in the past on this Project, so I must have set something or > > something has become corrupt. I made many, MANY changes to the code before > > noticing the ListView was not showing ListViewItems, so I really don't > > want > > to go back to the code from 2 weeks ago (I know, I should backup more > > regularly). > > > > Does anyone have any suggestions? > > > > IDE: VS2005 Pro for Pocket PC 2003 > > >
From: jp2msft on 3 Apr 2008 13:42 I just answered this in Chris' reply (which was identical to yours), but I wanted to add some additional information here: I changed the HeaderStyle from None to Nonclickable, and ran my application again. In the designer, the first Column is "Part Number" and the second is "Status." When I run the application, there are no column names displayed. Did I break something? "Scott Seligman" wrote: > =?Utf-8?B?anAybXNmdA==?= <jp2msft(a)discussions.microsoft.com> wrote: > > > >I can create a new ListViewItem, assign it text and add a SubItem to this. > > > >I add it to my ListView, and the ListView.Items.Count is successfully > >incremented. > > > >However, the ListView looks empty! > > Have you created any columns for the listview? > > -- > --------- Scott Seligman <scott at <firstname> and michelle dot net> --------- > I'm the one that has to die when it's time for me to die, so let me > live my life, the way I want to. > -- Jimi Hendrix >
|
Next
|
Last
Pages: 1 2 Prev: converting to a double number in a diffrenet culture format Next: Connection Sharing without WiFi |