Maximize

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi again,

i have a form that works and does everything that it should. it just doesnt
open maximized. Microsoft Word was surely written in C# and they managed it!
how does one make the form open maximized?

help me if you can. please!
 
Try changing the WindowState property of your form to Maximized to have it
start up that way.

Also, Word, like most of Office predates C# and .NET and are actually
written in ‘old school’ C++ if I recall correctly.

Brendan
 
hi,

thanks for the answer.

anyway, wouldnt word 2003 be written in C# and perhaps a little Visual basic
(if it is possible to combine 2 languages)? i reckon it would but i am quite
new to programming so i don't know as much as you do.

cheers
 
out of curiosity, what make you think that Word was written in c# ?
 
When Microsoft (like most companies) goes to write a new version of a piece
of software, they rarely throw out all of the old code and build the new
product from scratch. If they were doing so, then yes, they could easily
build Word in C#, VB.NET or any other language for that matter, but they
don’t throw it all out, and because of all of the legacy code that remains it
becomes near impossible to rewrite it in a different language (because of the
costs involved) and they are forced to remain within it for the most part and
stick to the original language. It is still possible to use other languages
to build add-ons which often happens, but for the main app, it’s C++ and will
be for quite a while.

In the .NET world it is possible to combine languages to a certain extent.
You can build a class in C# and compile it to a DLL that is used by another
class you wrote in VB.NET and that is compiled to a 2nd DLL. A little later,
you might decide to use both in a Managed C++ application. All is possible
because all .NET languages compile to the Microsoft Intermediate Language
(aka MSIL), and at the MSIL level, all languages are equal and can share code
freely with each other, when using older languages such as C++ and VB, it is
possible, just not as easy.

Brendan
 
Alvo said:
hi,

thanks for the answer.

anyway, wouldnt word 2003 be written in C# and perhaps a little Visual basic
(if it is possible to combine 2 languages)? i reckon it would but i am quite
new to programming so i don't know as much as you do.

It might have been if Microsoft did a ground-up rewrite every time they
release a new version of Office, but as far as I know, they don't. That
would be insane.

You can confirm that Winword.exe isn't a .NET executable by trying to
open it with Ildasm.
 
hi,

well,

1. i've heard that it is
2. Why not? microsoft would use their own language to write their own software
3. C# is supposed to be C++ made easy
4. What can you do with C++ that you can't with C# (except for, maybe,
operating systems and program for Mac)?

just out of interest, can you create the IntelliSense snippets with C#? And
was Internet Explorer 6.0 written in C#? i understood that it was from an
article in Microsoft.com but it wasn't too clear.
 
Hi Alvo,

beside of what is that on this thread over Word and C#:
I did some word automation in C# for Word 2003.
It all is done with COM-Interop and all the classes are very COM-style.
If Word was written in .NET it surely had a .NET-API for automation.
 
Back
Top