Inputbox Centered c#

k005
Advisor
Advisor

Inputbox Centered c#

k005
Advisor
Advisor

Hi All,

 

This is how I created the Method. There is no source when using it on Form1. in the center..

But it works when I use it on Mycommands.cs. But it appears on the right and above the autoCAD screen.

How can I center it on the Screen?

 

 

  public string GirisKutusu(string mesajYaz, string baslik)
        {
            int x = Left + (this.Width / 2) - 200;
            int y = Top + (this.Height / 2) - 100;
           
            string deger1=Interaction.InputBox(mesajYaz, baslik, "25", x, y);
            return deger1;
        }
0 Likes
Reply
Accepted solutions (1)
548 Views
1 Reply
Reply (1)

k005
Advisor
Advisor
Accepted solution

 

 

 

******* THIS ISSUE IS SOLVED. ******

0 Likes