User Profile

Collapse

Profile Sidebar

Collapse
leosuth
leosuth
Last Activity: Mar 8 '10, 02:14 PM
Joined: Jul 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • leosuth
    replied to Date comparison not working in LINQ?
    OK 'pologies all.

    It turned out that I WAS being stupid :)

    My Orders were actually in January and I was looking in February - so date comparison in Linq DOES work just fine!
    See more | Go to post

    Leave a comment:


  • leosuth
    started a topic Date comparison not working in LINQ?

    Date comparison not working in LINQ?

    Hi

    I've got the following function:

    Code:
       public static List<Order> FilterByDateRange(List<Order> _list,string _sdate, string _edate)
        {
          if (_list.Count == 0) return null;
          DateTime _start = Convert.ToDateTime(_sdate);
          string[] _ed = _edate.Split(' ');
          string _edate2 = _ed[0] + " 23:59:59";
          DateTime _end = Convert.ToDateTime(_edate2);
    ...
    See more | Go to post

  • leosuth
    started a topic vb.net context menu not rendering correctly?
    in .NET

    vb.net context menu not rendering correctly?

    WHen creating menus, including the context menu, there is a blank 'entry' at the bottom of the menu where you can insert new menu items. When running the application, normal menus display correctly, but the context menu always has a blank area the size of a blank entry at the bottom of the menu - regardless of what height I give the menu.

    Anyone know how to get rid of this blank entry?
    See more | Go to post

  • leosuth
    replied to How to display popup menu in grid cell?
    in .NET
    Sorry, I did not understand that?

    I found some a method elsewhere which is as follows:

    Code:
        Private Sub DataGridView1_CellMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseClick
    
            Dim rect As Rectangle
    
            rect = DataGridView1.CurrentCell.GetContentBounds(e.RowIndex)
    
            MsgBox(rect.X
    ...
    See more | Go to post
    Last edited by leosuth; Jul 24 '07, 11:55 AM. Reason: Hit save by mistake

    Leave a comment:


  • leosuth
    started a topic How to display popup menu in grid cell?
    in .NET

    How to display popup menu in grid cell?

    I have a DataGridView control, and I need some code to implement a function where a user left-clicks on a specific cell and a context-menu is displayed with it top-lef corner in the centre of the clicked cell - the left-click should also select the row itself.
    See more | Go to post
No activity results to display
Show More
Working...