Message 1 of 17
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi everyone,
While I'm Click Button from my FORM, Single click on button not working but the double click does the work.
Please help me, How to resolve and let me know why for my knowledge.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.ApplicationServices;
using System.Diagnostics;
namespace RevitAddin3
{
public partial class Form1 : System.Windows.Forms.Form
{
private UIApplication uiapp;
private UIDocument uidoc;
private Autodesk.Revit.ApplicationServices.Application app;
private Document doc;
public String rnumber;
public Form1(ExternalCommandData commandData)
{
InitializeComponent();
uiapp = commandData.Application;
uidoc = uiapp.ActiveUIDocument;
app = uiapp.Application;
doc = uidoc.Document;
}
private void label1_Click(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void searchButton_Click(object sender, EventArgs e)
{
rnumber = roomNameBox.Text;
searchButton.DialogResult = DialogResult.OK;
Debug.WriteLine("Search Clicked");
}
private void cancelButton_Click(object sender, EventArgs e)
{
cancelButton.DialogResult = DialogResult.Cancel;
Debug.WriteLine("Cancel Clicked");
}
}
}
Solved! Go to Solution.