Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
AnswerRe: Trying to get List<T> through reflection Pin
Richard Deeming30-Jun-14 1:47
mveRichard Deeming30-Jun-14 1:47 
QuestionThesis Project Pin
jomilyn28-Jun-14 3:02
jomilyn28-Jun-14 3:02 
AnswerRe: Thesis Project Pin
Pete O'Hanlon28-Jun-14 3:07
mvePete O'Hanlon28-Jun-14 3:07 
GeneralRe: Thesis Project Pin
jomilyn28-Jun-14 3:33
jomilyn28-Jun-14 3:33 
GeneralRe: Thesis Project Pin
OriginalGriff28-Jun-14 3:59
mveOriginalGriff28-Jun-14 3:59 
GeneralRe: Thesis Project Pin
jomilyn28-Jun-14 4:07
jomilyn28-Jun-14 4:07 
GeneralRe: Thesis Project Pin
OriginalGriff28-Jun-14 4:11
mveOriginalGriff28-Jun-14 4:11 
GeneralRe: Thesis Project Pin
Tom Delany30-Jun-14 12:06
Tom Delany30-Jun-14 12:06 
Questioncannot found emailhandler in c# 2008 Pin
KaKoten27-Jun-14 22:19
KaKoten27-Jun-14 22:19 
AnswerRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff27-Jun-14 22:34
mveOriginalGriff27-Jun-14 22:34 
GeneralRe: cannot found emailhandler in c# 2008 Pin
KaKoten27-Jun-14 22:41
KaKoten27-Jun-14 22:41 
GeneralRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff27-Jun-14 22:45
mveOriginalGriff27-Jun-14 22:45 
GeneralRe: cannot found emailhandler in c# 2008 Pin
KaKoten27-Jun-14 22:57
KaKoten27-Jun-14 22:57 
GeneralRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff27-Jun-14 23:52
mveOriginalGriff27-Jun-14 23:52 
GeneralRe: cannot found emailhandler in c# 2008 Pin
KaKoten28-Jun-14 12:36
KaKoten28-Jun-14 12:36 
GeneralRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff28-Jun-14 22:17
mveOriginalGriff28-Jun-14 22:17 
QuestionForm not allowed to move or choose another form in C# ? Pin
Member 245846727-Jun-14 19:01
Member 245846727-Jun-14 19:01 
AnswerRe: Form not allowed to move or choose another form in C# ? Pin
OriginalGriff27-Jun-14 20:34
mveOriginalGriff27-Jun-14 20:34 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
Member 245846727-Jun-14 21:40
Member 245846727-Jun-14 21:40 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
OriginalGriff27-Jun-14 21:52
mveOriginalGriff27-Jun-14 21:52 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
Member 245846728-Jun-14 5:03
Member 245846728-Jun-14 5:03 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
Member 245846728-Jun-14 13:38
Member 245846728-Jun-14 13:38 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
OriginalGriff28-Jun-14 22:25
mveOriginalGriff28-Jun-14 22:25 
Easiest way is to not show the title bar: set FormBorderStyle to None and there will be no title to drag it with - this also removes the menu, maximize, minimize, and close buttons.

Alternatively, override WndProc:
C#
private const int WM_NCLBUTTONDOWN = 161;
private const int WM_SYSCOMMAND = 274;
private const int HTCAPTION = 2;
private const int SC_MOVE = 61456;
protected override void WndProc(ref Message m)
    {
    if ((m.Msg == WM_SYSCOMMAND) && (m.WParam.ToInt32() == SC_MOVE)) return;
    if ((m.Msg == WM_NCLBUTTONDOWN) && (m.WParam.ToInt32() == HTCAPTION)) return;
    base.WndProc(ref m);
    }

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

QuestionCombining two or three solution in visual C# 2008 Pin
KaKoten27-Jun-14 17:34
KaKoten27-Jun-14 17:34 
AnswerRe: Combining two or three solution in visual C# 2008 Pin
PIEBALDconsult27-Jun-14 17:55
mvePIEBALDconsult27-Jun-14 17:55 

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.