error throwing

M

Maileen

Hi,

I did a VB.NET application but i don't want to deliver the .NET
framework to each of my users.

Instead of this, i just would like to do a big try and catch and in case
of an error is raised due to not presence of .NET Framework, i would
like to catch it and display a simple message.

Is it possible to do this ?
if yes, what is the error message to catch ?
thanks a lot,
Maileen
 
H

Herfried K. Wagner [MVP]

Maileen said:
I did a VB.NET application but i don't want to deliver the .NET
framework to each of my users.

The .NET Framework must be installed in order to run applications developed
in VB.NET.
Instead of this, i just would like to do a big try and catch and in case
of an error is raised due to not presence of .NET Framework, i would
like to catch it and display a simple message.

Is it possible to do this ?

That's impossible.
 
M

Marina

No,it's not possible. In order to run the code in your try/catch block, the
..NET framework is required.
 
C

Cor Ligthert

Maileen,

This would be possible however not with a managed code program language as
VBNet or C#.

Maybe you can try it with making a program using unmanaged code in C++.

Maybe the C++ group can help you in that.

microsoft.public.dotnet.languages.vc

I hope you get a result.

Cor
 
A

Alexandre Moura

As the other posters replied, that is not possible - the alternative would be to have an unmanaged (c++, vb6) program as your starter program that would
check for the presence of the .net frameworks and launch the .net program if it is present - note that I believe (don't have an availlable machine to check it
right now) that if you try to execute a vb .net program on a machine without the .net frameworks you already get a simple message stating that the .net
frameworks is required.

--------------------
Date: Thu, 04 Nov 2004 21:23:40 +0100
From: Maileen <[email protected]>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: error throwing
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: adsl-98-03-172.m-dsl.nextra.sk 195.98.3.172
Lines: 1
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:240591
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Hi,

I did a VB.NET application but i don't want to deliver the .NET
framework to each of my users.

Instead of this, i just would like to do a big try and catch and in case
of an error is raised due to not presence of .NET Framework, i would
like to catch it and display a simple message.

Is it possible to do this ?
if yes, what is the error message to catch ?
thanks a lot,
Maileen

Sorry I don't take feature request for WinRes: it belongs to the .NET Framework SDK. I'm a consumer of WinRes, just like you...
--------------------
From: Thomas Adams <[email protected]>
Newsgroups: microsoft.public.dotnet.internationalization
Subject: RE: How to launch WinRes in full screen mode by another program?
Date: 29 Sep 2004 19:31:46 GMT
Organization: DFN.CIS Senior Customer
Lines: 17
Message-ID: <[email protected]>
References: <[email protected]> <[email protected]>
X-Trace: news.uni-berlin.de cGk7xWd2iWxkO9HVbF7isQODBzMeOPRUidb0ZHc/H3nGY=
User-Agent: Xnews/06.08.25
X-Converter: MorVer Version 1.0.305
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu- berlin.de!uni-berlin.de!not-for-mail
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.internationalization:947
X-Tomcat-NG: microsoft.public.dotnet.internationalization

Hi

Your assumption is correct. I did not want to call out its long name
since I didn't know if that could be regarded as breach of NDA. :)

Thanks for the explanation. Do you take feature requests for WinRes?
I'd like to see a "remember last size and location" some day...

~T.

(e-mail address removed) (Xu Yang[MSFT]) wrote:

I'm afraid that LocStudio (when you say LS, I assume you are using LocStudio) does not have the option, and WinRes does not remember its size and
location when it was shut down.
If you are trying to call it in your own application, you can always use ProcessWindowStyle.Maximized when you start the process.

--------------------
From: Thomas Adams <[email protected]>
Newsgroups: microsoft.public.dotnet.internationalization
Subject: How to launch WinRes in full screen mode by another program?
Date: 11 Sep 2004 21:26:17 GMT
Organization: DFN.CIS Senior Customer
Lines: 9
Message-ID: <[email protected]>
X-Trace: news.uni-berlin.de 9sj2ViefNkwlw4tmA89WfA6mie8fmrCfbXqlIJqRehUb0=
User-Agent: Xnews/06.08.25
X-Face: #Rk@TOQ|^!ZG|&z6lA@-CY>/xB[Ei1mG*&S.+A5z;Ng?3OxX[#DVZw!"o!c`S|p:(zsX-EkdZZ(IVnFRTX%!:Sv^L&Gk~s]vJ@Z~%Rm@G]fr*r2P}u5 *&k/-_2+&Qowj6hiJ1b$^JQf:uy9456HIdKq*B`NC##kyO,>7"Ztnav+=71b*"E+DIme;{i&)ii{#6e?i8P,1Xpc[q0}i:Tm];B1
X-Converter: MorVer Version 1.0.305
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu- berlin.de!uni-berlin.de!not-for-mail
Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.internationalization:902
X-Tomcat-NG: microsoft.public.dotnet.internationalization

Hi

Let's imagine you're using a translation environment (LS) that's
launching WinRes every now and then. Is it possible to open WinRes in
full screen mode in this case? It's quite annoying that it doesn't
remember if I switch it to full screen mode the next time it is invoked.

thanks,
Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top