Showing posts with label classes. Show all posts
Showing posts with label classes. Show all posts

Saturday, March 31, 2012

Strande inheritance problem

I have two classes, one called frame1 and the other frame2.

In frame2 i import the frame1, and i also create an instance of it.

The problem is that in class frame1 i have an control declared:

Public WithEvents labelNameLogin As System.Web.UI.WebControls.Label

And when a try for eg, access to it a get an error:

If vObjFrameBoard.labelNameLogin.Text = "" Then -- error

'some code

Exit Sub

error:Object reference not set to an instance of an object

But if a try to access to an of its variables, declared as public a have no problem.
So where is the problem.

Thanks in advanceDoesnt anybody know how to solve this. I really need your help.
Thx
Thx for your help anyway.

Here is the soluction for the problem i was having.

Public WithEvents TextBox1 As System.Web.UI.WebControls.TextBox = New System.Web.UI.WebControls.TextBox

i tought the instance was done automatically, like when building an stand alone application.

Monday, March 26, 2012

Strange Error

Hi Experts,
I have Visual Studio 2003 Installed in my Windows 2003 Sever. However, I
have problems in creating new Projects, Classes, Forms etc. When I try to
create New projects, I get an error that some wizard is missing and I get
an empty project opened. There are no forms, web.config, global.asax nor any
references set. I need to add all manually.
I am still getting the error, when I try to add new forms/ classes/User
controls to any of the projects.
The following error I got when I tried to add a new class file.
Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003
VC#\CSharpProjectItems\WebProjectItems\..\CSharpAddClassWiz.vsz' wizard.
Can anyone tell me how to solve this problem.
Thanking in advance
Regards
GaneshHello Ganesh,
Try this:
regsvr32.exe "c:\program files\Microsoft Visual Studio .NET 2003\Vc7\vcpacka
ges\csproj.dll"
Matt Berther
http://www.mattberther.com

> Hi Experts,
> I have Visual Studio 2003 Installed in my Windows 2003 Sever. However,
> I have problems in creating new Projects, Classes, Forms etc. When I
> try to create New projects, I get an error that some wizard is
> missing and I get an empty project opened. There are no forms,
> web.config, global.asax nor any references set. I need to add all
> manually.
> I am still getting the error, when I try to add new forms/
> classes/User controls to any of the projects.
> The following error I got when I tried to add a new class file.
> Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003
> VC#\CSharpProjectItems\WebProjectItems\..\CSharpAddClassWiz.vsz'
> wizard.
> Can anyone tell me how to solve this problem.
> Thanking in advance
> Regards
> Ganesh
Thanx Matt for your reply. It was really helpful.
Regards
Ganesh
"Matt Berther" <mberther@.hotmail.com> wrote in message
news:6846946632388960337567249@.news.microsoft.com...
> Hello Ganesh,
> Try this:
> regsvr32.exe "c:\program files\Microsoft Visual Studio .NET
2003\Vc7\vcpackages\csproj.dll"
> --
> Matt Berther
> http://www.mattberther.com
>
>

Strange Error

Hi Experts,

I have Visual Studio 2003 Installed in my Windows 2003 Sever. However, I
have problems in creating new Projects, Classes, Forms etc. When I try to
create New projects, I get an error that some wizard is missing and I get
an empty project opened. There are no forms, web.config, global.asax nor any
references set. I need to add all manually.

I am still getting the error, when I try to add new forms/ classes/User
controls to any of the projects.

The following error I got when I tried to add a new class file.

Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003
VC#\CSharpProjectItems\WebProjectItems\..\CSharpAd dClassWiz.vsz' wizard.

Can anyone tell me how to solve this problem.

Thanking in advance
Regards
GaneshHello Ganesh,

Try this:

regsvr32.exe "c:\program files\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\csproj.dll"

--
Matt Berther
http://www.mattberther.com

> Hi Experts,
> I have Visual Studio 2003 Installed in my Windows 2003 Sever. However,
> I have problems in creating new Projects, Classes, Forms etc. When I
> try to create New projects, I get an error that some wizard is
> missing and I get an empty project opened. There are no forms,
> web.config, global.asax nor any references set. I need to add all
> manually.
> I am still getting the error, when I try to add new forms/
> classes/User controls to any of the projects.
> The following error I got when I tried to add a new class file.
> Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003
> VC#\CSharpProjectItems\WebProjectItems\..\CSharpAd dClassWiz.vsz'
> wizard.
> Can anyone tell me how to solve this problem.
> Thanking in advance
> Regards
> Ganesh
Thanx Matt for your reply. It was really helpful.

Regards
Ganesh

"Matt Berther" <mberther@.hotmail.com> wrote in message
news:6846946632388960337567249@.news.microsoft.com. ..
> Hello Ganesh,
> Try this:
> regsvr32.exe "c:\program files\Microsoft Visual Studio .NET
2003\Vc7\vcpackages\csproj.dll"
> --
> Matt Berther
> http://www.mattberther.com
> > Hi Experts,
> > I have Visual Studio 2003 Installed in my Windows 2003 Sever. However,
> > I have problems in creating new Projects, Classes, Forms etc. When I
> > try to create New projects, I get an error that some wizard is
> > missing and I get an empty project opened. There are no forms,
> > web.config, global.asax nor any references set. I need to add all
> > manually.
> > I am still getting the error, when I try to add new forms/
> > classes/User controls to any of the projects.
> > The following error I got when I tried to add a new class file.
> > Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003
> > VC#\CSharpProjectItems\WebProjectItems\..\CSharpAd dClassWiz.vsz'
> > wizard.
> > Can anyone tell me how to solve this problem.
> > Thanking in advance
> > Regards
> > Ganesh