1. Adding custom logging levels to log4net

    Date: 12/29/05     Keywords: no keywords

    Has anyone here successfully implemented custom logging levels in log4net? I'm checking out the 'example' provided with the code, but it really does not show how to add new logging levels to log4net (as in a real example instead of just the interface).

    Source: http://www.livejournal.com/community/csharp/45259.html

  2. Adding custom logging levels to log4net

    Date: 12/29/05     Keywords: no keywords

    Has anyone here successfully implemented custom logging levels in log4net? I'm checking out the 'example' provided with the code, but it really does not show how to add new logging levels to log4net (as in a real example instead of just the interface).

    Source: http://community.livejournal.com/csharp/45259.html

  3. Long posty

    Date: 12/27/05     Keywords: security, microsoft

    This is a long post about one problem I have with Microsoft Report Viewer reports for .NET 2.0. Please don't skip it :)

    ok, I have a simple windows form with report viewer control placed on it. The datasource for my reports is an object described in a class. Most of the fields are pretty simple like:

    public string ObjectOperationType
      {
       get
       {
        return ent.Offer.OfferType.ToString();
       }
      }

    where "ent" is a business object the application uses.

    Some fields, though, are bit more complex and return List<> of things, like:

    public List ObjectCloseLocations()
      {
       List items = new List();
       foreach (DirectoryEntry de in ent.Attributes[31].AvailableItemsList)
       {
        if (((ListDirectoryEntries)ent.Attributes[31]).Contains(de))
        {
         items.Add(new CloseLocations(de.Term, true));
        }
        else
        {
         items.Add(new CloseLocations(de.Term, false));
        }
       }
       return items;
      }

    The CloseLocations type is a class with two public fields (Key and Value) that are filled by my method and then passed into the report as a list and the report will show the list in a table quite happily.

    It all works fine, as long as you don't have to include the ListsTypes() on your reports.

    Originally, the code to get the proper BindingSource running looked like this:


    ViewObject MyData = new ViewObject(vid, HidePD);
       this.ViewObjectBindingSource.DataSource = MyData;
       this.comfortAndSecurityBindingSource.DataSource = MyData.ObjectComfortAndSecurity();
       this.closeLocationsBindingSource.DataSource = MyData.ObjectCloseLocations();
       this.propPhotoBindingSource.DataSource = MyData.PropertyImages();
       reportViewer1.RefreshReport();

    Now, when I pass List to my primary BindingSource, the other binding sources have to be List<> or List types.

    I tried this:

    List myData = new List();
    ... fill the list...
    List> comfort = new List>();
    foreach(ViewObject vo in mydata)
    {
    comfort.Add(vo.Comfort());
    }
    this.comfortAndSecurityBindingSource.DataSource = comfort();

    the problem now is that the comfort List<> is not "bount" to it's parent object that shall be getting data from it. How can I fix this?

    Has anyone dealed with this?

    Source: http://www.livejournal.com/community/csharp/44980.html

  4. Long posty

    Date: 12/27/05     Keywords: security, microsoft

    This is a long post about one problem I have with Microsoft Report Viewer reports for .NET 2.0. Please don't skip it :)

    ok, I have a simple windows form with report viewer control placed on it. The datasource for my reports is an object described in a class. Most of the fields are pretty simple like:

    public string ObjectOperationType
      {
       get
       {
        return ent.Offer.OfferType.ToString();
       }
      }

    where "ent" is a business object the application uses.

    Some fields, though, are bit more complex and return List<> of things, like:

    public List ObjectCloseLocations()
      {
       List items = new List();
       foreach (DirectoryEntry de in ent.Attributes[31].AvailableItemsList)
       {
        if (((ListDirectoryEntries)ent.Attributes[31]).Contains(de))
        {
         items.Add(new CloseLocations(de.Term, true));
        }
        else
        {
         items.Add(new CloseLocations(de.Term, false));
        }
       }
       return items;
      }

    The CloseLocations type is a class with two public fields (Key and Value) that are filled by my method and then passed into the report as a list and the report will show the list in a table quite happily.

    It all works fine, as long as you don't have to include the ListsTypes() on your reports.

    Originally, the code to get the proper BindingSource running looked like this:


    ViewObject MyData = new ViewObject(vid, HidePD);
       this.ViewObjectBindingSource.DataSource = MyData;
       this.comfortAndSecurityBindingSource.DataSource = MyData.ObjectComfortAndSecurity();
       this.closeLocationsBindingSource.DataSource = MyData.ObjectCloseLocations();
       this.propPhotoBindingSource.DataSource = MyData.PropertyImages();
       reportViewer1.RefreshReport();

    Now, when I pass List to my primary BindingSource, the other binding sources have to be List<> or List types.

    I tried this:

    List myData = new List();
    ... fill the list...
    List> comfort = new List>();
    foreach(ViewObject vo in mydata)
    {
    comfort.Add(vo.Comfort());
    }
    this.comfortAndSecurityBindingSource.DataSource = comfort();

    the problem now is that the comfort List<> is not "bount" to it's parent object that shall be getting data from it. How can I fix this?

    Has anyone dealed with this?

    Source: http://community.livejournal.com/csharp/44980.html

  5. Anyone ever work for EDS?

    Date: 12/06/05     Keywords: no keywords

    Posting this to a couple of communities in hopes of an answer. I recently got a job as a C++/.NET Programmer (We use both). The position is good, dress is extremely casual and there's about 50% travel involved (good or bad depending on how you look at it.). Most days this is an 70 minute commute, if the traffic is horrible it's a 3 hours commute. Besides the horrible commute the job is great.

    Here's my question. I have an interview with EDS coming up, I applied to both places around the same time. The EDS job is only 30 minutes away (Again if the traffic isn't horrible), but I really know nothing about working there. Has anyone worked for them? What's it like? Do they suck as an employer? What are their benefits, etc ,etc?

    Source: http://www.livejournal.com/community/csharp/43986.html

  6. Anyone ever work for EDS?

    Date: 12/06/05     Keywords: no keywords

    Posting this to a couple of communities in hopes of an answer. I recently got a job as a C++/.NET Programmer (We use both). The position is good, dress is extremely casual and there's about 50% travel involved (good or bad depending on how you look at it.). Most days this is an 70 minute commute, if the traffic is horrible it's a 3 hours commute. Besides the horrible commute the job is great.

    Here's my question. I have an interview with EDS coming up, I applied to both places around the same time. The EDS job is only 30 minutes away (Again if the traffic isn't horrible), but I really know nothing about working there. Has anyone worked for them? What's it like? Do they suck as an employer? What are their benefits, etc ,etc?

    Source: http://community.livejournal.com/csharp/43986.html

  7. System.Random

    Date: 12/04/05     Keywords: no keywords

    Hi,

    Have you ever used System.Random? If so, how good is it as a source of random numbers?

    Source: http://www.livejournal.com/community/csharp/43627.html

  8. System.Random

    Date: 12/04/05     Keywords: no keywords

    Hi,

    Have you ever used System.Random? If so, how good is it as a source of random numbers?

    Source: http://community.livejournal.com/csharp/43627.html

  9. Word xml

    Date: 12/01/05     Keywords: xml, microsoft

    I have an XSD schema that I used to create an XML document with Microsoft Word. Now, when I have the xml document created with my schema (by Word), how can I, with C# .net 2.0 pick out the nodes' data for elements defined in my xds file and read/update them?

    Source: http://www.livejournal.com/community/csharp/43389.html

  10. Word xml

    Date: 12/01/05     Keywords: xml, microsoft

    I have an XSD schema that I used to create an XML document with Microsoft Word. Now, when I have the xml document created with my schema (by Word), how can I, with C# .net 2.0 pick out the nodes' data for elements defined in my xds file and read/update them?

    Source: http://community.livejournal.com/csharp/43389.html

  11. Images in reportviewer reports

    Date: 11/24/05     Keywords: database

    Is there a way to get an image to show on report from an Object source, not database?

    The only way I could organize this now is saving an image in file system and passing a link to the file into the imagebox on report. Any better solutions? Can it accept Image or Bitmap types somehow?

    Source: http://www.livejournal.com/community/csharp/43124.html

  12. Images in reportviewer reports

    Date: 11/24/05     Keywords: database

    Is there a way to get an image to show on report from an Object source, not database?

    The only way I could organize this now is saving an image in file system and passing a link to the file into the imagebox on report. Any better solutions? Can it accept Image or Bitmap types somehow?

    Source: http://community.livejournal.com/csharp/43124.html

  13. Custom control with C# Express Edition

    Date: 11/24/05     Keywords: no keywords

    How do I create a custom control project for Visual C# Express Edition? Is it just a matter of creating a blank project and then doing all the setup-y type stuff by hand?

    Source: http://www.livejournal.com/community/csharp/42970.html

  14. Custom control with C# Express Edition

    Date: 11/24/05     Keywords: no keywords

    How do I create a custom control project for Visual C# Express Edition? Is it just a matter of creating a blank project and then doing all the setup-y type stuff by hand?

    Source: http://community.livejournal.com/csharp/42970.html

  15. google book search

    Date: 11/23/05     Keywords: google

    books.google.com

    Full-text searching of books. I've been waiting for something of the sort for years. AMAZING


    X-posted: EVERYWHERE =)

    Source: http://www.livejournal.com/community/csharp/42717.html

  16. google book search

    Date: 11/23/05     Keywords: google

    books.google.com

    Full-text searching of books. I've been waiting for something of the sort for years. AMAZING


    X-posted: EVERYWHERE =)

    Source: http://community.livejournal.com/csharp/42717.html

  17. Can reports handle other data types?

    Date: 11/22/05     Keywords: templates

    I discovered a great feature of new VS 2005 - to allow use of Classes as
    datasources for reports. I created a simple class with a couple of public
    string fields that source my report and they show quite happily in report
    viewer. Great functionality.

    Now, I am trying to see if I can source an Array-like type to report and get
    it to show the data. For example say I have a Book class, that will conain
    name of the Author, number of pages, price and a HashTable (or another
    suitable) of characteristics: size, page colors and index.

    Something like:

    public HashTable OtherVals
    {
        get{

        HashTable my = new HashTable();
        my.Add("size","10x15");
        my.Add("PageColor", "green");
        return my;
            }
    }

    How can this be shown on report?

    Rewording of this quetsion below...

    the .rdls report templates, when a Class is used as its datasource - what
    sort of data types can it handle?

    In other words - strings work great, ints etc...

    How about ArrayList() or HashTable() or something that will allow me pass
    this into the report with 5 items and show them in a list.

    Thanks a lot!

    Source: http://www.livejournal.com/community/csharp/42468.html

  18. Can reports handle other data types?

    Date: 11/22/05     Keywords: templates

    I discovered a great feature of new VS 2005 - to allow use of Classes as
    datasources for reports. I created a simple class with a couple of public
    string fields that source my report and they show quite happily in report
    viewer. Great functionality.

    Now, I am trying to see if I can source an Array-like type to report and get
    it to show the data. For example say I have a Book class, that will conain
    name of the Author, number of pages, price and a HashTable (or another
    suitable) of characteristics: size, page colors and index.

    Something like:

    public HashTable OtherVals
    {
        get{

        HashTable my = new HashTable();
        my.Add("size","10x15");
        my.Add("PageColor", "green");
        return my;
            }
    }

    How can this be shown on report?

    Rewording of this quetsion below...

    the .rdls report templates, when a Class is used as its datasource - what
    sort of data types can it handle?

    In other words - strings work great, ints etc...

    How about ArrayList() or HashTable() or something that will allow me pass
    this into the report with 5 items and show them in a list.

    Thanks a lot!

    Source: http://community.livejournal.com/csharp/42468.html

  19. ToolTip problem now :)

    Date: 11/18/05     Keywords: no keywords

    Good day to everyone,

    I am trying to make a ToolTip for a couple of TextBoxes. What I do is:

    create a new ToolTip and make it a Balloon:

    ToolTip myToolTip = new ToolTip();
    myToolTip.IsBalloon = true;

    then I add the title and show it:

    myToolTip.ToolTipTitle = "Hi there";
    myToolTip.Show("welcome", TextBox1);

    Well, the problem is that the balloon tile will point to a weird location.
    Can I somehow make it point directly to the TextBox?

    Here a sreenshot of the code and the result:

    Source: http://www.livejournal.com/community/csharp/42022.html

  20. ToolTip problem now :)

    Date: 11/18/05     Keywords: no keywords

    Good day to everyone,

    I am trying to make a ToolTip for a couple of TextBoxes. What I do is:

    create a new ToolTip and make it a Balloon:

    ToolTip myToolTip = new ToolTip();
    myToolTip.IsBalloon = true;

    then I add the title and show it:

    myToolTip.ToolTipTitle = "Hi there";
    myToolTip.Show("welcome", TextBox1);

    Well, the problem is that the balloon tile will point to a weird location.
    Can I somehow make it point directly to the TextBox?

    Here a sreenshot of the code and the result:

    Source: http://community.livejournal.com/csharp/42022.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home