Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Error with Windows.forms.form

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 09-29-2007   #1 (permalink)
Kuma
Guest


 

Error with Windows.forms.form

I'm trying to work with the windows.forms class but keep getting this
error. I've double checked my .net 2.0 installation and installed .net
3.0 my work computer has the exact same installation and it works.
Anyone know why i get this error?

[1] » $blah = new-object [System.windows.forms.form]
New-Object : Cannot find type [[System.windows.forms.form]]: make sure
the assembly containing this type is loaded.
At line:1 char:19
+ $blah = new-object <<<< [System.windows.forms.form]

Thanks for the help.


My System SpecsSystem Spec
Old 09-29-2007   #2 (permalink)
Kuma
Guest


 

Re: Error with Windows.forms.form

On Sep 29, 11:02 pm, Kuma <kumasa...@xxxxxx> wrote:
Quote:

> I'm trying to work with the windows.forms class but keep getting this
> error. I've double checked my .net 2.0 installation and installed .net
> 3.0 my work computer has the exact same installation and it works.
> Anyone know why i get this error?
>
> [1] » $blah = new-object [System.windows.forms.form]
> New-Object : Cannot find type [[System.windows.forms.form]]: make sure
> the assembly containing this type is loaded.
> At line:1 char:19
> + $blah = new-object <<<< [System.windows.forms.form]
>
> Thanks for the help.
Nevermind, I finally got it. I had to add [void]
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
to my profile.
Sorry for the premature post.

My System SpecsSystem Spec
Old 09-29-2007   #3 (permalink)
RichS
Guest


 

RE: Error with Windows.forms.form

try

$f = New-Object -Type System.Windows.Forms.Form
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Kuma" wrote:
Quote:

> I'm trying to work with the windows.forms class but keep getting this
> error. I've double checked my .net 2.0 installation and installed .net
> 3.0 my work computer has the exact same installation and it works.
> Anyone know why i get this error?
>
> [1] » $blah = new-object [System.windows.forms.form]
> New-Object : Cannot find type [[System.windows.forms.form]]: make sure
> the assembly containing this type is loaded.
> At line:1 char:19
> + $blah = new-object <<<< [System.windows.forms.form]
>
> Thanks for the help.
>
>
My System SpecsSystem Spec
Old 09-29-2007   #4 (permalink)
RichS
Guest


 

Re: Error with Windows.forms.form

Thats odd because that assembly is loaded automatically on my machine
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Kuma" wrote:
Quote:

> On Sep 29, 11:02 pm, Kuma <kumasa...@xxxxxx> wrote:
Quote:

> > I'm trying to work with the windows.forms class but keep getting this
> > error. I've double checked my .net 2.0 installation and installed .net
> > 3.0 my work computer has the exact same installation and it works.
> > Anyone know why i get this error?
> >
> > [1] » $blah = new-object [System.windows.forms.form]
> > New-Object : Cannot find type [[System.windows.forms.form]]: make sure
> > the assembly containing this type is loaded.
> > At line:1 char:19
> > + $blah = new-object <<<< [System.windows.forms.form]
> >
> > Thanks for the help.
>
> Nevermind, I finally got it. I had to add [void]
> [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
> to my profile.
> Sorry for the premature post.
>
>
My System SpecsSystem Spec
Old 09-29-2007   #5 (permalink)
Brandon Shell
Guest


 

Re: Error with Windows.forms.form

Its not default.. do you have PSCX installed? Maybe its in your profile? MoW
has it in some scripts as well.

"RichS" <RichS@xxxxxx> wrote in message
news:CDEEB382-16CC-45F0-96D1-B47F0717756F@xxxxxx
Quote:

> Thats odd because that assembly is loaded automatically on my machine
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "Kuma" wrote:
>
Quote:

>> On Sep 29, 11:02 pm, Kuma <kumasa...@xxxxxx> wrote:
Quote:

>> > I'm trying to work with the windows.forms class but keep getting this
>> > error. I've double checked my .net 2.0 installation and installed .net
>> > 3.0 my work computer has the exact same installation and it works.
>> > Anyone know why i get this error?
>> >
>> > [1] » $blah = new-object [System.windows.forms.form]
>> > New-Object : Cannot find type [[System.windows.forms.form]]: make sure
>> > the assembly containing this type is loaded.
>> > At line:1 char:19
>> > + $blah = new-object <<<< [System.windows.forms.form]
>> >
>> > Thanks for the help.
>>
>> Nevermind, I finally got it. I had to add [void]
>> [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
>> to my profile.
>> Sorry for the premature post.
>>
>>
My System SpecsSystem Spec
Old 09-29-2007   #6 (permalink)
RichS
Guest


 

Re: Error with Windows.forms.form

Its definitely NOT in my profile. I do have PSCX loaded and PowerGadgets.
Wouldn't be surprised if the latter loaded it


--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Brandon Shell" wrote:
Quote:

> Its not default.. do you have PSCX installed? Maybe its in your profile? MoW
> has it in some scripts as well.
>
> "RichS" <RichS@xxxxxx> wrote in message
> news:CDEEB382-16CC-45F0-96D1-B47F0717756F@xxxxxx
Quote:

> > Thats odd because that assembly is loaded automatically on my machine
> > --
> > Richard Siddaway
> > Please note that all scripts are supplied "as is" and with no warranty
> > Blog: http://richardsiddaway.spaces.live.com/
> > PowerShell User Group: http://www.get-psuguk.org.uk
> >
> >
> > "Kuma" wrote:
> >
Quote:

> >> On Sep 29, 11:02 pm, Kuma <kumasa...@xxxxxx> wrote:
> >> > I'm trying to work with the windows.forms class but keep getting this
> >> > error. I've double checked my .net 2.0 installation and installed .net
> >> > 3.0 my work computer has the exact same installation and it works.
> >> > Anyone know why i get this error?
> >> >
> >> > [1] » $blah = new-object [System.windows.forms.form]
> >> > New-Object : Cannot find type [[System.windows.forms.form]]: make sure
> >> > the assembly containing this type is loaded.
> >> > At line:1 char:19
> >> > + $blah = new-object <<<< [System.windows.forms.form]
> >> >
> >> > Thanks for the help.
> >>
> >> Nevermind, I finally got it. I had to add [void]
> >> [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
> >> to my profile.
> >> Sorry for the premature post.
> >>
> >>
>
>
My System SpecsSystem Spec
Old 09-30-2007   #7 (permalink)
RichS
Guest


 

Re: Error with Windows.forms.form

Its loaded by Powergadgets and Powerpad

see

http://richardsiddaway.spaces.live.c...3E96!742.entry
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"RichS" wrote:
Quote:

> Its definitely NOT in my profile. I do have PSCX loaded and PowerGadgets.
> Wouldn't be surprised if the latter loaded it
>
>
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "Brandon Shell" wrote:
>
Quote:

> > Its not default.. do you have PSCX installed? Maybe its in your profile? MoW
> > has it in some scripts as well.
> >
> > "RichS" <RichS@xxxxxx> wrote in message
> > news:CDEEB382-16CC-45F0-96D1-B47F0717756F@xxxxxx
Quote:

> > > Thats odd because that assembly is loaded automatically on my machine
> > > --
> > > Richard Siddaway
> > > Please note that all scripts are supplied "as is" and with no warranty
> > > Blog: http://richardsiddaway.spaces.live.com/
> > > PowerShell User Group: http://www.get-psuguk.org.uk
> > >
> > >
> > > "Kuma" wrote:
> > >
> > >> On Sep 29, 11:02 pm, Kuma <kumasa...@xxxxxx> wrote:
> > >> > I'm trying to work with the windows.forms class but keep getting this
> > >> > error. I've double checked my .net 2.0 installation and installed .net
> > >> > 3.0 my work computer has the exact same installation and it works.
> > >> > Anyone know why i get this error?
> > >> >
> > >> > [1] » $blah = new-object [System.windows.forms.form]
> > >> > New-Object : Cannot find type [[System.windows.forms.form]]: make sure
> > >> > the assembly containing this type is loaded.
> > >> > At line:1 char:19
> > >> > + $blah = new-object <<<< [System.windows.forms.form]
> > >> >
> > >> > Thanks for the help.
> > >>
> > >> Nevermind, I finally got it. I had to add [void]
> > >> [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms")
> > >> to my profile.
> > >> Sorry for the premature post.
> > >>
> > >>
> >
> >
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get error Form after e-mail has come in mpkc57 Vista mail 2 06-28-2008 09:32 PM
System.Windows.Forms.Form William Holmes PowerShell 4 06-19-2008 10:02 AM
simulate continuous forms & subforms in a windows forms application BillE .NET General 0 05-07-2008 03:20 PM
Data Fetching and system.windows.forms.form & .datagridview fixitchris PowerShell 2 11-13-2006 08:54 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008