https://www.dummies.com/programming/net/standardized-naming-conventions-for-visual-basic-net/

 

Standardized Naming Conventions for Visual Basic .NET - dummies

When you’re programming, names are important. If you’re programming with Visual Basic .NET, the following table can be a major help in getting the names right. It gives the common prefix to use when naming objects so you can quickly tell your check box

www.dummies.com

 

 

PrefixCorresponding ObjectExamplePrefixCorresponding ObjectExample

Acd ActiveDoc AcdMainPage Hpl HyperLink HplURL
Chk CheckBox ChkBoldface Lbl Label LblContents
Cbo ComboBox CboDropper Lst ListBox LstNames
Cm ADO command (database) CmMyCommand Pag Page PagTurn
Cmd CommandButton CmdExit Pgf PageFrame PgfRule
Cmg CommandGroup CmgSelectOne Prj ProjectHook PrjSuzerine
Cn Connection (database) CnMyConnex Rb RadioButton RbBlueBackground
Con Container CntFramed Rs Recordset (database) RsTotalSales
Ctr Control CtlSeeThis Sep Separator SepZone
Fld Field (database) FldTitles Spn Spinner SpnWatch
Frm Form FrmColors Txt TextBox TxtAddress
Frs FormSet FrsTypeIn Tmr Timer TmrAnimation
Grd Grid GrdGoods Tbr ToolBar TbrDropThis
Grc Column (in grid) GrcQuantity Tbl Table (database) TblTitles
Grh Header (in grid) GrhYearsResults    

참조.

 

728x90

- ref url : https://www.grapecity.com/en/forums/spread-winforms/sample-code-to-insert-a-sp

 

Sample code to insert a spread chart at run time | Spread for WinForms | Spread Studio | GrapeCity Forums

Discussion of topic Sample code to insert a spread chart at run time in Spread for WinForms forum.

www.grapecity.com

private void button2_Click(object sender, EventArgs e)
{
	object[,] values = {{"ID","Math","LA","Science"},
						{"1",50,25,55},
						{"2",92,24,24},
						{"3",65,70,60},
						{"4",24,26,20},
						{"5",80,26,20}
	};

	this.grdMain.Sheets[1].SetArray(0, 0, values);

	this.InsertChart(this.grdMain, 1);

}

private void InsertChart(FpSpread fps, Int32 charttype)
{
	SheetView sv = fps.Sheets[1];
	if (charttype == 1) // clustereed columns
	{
		BarSeries s1 = new BarSeries();
		s1.SeriesName = sv.Cells[0, 1].Value.ToString();
		s1.Values.DataSource = new SeriesDataField(fps, "Math", "Sheet2!$B$2:$B$6");
		BarSeries s2 = new BarSeries();
		s2.SeriesName = sv.Cells[0, 2].Value.ToString();
		s2.Values.DataSource = new SeriesDataField(fps, "LA", "Sheet2!$C$2:$C$6");
		BarSeries s3 = new BarSeries();
		s3.SeriesName = sv.Cells[0, 3].Value.ToString();
		s3.Values.DataSource = new SeriesDataField(fps, "Science", "Sheet2!$D$2:$D$6");

		ClusteredBarSeries ss = new ClusteredBarSeries();
		ss.Series.Add(s1);
		ss.Series.Add(s2);
		ss.Series.Add(s3);

		YPlotArea yplotarea1 = new YPlotArea();
		yplotarea1.Series.Add(ss);
		SpreadChart chart1 = new SpreadChart();
		chart1.Model.PlotAreas.Add(yplotarea1);

		chart1.Rectangle = new System.Drawing.Rectangle(150, 150, 150, 150);
		chart1.SheetName = "Sheet1";

		// You missed this line of code
		fps.Sheets[0].Charts.Add(chart1);
	}
}
728x90

'Programming Language > C#' 카테고리의 다른 글

UI컴포넌트 Naming  (0) 2021.06.07
C#, TeeChart에 ToolTip 표시하기  (0) 2021.04.01
offline .net 3.5 설치  (0) 2020.07.30
[grapecity/farpoint] ComboBoxCellType 처리.  (0) 2020.07.08
[grapecity/farpoint] fix spread column size  (0) 2020.07.08

일부 버전에서 버그가 있을 수 있음. 한 Series에서 되도, Stack Bar 에서는 오동작 나는 경우 있음.

 

using System;
using System.Windows.Forms;

namespace WinFormChart01
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.bar1.FillSampleValues(7);
            this.bar2.FillSampleValues(7);
            this.points1.FillSampleValues(7);


            Steema.TeeChart.Tools.MarksTip marksTip1 = new Steema.TeeChart.Tools.MarksTip();

       
            this.tChart1.Tools.Add(marksTip1);
        
            // Tool에 marksTip을 추가 후 속성을 설정해야 함. 반대로 하면 객체를 못참음~
            marksTip1.HideDelay = 2501;
            marksTip1.MouseDelay = 50;

            // Y value 표시
            marksTip1.Style = Steema.TeeChart.Styles.MarksStyles.Value;

            // move hover 일때 tooltip 표시
            marksTip1.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move;

            // point series는 커스텀 으로 tooltip 처리함.
            points1.GetSeriesMark += Form1_GetSeriesMark;


        }

        void Form1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
        {
            e.MarkText = series.Title + ":\n - X: " + series.XValues[e.ValueIndex].ToString() + "\n - Y: " + series.YValues[e.ValueIndex].ToString();
        }
    }
}

 

728x90

offline .net 3.5 설치

 

원문: https://extrememanual.net/11904

 

요약

 

1. window10 iso 파일을 받는다.

2. iso를 마운트(탑재)한다.

3. power shell 을 관리자 모드로 실행한다.

4. power shell 에 아래 명령으로 .net 3.5를 설치한다. (d:는 iso 마운트 driver)

  DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

5. iso가 마운트된 driver를 unmount(꺼내기)한다.

 

end.

 

728x90

+ Recent posts