Click here to Skip to main content
15,889,724 members
Home / Discussions / C#
   

C#

 
QuestionThe “Microsoft.CodeAnalysis.BuildTasks.Csc” task could not be loaded from the assembly Pin
Member 1204569215-Oct-15 3:31
Member 1204569215-Oct-15 3:31 
QuestionTime to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien14-Oct-15 16:10
LeHuuTien14-Oct-15 16:10 
AnswerRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
BillWoodruff14-Oct-15 20:37
professionalBillWoodruff14-Oct-15 20:37 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien14-Oct-15 22:27
LeHuuTien14-Oct-15 22:27 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
BillWoodruff14-Oct-15 22:38
professionalBillWoodruff14-Oct-15 22:38 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien14-Oct-15 23:10
LeHuuTien14-Oct-15 23:10 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
Pete O'Hanlon14-Oct-15 23:13
mvePete O'Hanlon14-Oct-15 23:13 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien14-Oct-15 23:22
LeHuuTien14-Oct-15 23:22 
usercontrol 1 will invoke 2 functions, one of it:
C#
public void DrawControl(Graphics g)
       {
           int X = 599;
           int Y = 10;
           int Width = 225;
           using (GraphicsPath path = GraphicsHelper.Create(X, Y, 224, 119, 5))
           {
               using (Pen frameWithBlackBgrd = new Pen(CWColors.FrameWithBlackBgrd))
               {
                   g.DrawPath(frameWithBlackBgrd, path);
               }
           }

           if (GuiResInfoMng.Instance.Lang != null && GuiResInfoMng.Instance.Param != null)
           {
               using (SolidBrush fixedTextWithBlackBgrd = new SolidBrush(CWColors.FixedTextWithBlackBgrd))
               {
                   g.DrawString(GuiResInfoMng.Instance.Lang.GetStr(LangId.IDS_COM_TOTALCNT),
                       FontFactory.Instance.GetFont(LangId.FNT_M2), fixedTextWithBlackBgrd, X, Y);
                   g.DrawString(GuiResInfoMng.Instance.Lang.GetStr(LangId.IDS_COM_PASS), FontFactory.Instance.GetFont(LangId.FNT_M2),
                       fixedTextWithBlackBgrd, X, Y + 23);
                   g.DrawString(GuiResInfoMng.Instance.Lang.GetStr(LangId.IDS_COM_NG), FontFactory.Instance.GetFont(LangId.FNT_M2),
                       fixedTextWithBlackBgrd, X - 1, Y + 46);
               }
           }

           using (SolidBrush variableText = new SolidBrush(CWColors.VariableText))
           {
               g.DrawString(ParamHelper.GetParamStr(ParamId.TOTALCOUNT).Trim(), FontFactory.Instance.GetFont(LangId.FNT_M2), variableText, X + Width - 60, Y);
               g.DrawString(ParamHelper.GetParamStr(ParamId.PASSCOUNT).Trim(), FontFactory.Instance.GetFont(LangId.FNT_M2), variableText, X + Width - 60, Y + 23);
               g.DrawString(ParamHelper.GetParamStr(ParamId.NGCOUNT).Trim(), FontFactory.Instance.GetFont(LangId.FNT_M2), variableText, X + Width - 60, Y + 46);
           }
       }

GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
Pete O'Hanlon14-Oct-15 23:42
mvePete O'Hanlon14-Oct-15 23:42 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien14-Oct-15 23:45
LeHuuTien14-Oct-15 23:45 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
BillWoodruff15-Oct-15 8:24
professionalBillWoodruff15-Oct-15 8:24 
AnswerRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
Gerry Schmitz15-Oct-15 9:38
mveGerry Schmitz15-Oct-15 9:38 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien15-Oct-15 16:36
LeHuuTien15-Oct-15 16:36 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
Gerry Schmitz15-Oct-15 17:10
mveGerry Schmitz15-Oct-15 17:10 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
LeHuuTien15-Oct-15 21:49
LeHuuTien15-Oct-15 21:49 
GeneralRe: Time to draw 2 usercontrols on a form is depend on each other. Pin
Gerry Schmitz16-Oct-15 8:21
mveGerry Schmitz16-Oct-15 8:21 
QuestionRead Records then Count Pin
macca2414-Oct-15 3:52
macca2414-Oct-15 3:52 
AnswerRe: Read Records then Count Pin
Richard MacCutchan14-Oct-15 5:01
mveRichard MacCutchan14-Oct-15 5:01 
AnswerRe: Read Records then Count Pin
Pete O'Hanlon14-Oct-15 5:09
mvePete O'Hanlon14-Oct-15 5:09 
SuggestionRe: Read Records then Count Pin
Richard Deeming14-Oct-15 5:24
mveRichard Deeming14-Oct-15 5:24 
GeneralRe: Read Records then Count Pin
Eddy Vluggen14-Oct-15 6:35
professionalEddy Vluggen14-Oct-15 6:35 
GeneralRe: Read Records then Count Pin
Pete O'Hanlon14-Oct-15 7:43
mvePete O'Hanlon14-Oct-15 7:43 
AnswerRe: Read Records then Count Pin
OriginalGriff14-Oct-15 5:16
mveOriginalGriff14-Oct-15 5:16 
SuggestionRe: Read Records then Count Pin
Matt T Heffron14-Oct-15 7:52
professionalMatt T Heffron14-Oct-15 7:52 
GeneralRe: Read Records then Count Pin
OriginalGriff14-Oct-15 8:02
mveOriginalGriff14-Oct-15 8:02 

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.