Hi All,

I was reading msdn documentation pertaining to macros. It says that VS
macros currently do not support win forms. Actually I need to write a macro
which will call a COM component and pass it two parameters. I need to use
this macro in a winform application. Is above statement apply in this case?
I mean could this be done ?
FYI I am using .Net framework 1.1 with visual studio .Net 2003 on Windows XP
professional OS.

Regards,
Shahzad Atta.

Re: Running Macro in windows form application by Carlos

Carlos
Wed Jan 26 05:01:23 CST 2005

VS.NET macros, using Windows Forms (which can´t directly) or not, are not
intended to be called from the applications, only from the IDE to assist
your development... a different thing is that your macro can show forms from
an an assembly which provides them to the macro.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com


"Shahzad Atta" <shahzad@nxvt.com> escribió en el mensaje
news:OPUAEc4AFHA.3616@TK2MSFTNGP11.phx.gbl...
> Hi All,
>
> I was reading msdn documentation pertaining to macros. It says that VS
> macros currently do not support win forms. Actually I need to write a
> macro
> which will call a COM component and pass it two parameters. I need to use
> this macro in a winform application. Is above statement apply in this
> case?
> I mean could this be done ?
> FYI I am using .Net framework 1.1 with visual studio .Net 2003 on Windows
> XP
> professional OS.
>
> Regards,
> Shahzad Atta.
>
>



Re: Running Macro in windows form application by Shahzad

Shahzad
Wed Jan 26 05:30:23 CST 2005

Thanks for replying.

I am sorry. I think I didn't make myself clear on first hand. Actually what
I need is a small utility macro which should work from IDE (Let say on a
keyboard short cut) . This macro should take two input parameters and then
just call another com object and pass it the parameter provided by the user.
The com object will do some manipulation with some source files (.cs files
in winform application) and will also update the database behind the
application. So this utility macro is needed for development purposes to
automate a routine task. I hope I made myself clear this time.

Regards,
Shahzad Atta


"Carlos J. Quintero [.NET MVP]" <carlosq@NOSPAMsogecable.com> wrote in
message news:%23N8%23gZ5AFHA.936@TK2MSFTNGP12.phx.gbl...
> VS.NET macros, using Windows Forms (which can´t directly) or not, are not
> intended to be called from the applications, only from the IDE to assist
> your development... a different thing is that your macro can show forms
from
> an an assembly which provides them to the macro.
>
> --
>
> Carlos J. Quintero
>
> MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
> You can code, design and document much faster.
> http://www.mztools.com
>
>
> "Shahzad Atta" <shahzad@nxvt.com> escribió en el mensaje
> news:OPUAEc4AFHA.3616@TK2MSFTNGP11.phx.gbl...
> > Hi All,
> >
> > I was reading msdn documentation pertaining to macros. It says that VS
> > macros currently do not support win forms. Actually I need to write a
> > macro
> > which will call a COM component and pass it two parameters. I need to
use
> > this macro in a winform application. Is above statement apply in this
> > case?
> > I mean could this be done ?
> > FYI I am using .Net framework 1.1 with visual studio .Net 2003 on
Windows
> > XP
> > professional OS.
> >
> > Regards,
> > Shahzad Atta.
> >
> >
>
>



Re: Running Macro in windows form application by Carlos

Carlos
Thu Jan 27 08:21:57 CST 2005

Well, then there is no problem. Your macro can manipulate .cs files
belonging to Windows Form applications or whatever.

The docs refer to that your macro can not show a form to the user directly
(to enter data, for example), but you can use a wrapper assembly which shows
the form.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com


"Shahzad Atta" <shahzad@nxvt.com> escribió en el mensaje
news:OX8h2r5AFHA.3376@TK2MSFTNGP12.phx.gbl...
> Thanks for replying.
>
> I am sorry. I think I didn't make myself clear on first hand. Actually
> what
> I need is a small utility macro which should work from IDE (Let say on a
> keyboard short cut) . This macro should take two input parameters and then
> just call another com object and pass it the parameter provided by the
> user.
> The com object will do some manipulation with some source files (.cs files
> in winform application) and will also update the database behind the
> application. So this utility macro is needed for development purposes to
> automate a routine task. I hope I made myself clear this time.
>
> Regards,
> Shahzad Atta
>