note范文
来源:快速阅读法 发布时间:2013-10-28 点击:
note范文篇一
【英语专四】Note Writing 便条的写法和技巧
(一) 格式(format)
具体来说,它应有日期(date)、称呼(saluwfion)、正文(body)及结
尾(ending),结尾包括结尾套语(complimentary close)和签名
(signature)。
1.日期指写便条的日期。英文便条与汉语便条的日期写的地方有别,前者的日期一般写在便条的右上角,偶尔也见写在便条的左上角,而后者的日期则写在便条的右下角,即写在签名的下面。英文日期与汉语日期的写法也有不同,汉语一般先写年,然后再写月、日,而英文则一般把年份写在月、日的后面。另外,英文日期的月、日与年之间通常用逗号隔开。例如,2008年4月21日通常写成April 21,2008或April 21 st,2008;当然,由于是非正式书信,也可以去掉年份,写成Ap l 2l或April 21st(不过,这种写法,只是最近两年才被TEM4接受),或者写成21/4/2008或4/21/2008。日期能说明便条的
有效度,没有日期,则会使人感到茫然。
2.称呼称呼是指写便条人对收便条人的称谓,一般都以Dear开头,写在日期下一两行、留出左页边空白,顶格写。TEM4试卷中一般对写便条人与收便条人之间的关系作了提示。提示中的“you”指的是写便条人,提到的另一方便是收便条人。称呼时,一般只需在其名字前加Dear即可,如Dear Susan,Dear Tom。若此人有头衔(social title),称呼时,便要保留其头衔,例如Dr.Herce,要称DearDr.Pierce,不称DearPierce。如果提示中的另一方是以MrsWang或MrWang
出现,称呼时也只需在其前加Dear便可,即称DearMrsWang或DearMrWang,若只称DearWang则视为不妥。当对方为亲属时,在Dear 后面加上表示亲属关系大写的字眼即可,如DearGrandpa,DearAunt。值得一提的是,近年来TEM4也接受不带Dear的称呼。
称呼后面可用逗号,也可用冒号。
3.正文是写便条人要叙述或谈论的事情,是便条的主要组成部分。一般书信是在称呼下方隔两行处开始写正文。但就TEM4便条而言,一般在称呼的下一行开始写正文便可。正文的首行左边一般留约5个字母宽的空白,但也可顶格写。便条的内容简单、字数少,因此,正文一般只需写一段或两段。若有两段,第二段的首行应与第一段的
首行对齐写。
4.结尾如前所述,结尾包括结尾套语和签名。
(1)结尾套语结尾套语的位置一般是在正文最后一行的下面,从便条的中央部分开始,稍向右缩进。当然,若正文的开头是往左顶格写,此时的结尾套语也应往左顶格写。开头字母要大写,末尾要用逗号。结尾套语为写便条人对收便条人的谦称或客套以示礼貌,措辞的变化按照不同的关系而定。★★★现分述如下:① 致不熟悉的人,宜用较庄重的套语,如Yours sincerely,Sincerely yours,或Sincerely等。
② 对上级、长者,除了可用上述较庄重的套语,也可用
Yoursrespectfully或Respectfully yours。③ 对一般朋友或熟人可用①中提到的较庄重的套语,也可用Yours等较为随便的套语。④ 对密友则采用较随便的套语为宜。例如,Yours,Love,With love,Best wishes,Best regards等等。⑤ 对亲属可用下列任何一种:Love,With love,All my love,Yours afectionately,Affectionately yours,Lovingly yours,Yo urslovingly,Your loving son(Dad⋯);但对亲人,
不宜用Sincerelyyours~
★由于TEM4便条写作一般是针对考生日常生活或学习相关的事情,写作的对象一般是其朋友、老师、熟人,因此,TEM4通常只接受Yours sincerely,Sincerely yours,Sincerely,或Yours这几种结尾
套语。
(2)签名即写便条人署名,位于结尾套语下,偏右。若结尾套语是往左顶格写,这时的署名也应往左顶格写。签名也由写便条人和收便条人的关系和亲疏程度而定。有时TEM4指定了写便条人的名字,签名时应采用那个名字。若无指定名字,考生也不宜用自己的真名。一般只需写名不写姓,但若用了较庄重的结尾套语,此时可签全名。
(二)内容完整一般而言,一封理想的TEM4便条应包括以下三点:
(1)写便条的原因;(2)要告诉的事情;(3)有关的希望、建议或要求等。便条写作提示的情况都是与人们日常生活或学习相关的事情。例如,对别人提供的帮助表示感谢,邀请朋友参观书展,因不能准时赴约而
表示道歉,把信息转告给朋友等。所提示的内容就是考生要表达的思想内容。思想内容有先后之分,要讲究其逻辑性,还得注意其完整性。生活中有些约定俗成的东西,写作时,应考虑这方面的因素。例如,写道歉信时,一般都先向对方表示歉意或内疚,同时说明发生疏忽、过失、或错误的原因,提出弥补的办法,这样有利于取得对方的谅解。现以近年一次英语专业四级考试便条写作为例加以说明:该提示是:
Yesterday you failed to turn up for the appointmentwith your
teacher,Professor Wang.Write him a note of apology an dmake a request for another meeting.YO u should also suggest the timefor the requested meting.仔细阅读这一提示,你就会发现,第一句为第二旬所要求的道歉确定了内容;为了求得对方的谅解,获得另一次会面的机会,你就必须说明前次未能赴约见面的原因。因此,本便条的
内容必须包括以下四项:
(1)apologizing for failure to turn up for the appointment,
(2)the reason forfailure to turn up for the appointment,
(3)making a request for another meeting,
(4)suggesting the time for the requested meeting。其中(3)、(4)为提示中明确要求表达的内容,(1)、(2)则是根据道歉类书信特点而必须表达的内容。内容为便条写作的重头戏。写作时,切莫忽视提示中的任何信息,同时要关注交际中所需的相关信息。当然,在注意提示中的信息时,特别是首句,要注意用自己正确的语言来表达,不能完全抄提示,否则会扣分。
(三)语言得体内容和语言是一个统一体。内容抓住后,应以恰当的语言来表达。一般来说,便条的语言要简单明嘹,用词平易。当然,语言风格还应与情景一致,不同的对象,所使用的语言应有所不同。相对来说,对上级、长者、不熟悉的人的语言较为正式,对亲朋好友的语言则较为随便。不过,不管对方是谁,行文中都应体现态度诚恳礼貌。
(四)字数符合要求TEM4便条总字数(包括日期、称呼、结尾在内)的要求是约50—60个字。尽管在这数字之间还可以少l0字,或多20字,即40-80字,不过,还是篇幅适中为好,以免因显得太短或太长而扣分。二TEM4便条写作中常见的问题便条写作中常见的问题主要表现在格式、内容、语言等方面。
(一)格式方面
1.日期部分往往被漏掉,或漏掉日期中年与月、日之间的逗号,或在日期后面加点,或按汉语的顺序写成(如2006年4月22日,写成April 22 2006;April 22,2006.;2006.5.9;其正确形式请参照前文的相应部分),或按汉语习惯把它写在签名的下面。
2.称呼未往左顶格写,或与日期同写一行;称呼后面打句号,或未打逗号或冒号。把结尾套语和签名同写一行,或漏写结尾套语,或漏掉结尾套语后面的逗号。
note范文篇二
英语专业四级Note写作
2012专四Note预测10:Refusal
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
Your foreign friend, Jimmy, want you to be his Chinese tutor. But you are so busy with your study that you cannot help him. Write him a note, declining him and explaining why.
Marks will be awarded for content, organization, grammar and appropriateness. 范文
April 12, 2010 Dear Jimmy,
Thanks a lot for trusting me and asking me to be your Chinese tutor! But as you know, I am a senior student and must finish all courses and papers this term. I am so busy with my courses and papers that I cannot help you. I am sorry for that! I can recommend you a good Chinese tutor if you need.
Yours,
Lily
2012专四Note预测9:Buying A Gift
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
Jenny, your classmate, is thinking of buying a gift to her mother for Mother's Day, And you would like to recommend a good book to her. Write a note, telling her about the book and explain why you think it's a suitable gift.
Marks will be awarded for content, organization, grammar and appropriateness. 范文
April 12, 2010 Dear Jenny,
I heard that you were thinking of buying a gift to your mother for the coming Mother's Day, and I would like to recommend a good book to you. Letters to Mum is a book in which 100 sons' and daughters' letters to their mothers are collected. These letters are so moving that I believe your mother will like to read them very much.
Yours,
Mary 2012专四Note预测8:Complaint
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation: You need to have your dorm light repaired, and you told the dorm keeper several times. But nobody comes to repair the light for you by now,
Write a note to school administrate office to complain for that.
Marks will be awarded for content, organization, grammar and appropriateness. 范文{note范文}.
April 12, 2010 Dear Sirs of school administrate office,
I am sorry that I have some complaint to make. My dorm light has gone wrong since last Monday, and I have told the dorm keeper several times. However, nobody has come to repair the light by now. It's so inconvenient that I have to study in my classmates' dorm every night. Would
you please arrange some one to repair the light for me?
Yours,
John
2012专四Note预测7:Ask For Help
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
You just failed in you final exam of English and must take a makeup exam a week later. You know that your classmate Mary is good at English.
Write her a note to ask for help.
Marks will be awarded for content, organization, grammar and appropriateness. 范文
April12, 2010 Dear Mary,
I am so sorry to tell you that I just failed in my final English exam. What a shame it is! Next week I must take a makeup exam, but I am afraid that I cannot make it. I know you do well in English and have got a high score in the final exam. Would you please give me some help? Yours,
Lily 2012专四Note预测6:Congratulations
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
You just heard that your friend Danny has gained admittance to Tsinghua University as a graduate student. Write a note to him, offering him your sincere congratulations.
Marks will be awarded for content, organization, grammar and appropriateness. 范文
April 12, 2010 Dear Danny,
I just heard that you had gained admittance to Tsinghua University as a graduate student. How happy I am to hear that! I know that it's your dream to go to Tsinghua University for further study. You are always studying so hard that I believe your dream will come true one day. Congratulations to you!
Yours,
Joan
2012专四Note预测5:Thanks Your Friend
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
Last Saturday you went to Mike's home as a houseguest. He and his family gave you a warm welcome and made delicious food for you. Write him a note to thank him and his family. Marks will be awarded for content, organization, grammar and appropriateness. 范文
April 12, 2010 Dear Mike,
What a happy day I have had last Saturday in your home! You and your family were most
kind to me and gave me such warm welcomes. The food made by your mother was so delicious that I can hardly forget it. Thank you so much for having invited me! And please remember me to your family!
Yours,
Ann
2012专四Note预测4:Invite Someone
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation: You have heard that there will be a fancy ball next week on the campus, which you are very interested in. Write a note to ask your friend Mike, one of the organizers of the ball, for the details of the ball.
Marks will be awarded for content, organization, grammar and appropriateness.
范文
April12, 2010 Dear Mike,
I have heard that there will be a fancy ball next week on the campus, and that you are one of the organizers. I am really interested in the fancy ball and want to attend it very much. Would you please tell me the time and place of the ball? And do I need an invitation to attend the ball?
Yours,
Joan
2012专四Note预测3:Comfort A Friend
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
Your friend, Ann, just lost her grandmother, and is feeling very sad about it. Write a note to comfort her.
Marks will be awarded for content, organization, grammar and appropriateness.
范文
April12, 2010 Dear Ann,
I am really sorry to hear that your grandmother has passed away. I know your feeling because 2 years ago I lost my grandfather, and I was very sad at that time. Please pull yourself together and try to be strong. Your grandmother knew you loved her very much and that will be enough. She will rest in peace.
Yours,
Joan
2012专四Note预测2:Selling Bike
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
You have heard that your friend, Jim, wishes to sell his bike. Write him a note expressing your interest in it, asking him about its condition and offering a price for it.
Marks will be awarded for content, organization, grammar and appropriateness.
范文
April 12, 2010 Dear Jim,
I have heard that you wish to sell your bike. At the moment I just need a bike by which I can go to do my part-time job on the weekend. Would you please tell me what color your bike is and how well it works? And is it possible that I buy it at the cost of 50 yuan?
Yours,
Mary
2012专四Note预测1:Advise A Place
Write on ANSWER SHEET THREE a note of about 50-60words based on the following situation:
One of your foreign friends Ann plans to go sightseeing in China. You have just come back from a place which you think she might enjoy. Write a note to advise her to go to this place. Marks will be awarded for content, organization, grammar and appropriateness. 范文
April 09, 2010 Dear Ann,
I heard that you are planning to go sightseeing in China, and I want to recommend you a good place. I just came back from Lijiang, which has beautiful landscape, kind people and interesting custom. Two ethnic minorities are living there, so you can buy many goods made by them and in the riverside bars you can watch shows given by them. You will have a lot of fun there.
Yours,
Lily
note范文篇三
Note writing基本格式
Note writing基本格式
1)Date:便条日期 2)Salutation:称呼 3)Body:正文
4) Complementary Close 结语 5)Signature:署名 1. Date: month + date
January 1 (or: January 1st), or: Jan. 1 February 2 (or: February 2nd), or: Feb. 2 March 3 (or: March 3rd), no short form April 4 (or: April 4th), no short form May 5 (or: May 5th), no short form June 6 (or: June 6th), no short form July 7 (or: July 7th), no short form August 8 (or: August 8th), or Aug.8
September 9 (or: September 9th), or: Sept.9 or: Sep. 9 October 10 (or: October 10th), or: Oct. 10
模板:
November 11 (or: November 11th), or: Nov. 11 December 12 (or: December 12th), or Dec. 12 2. Salutation: Dear Mr. ---, Dear Miss ---, Dear Mrs. ---, Dear Ms. ---, Dear Prof. ---, Dear Doc. ---,
Dear Sir or Madam, Dear David,
3. Body (50-60 words): As required. 4. Complementary Close: Yours, Sincerely (yours), Your student,
5. Signature: As suggested.
June 22, 2007
Dear Michael,
I am delighted to learn that you are organizing a weekend excursion for the class. I’m very interested in such outdoor activities. I’II join the trip. But I don’t know some specific details. What should we bring? Where shall we meet?
Would you please be so kind as to let me know more about it? I am looking forward to your answer
Sincerely yours, Wayne
Write MEMO基本格式{note范文}.
Keep it short and to the point
TO: (readers' names and job titles) FROM: (your name and job title) DATE:(Nov. 19, 2010)
SUBJECT(RE): (specifically what the memo is about)
BODY
Signature
note范文篇四
note 格式再强调
注意:
格式组成部分:
- 日期书写格式
- 称呼语书写格式
- 正文
- 结尾称呼语
- 签名
各组成部分具体格式:
1. 日期书写格式,先统一规定如下:
已今天日期为例:
April 13th,2011(注意日期若为123,形式分别为1st,2nd ,3rd),置于第一行的右上角
请不要再用其他任何形式,以免出错
2. 称呼语书写格式:
四种情况:
另起一行,左上角
情况一:题目中提到具体便条写给谁,如Jane(若没有提到具体对象,也可用任意名字)
Dear Jane,(注意标点也可用冒号“:”)
情况二: 题目中提到头衔,如给Dr. Pierce写便条
Dear Dr.(注意此处的符号“.”不能掉) Pierce,(注意标点也可用冒号“:”)
情况三:题目中提到给写给Mr. / Mrs. Wang
Dear Mr. Wang, / Dear Mrs. Wang, (注意Mr和Mrs后都要打符号“.”,以及称呼语结束时后面的“,”或“:”)
情况四:给某组织写便条,请统一使用下面形式
To the one who is concerned,
3. 正文请另起一行,空两格开始写,保证字数在50到80之间。多于80字少于50字均会被无情扣分。
4. 结束称呼语,请在正文下一行右下角写,只有以下三种情况,请注意标点符号及第一个单词首字母大写。 情况一:
写给非常亲密的朋友或家人,落款应为:
Yours,
情况二:
写给一般关系的朋友或同事,落款应为:
Yours sincerely,{note范文}.
情况三:
写给老板或老师或教授或社会地位高的人,落款应为:
Sincerely yours,
5. 另起一行,右下角一定要签名(注意:题目若作出要求,一定要按题目要求留下题目中写便条人的名字;若没特殊要求,请留下你的英文名。若是写给老板或老师或教授或社会地位高的人,请留下你的中文全名,姓在前名在后,姓和名首字母都请大写。)
note范文篇五
英文便条范文12篇
英语便条范文
Note 1: Sending invitation
Aug. 11, 2011
Dear Alice,
The Russian National Ballet Troupe
will give a performance in the Beijing Grand Theater tomorrow evening. watch it. seven
o’clock sharp. the theater entrance.
Yours truly,
Lily
Note 2: Accepting/declining an invitation
Sample 1: Accepting an invitation
April 18, 2009
Dear Amelia,
to the dinner party, I would like to come. I
will go to the place right after I finish my work at about 5 p.m. this evening. I
shall be very happy
Yours sincerely,
Fiona
Sample 2: Declining an invitation
April 22nd, 2007
Dear Jimmy,
join the university’s swimming club.
I've already joined a basketball club. You know I like playing basketball very much. I do not have enough time to take part in two sports.
Yours faithfully,
Mike
Note 3: Consolation and condolence
Aug. 11, 2011
Dear Tom,
now, for I had been through the same experience before.
I just want you not to be so depressed and not to lose your will call on you as soon as possible.
Yours faithfully,
Lily
Note 4: Apology
April 18,2009
Dear Fiona,
the abrupt way I departed just after was so excited when I learned I had passed the exams with high marks that I couldn’t wait to get home and tell my parents.
Yours truthfully, Amelia
Note 5: Asking for leave
Aug. 22, 2012
Dear Miss Li,
My father now in the hospital is badly ill. I have to go to see him and take care of him for a few days. You know I’m the only child in my family. Yours respectfully, Vivian
Note 6: Complaining/ complaint
April 20,2008
Dear Sir or Madam,
I went to your store to buy a Tissot watch last Sunday. When I said that the price was high, the No. 5 saleswoman replied in a sarcastic tone, “you can go ahead and buy a cheap fake from other stores.” I hope
Yours respectfully, John Smith
Note 7: Congratulation
April 18,2009
Dear Shirley,
you've been admitted by Shanghai International Studies University as a graduate. This has meant years of your hard work, and you can really be proud of it. Your success is really an encouragement to me and I wish we can meet there next year, Best wishes to you.
Yours truly, Amelia
Note 8: Application
April 18, 2009
Dear Sirs,
English during the summer vacation. I wish to be considered as an applicant for the position. Enclosed is my resume.
Respectfully yours,
Amelia
Note 9: Lost and Found
April 18, 2009
Dear Gentleman,
I took the last bus No. 406 home last night and got off at Zhejiang University. After arriving home, I noticed that I had left my bag on the bus. It is a black bag made of leather. (Inside are some books, a bunch of keys and my
Yours, Amelia
Sample 2:
April
2009
Dear Gentleman,
white leather bag on the school playground yesterday afternoon, in which there are some books, a pencil box and a watch. The phone number is 4729646.
Yours, Amelia 18, Note 10: Inquiring
April 18, 2009
Dear Michael,
I am very interested in the weekend excursion you’re organizing and I’d like to join you. Can you call me and let me know when and where we are going to meet what I shall bring? I can be reached at 68895687. I am looking forward to your reply.
note范文篇六
note
调用的服务定义zxItemPickBox
病人MPI服务
publicIPatientMPIServicePatientMPIService
{
get
{
returnUnityContainerHelper.GetObject<IPatientMPIService>();
}{note范文}.
}
性别
///</summary>
///<param name="sender"></param>
///<param name="e"></param>
publicDataTable _Sex = null;
publicDataTableSexKinds
{
get
{
if (_Sex == null)
_Sex = PatientMPIService.GetBasicDatas(CommonItemKind.Sex); return _Sex;
}
}
///<summary>{note范文}.
///性别
///</summary>
privatevoid zxItemPickBox2_sexKind()
{
zxItemPickBox2.DataSourceKind = ItemPickDataSourceKind.Custom;
ItemPickColStyleCollectionidentityKindStyles = newItemPickColStyleCollection(); ItemPickColStylestyl = newItemPickColStyle("Id", "序号", 80);
identityKindStyles.Add(styl);
ItemPickColStyle style = newItemPickColStyle("Name", "名称", 130);
identityKindStyles.Add(style);
CustomBaseDataInfoidentityTableBook = newCustomBaseDataInfo("Id", "Name", identityKindStyles); identityTableBook.RetrieveDataSource = newRetrieveItemPickCustomDataSource(() => { returnSexKinds; }); zxItemPickBox2.CustomDataSourceInfo = identityTableBook;
zxItemPickBox2.Properties.MaxSelectCount = 1;
}
privatevoid gridView1_CustomUnboundColumnData(object sender, CustomColumnDataEventArgs e) {
if (e.IsGetData)
{
if (e.Column.FieldName == "UnboundMoney")
{
// decimal money =0 ;
if (gridView1.GetRow(e.RowHandle) isRegister)
{
Registerreg = (Register)gridView1.GetRow(e.RowHandle);
intxh = reg.Xh;
var je = GetAllFeeDatass.Where(a =>a.RegXh == xh).Sum(a =>a.Money);
if (je.HasValue)
{
e.Value = je.Value.ToString("f2");
};
}
//e.Value = GetAllFeeDatass.Where(a =>a.Money == xh).Sum(a =>a.Money).ToString(); }
}
if (e.IsSetData)
{
}
}
TreeListControl点击
publicTreeListControl()
{
InitializeComponent();
zxTreeList1.FocusedNodeChanged += newDevExpress.XtraTreeList.FocusedNodeChangedEventHandler(zxTreeList1_FocusedNodeChanged);
zxTreeList1.CustomDrawNodeCell += newCustomDrawNodeCellEventHandler(zxTreeList1_CustomDrawNodeCell);
}
void zxTreeList1_CustomDrawNodeCell(object sender, CustomDrawNodeCellEventArgs e)
{
if (e.Column.FieldName == "SexId")
{
if (e.CellValue.ToString() == "0")
e.CellText = "未知";
if (e.CellValue.ToString() == "1")
e.CellText = "男";
else
e.CellText = "女";
}
}
TestDemopanel_Tree.Controls
publicpartialclassFormTestDemo : FormUIBase,IPlugin
{
publicFormTestDemo()
{
InitializeComponent();
panel_Tree.Controls.Add(treeListControl1);
treeListControl1.Dock = DockStyle.Fill;
panel_Grid.Controls.Add(gridViewControl);
gridViewControl.Dock = DockStyle.Fill;
treeListControl1.FocusedNodeChanged +=
newEventHandler(treeListControl1_FocusedNodeChanged);
}
TreeListControl treeListControl1 = newTreeListControl();
GridViewControlgridViewControl = newGridViewControl();
void treeListControl1_FocusedNodeChanged(object sender, EventArgs e)
{
Patientpatient = treeListControl1.patient;
if (patient == null)
{
return;
}
gridViewControl.PatId = patient.Id;
gridViewControl.InitData();
// MessageBox.Show(patient.Id + "" + patient.GivenName);
}
FastReporter
[Switch([data0.RecFlag.Value]==0,'z',[data0.RecFlag.Value]==1,'j')]
微软DLL引用位置
C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
privatevoid gridView2_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)
{
if ((gridView2.GetRowCellValue(e.RowHandle, e.Column)).Equals("r1c1"))
{
e.Appearance.BackColor = Color.Yellow;
e.Appearance.Font = newFont ("黑体",11);
}
}
// bar1.StandaloneBarDockControl.Location = new Point(0, 0);
// bar1.StandaloneBarDockControl.Size = new System.Drawing.Size(0, 0);
ZXLabel lab = newZXLabel();
lab.TabIndex = m_Labels.Count + 1;
lab.Appearance.Font = newSystem.Drawing.Font("微软¨¨雅黑", 12F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(134)));
m_Labels.Add(lab);
ZXSpinEdit txt = newZXSpinEdit();
txt.TabIndex = m_Spins.Count + 1;
txt.ExtraSettings.ShowAllUnderline = true;
txt.ExtraSettings.ShowUnderline = true;
txt.ExtraSettings.UnderlineColor = Color.Blue;
txt.Width = 100;
txt.Properties.MinValue = IsAllowMinus==true?decimal.MinValue:0;
txt.Properties.MaxValue = decimal.MaxValue;
txt.Properties.EditMask= "d";
txt.Font = newSystem.Drawing.Font("微软“”雅黑", 12F, System.Drawing.FontStyle.Regular,
System.Drawing.GraphicsUnit.Point, ((byte)(134)));
txt.KeyPress += newKeyPressEventHandler(txt_KeyPress);
txt.Enter += newEventHandler(txt_Enter);
txt.LostFocus += newEventHandler(txt_LostFocus);
m_Spins.Add(txt);
按键的判断
private void frmMain_KeyDown(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.F1:
btnOK_Click(this, EventArgs.Empty);
break;
case Keys.F2:
btnSave_Click(this, EventArgs.Empty);
break;
}
// 组合键
if (e.KeyCode == Keys.F1 &&e.Modifiers == Keys.Control) //Ctrl+F1
{
btnShouYi_Click(this, EventArgs.Empty);
}
if((int)e.Modifiers == ((int)Keys.Control + (int)Keys.Alt) &&e.KeyCode == Keys.D0) //Ctrl + Alt + 数字0 {
MessageBox.Show("按下了Control + Alt + 0");
}
}
Datetimepicker
date_StartDate.Properties.ReadOnly = false;
date_EndDate.Properties.ReadOnly = false;
推荐内容