Access form with handle

  • Thread starter Thread starter Fred B. Nell
  • Start date Start date
F

Fred B. Nell

How can I access form with handle?

SetFormCaption(System.IntPtr FormHandle, string FormCaption)
{
//set form caption here
}
 
You mean for setting the window caption? If so, you may want to call
SetWindowText() API through PInvoke.

How can I access form with handle?

SetFormCaption(System.IntPtr FormHandle, string FormCaption)
{
//set form caption here
}
 
Hi Shiva,
My purpose is not set only caption. I want access form with handle and set
their some properties. (like caption, size etc.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top