zeroonnet Posted November 7, 2007 at 09:36 PM Report Share #146007 Posted November 7, 2007 at 09:36 PM alguém me sabe dizer como é que eu sei quais são os numeros das linhas selecionadas numa listview? e como é que faço para não dár para mais que uma? pois se carregar CTRL da para escolher varias Fiquem Bem. Link to comment Share on other sites More sharing options...
Betovsky Posted November 7, 2007 at 09:46 PM Report Share #146008 Posted November 7, 2007 at 09:46 PM alguém me sabe dizer como é que eu sei quais são os numeros das linhas selecionadas numa listview?Tens a propriedade SelectedIndices para isso. e como é que faço para não dár para mais que uma? pois se carregar CTRL da para escolher variasTens a propriedade MultiSelect para isso. "Give a man a fish and he will eat for a day; Teach a man to fish and he will eat for a lifetime. The moral? READ THE MANUAL !" Sign on a computer system consultant's desk Link to comment Share on other sites More sharing options...
zeroonnet Posted November 7, 2007 at 10:25 PM Author Report Share #146015 Posted November 7, 2007 at 10:25 PM Tens a propriedade SelectedIndices para isso. Sim mas eu não a tou a conseguir por a funcionar :S Link to comment Share on other sites More sharing options...
Betovsky Posted November 7, 2007 at 10:29 PM Report Share #146016 Posted November 7, 2007 at 10:29 PM Como é que estás a usar? "Give a man a fish and he will eat for a day; Teach a man to fish and he will eat for a lifetime. The moral? READ THE MANUAL !" Sign on a computer system consultant's desk Link to comment Share on other sites More sharing options...
zeroonnet Posted November 7, 2007 at 10:30 PM Author Report Share #146017 Posted November 7, 2007 at 10:30 PM Já tentei: string mc = listView1.SelectedItems.ToString(); e: MatchCollection mc = listView1.SelectedItems; Match FirstMatch = mc[0]; string select = Convert.ToString(FirstMatch.Groups[0]); Link to comment Share on other sites More sharing options...
zeroonnet Posted November 7, 2007 at 11:44 PM Author Report Share #146041 Posted November 7, 2007 at 11:44 PM já me esclareceu a duvida no irc thanks xD Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now