Running Macro in windows form application

  • Thread starter Thread starter Shahzad Atta
  • Start date Start date
S

Shahzad Atta

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.
 
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
 
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
 
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
 
Back
Top