How to set tab order in dialog box on revit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
/// <summary>
/// Method form Making the form as modeless dialog
/// </summary>
/// <param name="p"></param>
public static void CreateModelessDialog(Presentation.GS_Export p)
{
try
{
IntPtr h = new IntPtr();
if (null == _hWndRevit)
{
Process[] processes = Process.GetProcessesByName("Revit");
if (0 < processes.Length)
{
h = processes[0].MainWindowHandle;
_hWndRevit = new WindowHandle(h);
}
}
SetParent(p.Handle, h);
p.Show(_hWndRevit);
//p.ShowDialog(_hWndRevit);
//Application.Run(p);
Flag = false;
}
catch (Exception Ex)
{
}
}
im not able to use tab key in dialog box .if i use this code. how to set tab order for modeless dialoge box in revit ? can anyone hv sample code.