Since the code I gave you uses the Height of the object, you need to set the height before executing that line.
this.Height = 22; //this done first
this.Width = Screen.PrimaryScreen.Bounds.Width; //moved here to keep height and width in the same code locations
this.Location = new Point(0, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
I use tx textcontrol to transform a word document in pdf.
but if my document is to big I can't see the all pdf,I can see only a part of it.
Because of this I use textcontrol function: LoadSaveAttribute where I need the width,Height,LeftMargin of the document.
You can use the office tools to control Word within your app, that may help. Otherwise, you are asking a lot of questions here about a control that, in all probability, most of us have not used. I don't want to discourage you from posting here in general, but these questions will probably get better answers if you ask them in forums for the product you're using.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I won't do it line by line, but I will explain what recursion does and hopefully that will help you. Basically, recursion refers to a method calling itself until some condition is met - (if there is no condition to meet, this is referred to as infinite recursion and is generally seen as a bad thing).
The code above is stepping into the displayRef method repeatedly, and is subtracting a character from the string that it passes into itself on each recursion. The terminating condition is the string being empty. When the string is empty, it exits from the method (the return statement) and unwinds itself back up the stack.
As you can see, the unwind simply writes the first character of the substring to the console.