Jump to content
Xtreme .Net Talk

GreenKawasaki

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by GreenKawasaki

  1. Dynamic_sysop, Thanks for the fast reply! This code finally solves my problem with centering forms. (I'm not really sure why .net doesn't make this easier) I really appreciate your help. Best Regards, GreenKawasaki
  2. Hello, How do I setup my forms so I can use that 'CenterParent' option for forms? I have a mainform and a bunch of smaller forms that I want to popup in the middle of the main form no matter where it is on the screen. Any help is greatly appreciated! I currently have my mainform's IsMDIContainer set to true. Dim MyForm As New SmallForm() MyForm.StartPosition = FormStartPosition.CenterParent MyForm.ShowDialog() Unfortunately, this doesnt work. Best regards, VB Newbie
  3. Hi, I don't want to do it in a click event because I want the list to be updated automatically as you select items without letting go of the mouse button. This is so the user can see how many items he's selected before letting go of the mouse button. I want it to work like Windows explorer when you drag around and select items. VB newbie
  4. Thanks DiverDan for the help! Unfortunately your tip didn't help. I originally never had the statusbar update in the loop but outside. My code is as follows: Private Sub ListView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged Dim Count As Integer = 0, Size As Single = 0 Dim Item As ListViewItem Dim MyItems As ListView.SelectedListViewItemCollection MyItems = Me.ListView1.SelectedItems For Each Item In MyItems Count = Count + 1 Size = Size + Int(Item.SubItems(3).Text) / 1000 Next StatusBarPanel2.Text = "Selected " & Count & " File(s), " & Size.ToString() & " " & "KB" End Sub Still, if I have like 300 items in my listview, the statusbar gets updated at every iteration like 299..298.297.. and is really slow. Any more help. I figured a way to cheat by having a timer just update the statusbar at every tick. But I don't think thats a good use of system resources. Any more ideas? Thanks a lot! Sincerely, VB Newbie
  5. Hello, I have a listview with a bunch of files with their size. When I select items I want the total of the file sizes to show up in the statusbar. The problem is that when i select and deselect files like over 300, the SelectedIndexChanged event gets called every time, like 300..299..298 when you deselect all files, and the statusbar size gets updated very slowly. Is there any way to total first and only update the statusbar after all the math is done. Thanks, VB Newbie
  6. Hello, 1. How do I get the target path of my drop location from a listview? Like if I drop some items onto the desktop it will return "c:\documents and settings\user\desktop\" 2. How do I get the cursor to change to the 'copy' icon when I drag over a folder or the desktop or something? Any help is greatly appreciated!! Thanks, VB newbie
×
×
  • Create New...