Click here to Skip to main content
15,904,494 members
Home / Discussions / C#
   

C#

 
AnswerRe: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
Richard MacCutchan20-Oct-16 1:35
mveRichard MacCutchan20-Oct-16 1:35 
AnswerRe: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
Gerry Schmitz20-Oct-16 5:02
mveGerry Schmitz20-Oct-16 5:02 
QuestionInterface structure Pin
Mycroft Holmes19-Oct-16 17:38
professionalMycroft Holmes19-Oct-16 17:38 
AnswerRe: Interface structure Pin
Midi_Mick19-Oct-16 19:12
professionalMidi_Mick19-Oct-16 19:12 
GeneralRe: Interface structure Pin
Mycroft Holmes19-Oct-16 20:32
professionalMycroft Holmes19-Oct-16 20:32 
AnswerRe: Interface structure Pin
Midi_Mick19-Oct-16 21:32
professionalMidi_Mick19-Oct-16 21:32 
AnswerRe: Interface structure Pin
Pete O'Hanlon19-Oct-16 21:04
mvePete O'Hanlon19-Oct-16 21:04 
AnswerRe: Interface structure Pin
puneetdhawan200020-Oct-16 0:25
puneetdhawan200020-Oct-16 0:25 
AnswerRe: Interface structure Pin
Nathan Minier20-Oct-16 1:11
professionalNathan Minier20-Oct-16 1:11 
GeneralRe: Interface structure Pin
Mycroft Holmes20-Oct-16 12:53
professionalMycroft Holmes20-Oct-16 12:53 
GeneralRe: Interface structure Pin
Eddy Vluggen21-Oct-16 0:37
professionalEddy Vluggen21-Oct-16 0:37 
GeneralRe: Interface structure Pin
Nathan Minier21-Oct-16 1:09
professionalNathan Minier21-Oct-16 1:09 
GeneralCan we use Azure Table as database in CRM application? Pin
amit singhniet18-Oct-16 23:11
amit singhniet18-Oct-16 23:11 
GeneralRe: Can we use Azure Table as database in CRM application? Pin
dan!sh 18-Oct-16 23:58
professional dan!sh 18-Oct-16 23:58 
GeneralRe: Can we use Azure Table as database in CRM application? Pin
amit singhniet19-Oct-16 1:35
amit singhniet19-Oct-16 1:35 
GeneralRe: Can we use Azure Table as database in CRM application? Pin
Dave Kreskowiak19-Oct-16 6:15
mveDave Kreskowiak19-Oct-16 6:15 
QuestionCode to move window not working. Pin
Member 1280196718-Oct-16 22:47
Member 1280196718-Oct-16 22:47 
AnswerRe: Code to move window not working. Pin
OriginalGriff18-Oct-16 23:03
mveOriginalGriff18-Oct-16 23:03 
GeneralRe: Code to move window not working. Pin
Member 1280196718-Oct-16 23:15
Member 1280196718-Oct-16 23:15 
GeneralRe: Code to move window not working. Pin
OriginalGriff18-Oct-16 23:19
mveOriginalGriff18-Oct-16 23:19 
GeneralRe: Code to move window not working. Pin
Member 1280196718-Oct-16 23:49
Member 1280196718-Oct-16 23:49 
GeneralRe: Code to move window not working. Pin
OriginalGriff18-Oct-16 23:59
mveOriginalGriff18-Oct-16 23:59 
GeneralRe: Code to move window not working. Pin
Member 1280196719-Oct-16 0:26
Member 1280196719-Oct-16 0:26 
Hm... for some reason the window just moves back and forth kind of like it's vibrating. I'm not really sure what's causing it as the code without the if statement works fine.

This is the code right now:

C#
this.Left += WindowVx;
if (Left < 0 || (Left + this.Width) > ClientSize.Width){
    WindowVx = -WindowVx;
}

GeneralRe: Code to move window not working. Pin
OriginalGriff19-Oct-16 0:31
mveOriginalGriff19-Oct-16 0:31 
GeneralRe: Code to move window not working. Pin
Member 1280196719-Oct-16 0:36
Member 1280196719-Oct-16 0:36 

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.