Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# GUI for plotting real time MPU(acceleration) sensors Pin
Luc Pattyn7-Feb-19 6:48
sitebuilderLuc Pattyn7-Feb-19 6:48 
QuestionImport .csv file into C# application database. Pin
Member 141420726-Feb-19 5:59
Member 141420726-Feb-19 5:59 
AnswerRe: Import .csv file into C# application database. Pin
Richard MacCutchan6-Feb-19 6:15
mveRichard MacCutchan6-Feb-19 6:15 
AnswerRe: Import .csv file into C# application database. Pin
Mycroft Holmes6-Feb-19 13:41
professionalMycroft Holmes6-Feb-19 13:41 
QuestionHow to convert docx,pdf or doc files into html file use c# ? Pin
Bol India Bol6-Feb-19 1:35
Bol India Bol6-Feb-19 1:35 
AnswerRe: How to convert docx,pdf or doc files into html file use c# ? Pin
Richard MacCutchan6-Feb-19 2:14
mveRichard MacCutchan6-Feb-19 2:14 
AnswerRe: How to convert docx,pdf or doc files into html file use c# ? Pin
Dave Kreskowiak6-Feb-19 2:35
mveDave Kreskowiak6-Feb-19 2:35 
Questionc# winforms Listview column sorting, won't change on 2nd click Pin
jkirkerx5-Feb-19 10:17
professionaljkirkerx5-Feb-19 10:17 
It's been a long time since I've worked with column sorting. It was working until I fine tuned it.
Now I can't figure out where it's broken. I don't if broke the code in the form, or the class I fined tuned.
But I can't click and go descending, but when I click it stays the same, descending.

It fires twice, the first time is correct, then the 2nd time it goes back
private void LVRecord_ColumnClick(object sender, ColumnClickEventArgs e)
{
    Cursor = Cursors.WaitCursor;
    // LV_Record.ColumnClick -= LVRecord_ColumnClick;

   // Determine whether the column is the same as the last column clicked.
   if (e.Column.Equals(_lvrColumnSorter.SortColumn))
    {
        // Reverse the current sort direction for this column.
        if (_lvrColumnSorter.Order.Equals(SortOrder.Ascending))
        {
            _lvrColumnSorter.Order = SortOrder.Descending;
        }
        else
        {
            _lvrColumnSorter.Order = SortOrder.Ascending;
        }
    }
    else
    {
        // Set the column number that is to be sorted; default to ascending.
        _lvrColumnSorter.SortColumn = e.Column;
        _lvrColumnSorter.Order = SortOrder.Ascending;
    }

    // Perform the sort with these new sort options.
    this.LV_Record.Sort();

    // LV_Record.ColumnClick += LVRecord_ColumnClick;
    Cursor = Cursors.Arrow;
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com

AnswerRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
jkirkerx5-Feb-19 11:36
professionaljkirkerx5-Feb-19 11:36 
GeneralRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
Luc Pattyn5-Feb-19 13:00
sitebuilderLuc Pattyn5-Feb-19 13:00 
GeneralRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
jkirkerx6-Feb-19 6:25
professionaljkirkerx6-Feb-19 6:25 
GeneralRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
Gerry Schmitz6-Feb-19 7:58
mveGerry Schmitz6-Feb-19 7:58 
GeneralRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
jkirkerx6-Feb-19 8:37
professionaljkirkerx6-Feb-19 8:37 
GeneralRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
Gerry Schmitz7-Feb-19 6:11
mveGerry Schmitz7-Feb-19 6:11 
GeneralRe: c# winforms Listview column sorting, won't change on 2nd click [works now] Pin
jkirkerx7-Feb-19 9:48
professionaljkirkerx7-Feb-19 9:48 
QuestionsignalR client server stops working after DNS-ip record for server changed Pin
impeham5-Feb-19 3:00
impeham5-Feb-19 3:00 
GeneralRe: signalR client server stops working after DNS-ip record for server changed Pin
Richard MacCutchan5-Feb-19 3:28
mveRichard MacCutchan5-Feb-19 3:28 
GeneralRe: signalR client server stops working after DNS-ip record for server changed Pin
impeham5-Feb-19 6:47
impeham5-Feb-19 6:47 
AnswerRe: signalR client server stops working after DNS-ip record for server changed Pin
Dave Kreskowiak5-Feb-19 4:06
mveDave Kreskowiak5-Feb-19 4:06 
GeneralRe: signalR client server stops working after DNS-ip record for server changed Pin
impeham5-Feb-19 6:44
impeham5-Feb-19 6:44 
GeneralRe: signalR client server stops working after DNS-ip record for server changed Pin
Dave Kreskowiak5-Feb-19 7:10
mveDave Kreskowiak5-Feb-19 7:10 
Questionarrays Pin
Member 141391973-Feb-19 22:21
Member 141391973-Feb-19 22:21 
AnswerRe: arrays Pin
Pete O'Hanlon3-Feb-19 22:40
mvePete O'Hanlon3-Feb-19 22:40 
GeneralRe: arrays Pin
Member 141391973-Feb-19 22:54
Member 141391973-Feb-19 22:54 
AnswerRe: arrays Pin
OriginalGriff4-Feb-19 0:05
mveOriginalGriff4-Feb-19 0:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.