Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Brandon Parker

@Brandon Parker
About
Posts
16
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Get handle of an application?
    B Brandon Parker

    Process[] processes = Process.GetProcesses(); for(int x=0;x < processes.Length-1;x++) { try { string name = processes[x].MainModule.FileName; if(name.EndsWith("iexplore.exe")) { Process instance = processes[x]; instance.Handle // use the handle } catch(System.NullReferenceException e) { } }

    C# question c++

  • dot net check
    B Brandon Parker

    How do i do that? Brandon

    Web Development help tutorial question announcement

  • ListView remove item problem!! Help please
    B Brandon Parker

    Works great. Thanks.

    C# help database debugging question

  • dot net check
    B Brandon Parker

    does anyone know how to check a client computers dot net version, or even if dot net is installed? Any help would be nice. Thanks. Brandon:confused:

    Web Development help tutorial question announcement

  • ListView remove item problem!! Help please
    B Brandon Parker

    Yes you have stated the obvious;P Remember I said this only occures when the tabpage that hold the listview control isnt first viewed. The listview is created along with that tabpage in the forms constructor so it is instantiated. Im thinking somehow that the items in the view control arent actually created until they are needed(ie. when the control is viewed). But, the truth is im not sure what is going on.

    C# help database debugging question

  • ListView Control
    B Brandon Parker

    try this instead. I havent tried it so im not sure it will work,so let me know. Also remember, if you use the SelectedItems Property and no item is selected then it will be null. so it will complain. this.listView.Items[0].Selected = true;

    C# question database

  • ListView remove item problem. Help please
    B Brandon Parker

    I call this function to remove the last item in a listview in details view. The problem is that the control is on a tab page, and if i call this function before the control has been viewed(ie. before the tab page with this control is shown), this function fails with the inner exception of message "Object reference not set to an instance of an object", and, the regular exception of "unable to create handle". This only happens if the control is not viewed first. Can someone help me out here. public void RemoveLastItem() { int index = Items.Count; try { Items.RemoveAt(index-1); } catch(OutOfMemoryException e){ // Error is caught here!! Why ???? #if DEBUG MessageBox.Show(e.InnerException.Message); MessageBox.Show(e.Message); #endif } catch(NullReferenceException e){ #if DEBUG MessageBox.Show(e.Message); #endif } }

    .NET (Core and Framework) help database debugging question

  • ListView remove item problem!! Help please
    B Brandon Parker

    I call this function to remove the last item in a listview in details view. The problem is that the control is on a tab page, and if i call this function before the control has been viewed(ie. before the tab page with this control is shown), this function fails with the inner exception of message "Object reference not set to an instance of an object", and, the regular exception of "unable to create handle". This only happens if the control is not viewed first. Can someone help me out here. public void RemoveLastItem() { int index = Items.Count; try { Items.RemoveAt(index-1); } catch(OutOfMemoryException e){ // Error is caught here!! Why ???? #if DEBUG MessageBox.Show(e.InnerException.Message); #endif } catch(NullReferenceException e){ #if DEBUG MessageBox.Show(e.Message); #endif } }

    C# help database debugging question

  • ListView Control
    B Brandon Parker

    look at your code. If you use SelectedItems property to get an index value for your listview, and no item is selected there wont be a value in SelectedItems[0], thats why it crashes. // Add a new item and at subcolumn int index = Items.Count; ListViewItem item = new ListViewItem("Column Text,index) item.SubItems.Add("Subcolumn Text"); Items.Add(item); // Add only a subitem to an existing item listView.Items[index].SubItems.Add("subcolumn Text"); you can show a blue line by first adding the item to the row then use the controls SelectedItem property to select the index of the new item. You might also want to make sure that fullrowselect is set to true. Brandon Parker

    C# question database

  • Flicker Free Listview
    B Brandon Parker

    So should i be using the style controls?

    C# wpf help

  • XP Home and .NET
    B Brandon Parker

    Too answer the first question. No you cant create web service without IIS installed. Now I am not telling to do anything but I know of a many people who have freely downloaded XP Pro using kazaa

    .NET (Core and Framework) csharp com windows-admin tools question

  • Very slow debug startup when debugging mc++ mixed app
    B Brandon Parker

    I hear you. I am soooo sick of this. I need to find a computer running dual processors!!!:((

    Managed C++/CLI debugging c++ css sysadmin question

  • Free Windows Form Designer
    B Brandon Parker

    I bought an academic version which has just about everything for 100.00 at a local university. If you dont go to a university, find someone who does and have them purchace a copy for you. If you dont know anyone that goes to university, hang out next to the university book store and ask someone that is a student to buy it for you. They usually check school ID's for this because microsoft requires a copy. Or you could always get the 60 day free trial from MS. I think its 10.00 for shipping.

    .NET (Core and Framework) csharp visual-studio winforms question

  • XP Home and .NET
    B Brandon Parker

    Well I think you answered both of your questions yourself. Just give it a try. Try to install IIS from the pro cd if it doesn work then youll need to install the pro edition onto your computer. I dont know why you wouldnt want to do that anyways.

    .NET (Core and Framework) csharp com windows-admin tools question

  • Flicker Free Listview
    B Brandon Parker

    Can someone help me with a flicker free listview. I have tried setting the control styles but that doesnt seem to work. And when i set the control style UserPaint to true only the columns of the listview are painted. I guess this is because we are then responsible for all the painting. However, I dont want to go through all of that. Does someone know of another way to do this.

    C# wpf help

  • HTML Tags
    B Brandon Parker

    With all this emphesis on .NET and the internet. Why is there not class in the new .NET Framework to parse HTML tags?

    .NET (Core and Framework) csharp html dotnet question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups