Message 1 of 2
How to close the form selence after click a button to select something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all:
I have a Form and a button on the Form.
Now i want to click the button and select something is the drawing and do something. and close the form auto.
Now the step is:
1.click button
2.autohide form
3.select something and do something
4.form show again(about 0.1 second) and form close.
But i want realize:
1.click button
2.close form
3.select something and do something
4.do not reshow the form again
can any one help me?
the following is my key code
private void btnTranslate_Click(object sender, EventArgs e) { Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor; using (EditorUserInteraction UI = ed.StartUserInteraction(this)) { //select something and do something translate.SelectText(); } this.Close(); }