473,473 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

start new, end old, keep new

hey all,

i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd
exe and let the 1st exe stop running altogether but let the 2nd exe continue
running?

thanks,
rodchar
Nov 21 '05 #1
34 1300
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd
exe and let the 1st exe stop running altogether but let the 2nd exe
continue
running?


\\\
Shell("C:\App2.exe")
Me.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #2
Hi Herfried K. Wagner,

Do you also know how to do this in C#??

TIA

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:u7**************@TK2MSFTNGP10.phx.gbl...
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd exe and let the 1st exe stop running altogether but let the 2nd exe
continue
running?


\\\
Shell("C:\App2.exe")
Me.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #3
"Pipo" <Pi**@nobody.com> schrieb:
Do you also know how to do this in C#??


Notice that this is a VB.NET group and thus C# questions are off-topic here.
The C# group's name is microsoft.public.dotnet.languages.csharp. C#
solution:

\\\
using System.Diagnostics;
..
..
..
Process.Start(@"C:\foo.exe");
this.Close();
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
Pipo,

I would not believe that Herfried would give this answer as he did, normal
he says that this is not a C# newsgroup, so now I am as well alowed in my
opinion :-)

To give it exact as you asked, set in C# a reference to the
Microsoft.VisualBasic Net runtime and than this code.

\\\\
Microsoft.VisualBasic.Interaction.Shell
("@C:\App2.exe",Microsoft.VisualBasic.AppWinStyle. NormalFocus,false,-1);
this.Close();
///

However better is it to take the last answer from Herfried, that you can use
in VBNet as well by the way.

\\\\
Imports System.Diagnostics
..
Process.Start("C:\foo.exe")
me.Close()
///

I hope this helps?

:-)

Cor

Nov 21 '05 #5
Pipo,

Before it is understand wrong. He says normally "what has that for sense is
VBNet not much better" or something, I was sure he would give the C# answer
as he did now.

Cor
Nov 21 '05 #6
thanks all for the help.

"Cor Ligthert" wrote:
Pipo,

Before it is understand wrong. He says normally "what has that for sense is
VBNet not much better" or something, I was sure he would give the C# answer
as he did now.

Cor

Nov 21 '05 #7
so at this point the 1st exe is no longer taking up resources anywhere,
correct?

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd
exe and let the 1st exe stop running altogether but let the 2nd exe
continue
running?


\\\
Shell("C:\App2.exe")
Me.Close()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #8
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
so at this point the 1st exe is no longer taking up resources anywhere,
correct?


If the process is terminated (which means you cannot see it any more in task
manager), it won't take up resources any more.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #9
thanks again.

"Herfried K. Wagner [MVP]" wrote:
"rodchar" <ro*****@discussions.microsoft.com> schrieb:
so at this point the 1st exe is no longer taking up resources anywhere,
correct?


If the process is terminated (which means you cannot see it any more in task
manager), it won't take up resources any more.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #10
Henfried K. Wagner,

I know this is a VB.NET group.
But in my company it's 'forbidden' to use the 'old' VB6 syntax.
We have to code .NET and not to the reference of the VB6 syntax.
So that's why I asked you how it would be in C# ;->
All the functions in the VisualBasic libary have a .NET equivalent.
So I was just wondering what the .NET sysntax would be.

Many thanks for answering my question, although off topic

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:ur**************@tk2msftngp13.phx.gbl...
"Pipo" <Pi**@nobody.com> schrieb:
Do you also know how to do this in C#??


Notice that this is a VB.NET group and thus C# questions are off-topic
here. The C# group's name is microsoft.public.dotnet.languages.csharp. C#
solution:

\\\
using System.Diagnostics;
.
.
.
Process.Start(@"C:\foo.exe");
this.Close();
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #11
Hi Cor,

Thanks for the answer.
(No way I would ever reference the VisualBasic libary)

"Cor Ligthert" <no************@planet.nl> schreef in bericht
news:%2***************@TK2MSFTNGP15.phx.gbl...
Pipo,

I would not believe that Herfried would give this answer as he did, normal
he says that this is not a C# newsgroup, so now I am as well alowed in my
opinion :-)

To give it exact as you asked, set in C# a reference to the
Microsoft.VisualBasic Net runtime and than this code.

\\\\
Microsoft.VisualBasic.Interaction.Shell
("@C:\App2.exe",Microsoft.VisualBasic.AppWinStyle. NormalFocus,false,-1);
this.Close();
///

However better is it to take the last answer from Herfried, that you can
use in VBNet as well by the way.

\\\\
Imports System.Diagnostics
.
Process.Start("C:\foo.exe")
me.Close()
///

I hope this helps?

:-)

Cor

Nov 21 '05 #12
Hi Cor,

hahaha that discussion will never die, I'm affraid!! :-)
But you're correct, Cor, he did helped me great.

Many thanks to the both of you.
"Cor Ligthert" <no************@planet.nl> schreef in bericht
news:ua**************@TK2MSFTNGP15.phx.gbl...
Pipo,

Before it is understand wrong. He says normally "what has that for sense
is VBNet not much better" or something, I was sure he would give the C#
answer as he did now.

Cor

Nov 21 '05 #13
Pipo,

"Pipo" <Pi**@home.com> schrieb:
But in my company it's 'forbidden' to use the 'old' VB6 syntax.
We have to code .NET and not to the reference of the VB6 syntax.
So that's why I asked you how it would be in C# ;->
LOL! Another company that wants people to write VB.NET code without using
VB.NET...
All the functions in the VisualBasic libary have a .NET equivalent.
What are the equivalents of 'AppActivate', 'Beep', 'InputBox', 'IIf',
'ControlChars', the financial functions, ...?
Many thanks for answering my question, although off topic


No problem :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #14
"Pipo" <Pi**@home.com> schrieb:
Thanks for the answer.
(No way I would ever reference the VisualBasic libary)


Gladly the reference to "Microsoft.VisualBasic.dll" cannot be removed...
:-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #15
Herfried K. Wagner,

I do believe that if you use the Visual Basic libary you are ' wanne be'
programming VB.NET, using the VB6 syntax.

The equivalents?
if there aren't any make them yourself ...

appactivate = System.Windows.Form.Activate or api call
inputbox, IIF make them yourself....
ControlChars??

Beep:
Console.WriteLine("\a"); // bell (for C# console)
OR
[DllImport("kernel32.dll")]
private static extern bool Beep(int freq, int dur);
Beep(3000, 200);

etc, etc..
No need for the old library....I didnt say it was the EASIEST way....!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
Pipo,

"Pipo" <Pi**@home.com> schrieb:
But in my company it's 'forbidden' to use the 'old' VB6 syntax.
We have to code .NET and not to the reference of the VB6 syntax.
So that's why I asked you how it would be in C# ;->


LOL! Another company that wants people to write VB.NET code without using
VB.NET...
All the functions in the VisualBasic libary have a .NET equivalent.


What are the equivalents of 'AppActivate', 'Beep', 'InputBox', 'IIf',
'ControlChars', the financial functions, ...?
Many thanks for answering my question, although off topic


No problem :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #16
Herfried K. Wagner,

This was refering to the C# solution of Cor, he suggested to reference the
Visual Basic library in a C#, red.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uA**************@TK2MSFTNGP15.phx.gbl...
"Pipo" <Pi**@home.com> schrieb:
Thanks for the answer.
(No way I would ever reference the VisualBasic libary)


Gladly the reference to "Microsoft.VisualBasic.dll" cannot be removed...
:-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #17
> LOL! Another company that wants people to write VB.NET code without using
VB.NET... I do believe that the VisualStudio library is there for backwords
compatibilty
And to make the learing curve for VB6 programmers to VB.NET smaller.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl... Pipo,

"Pipo" <Pi**@home.com> schrieb:
But in my company it's 'forbidden' to use the 'old' VB6 syntax.
We have to code .NET and not to the reference of the VB6 syntax.
So that's why I asked you how it would be in C# ;->


LOL! Another company that wants people to write VB.NET code without using
VB.NET...
All the functions in the VisualBasic libary have a .NET equivalent.


What are the equivalents of 'AppActivate', 'Beep', 'InputBox', 'IIf',
'ControlChars', the financial functions, ...?
Many thanks for answering my question, although off topic


No problem :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #18
Pipo,

This was refering to the C# solution of Cor, he suggested to reference the
Visual Basic library in a C#, red.


I did absolutly not, I gave you an exact answer on your question, how to do
the code showed by Herfried in C# and told with that, that it is beter not
to use that.

(While I see not any reason to use that Shell from the time of the first
free with MS-Dos delivered Ms-Basic).

Please do not quote me incorrect?

Cor
Nov 21 '05 #19
Pipo,
I do believe that if you use the Visual Basic libary you are ' wanne be'
programming VB.NET, using the VB6 syntax.


No you are using a language, try to use from English only the Germanic kind
of words. You will see what a poor and strange language it will become.

English is a modern language that in contrast with a language as Dutch is
slowly accepting new words. An important reason for that is the wide spread
use of it, however English does, there disapear as well (for the same reason
slowly) words from the language.

And that is the same with VBNet

Just my thought,

Cor
Nov 21 '05 #20
Cor Ligthert,

Yes, you did...then I replied with:
Thanks for the answer.
(No way I would ever reference the VisualBasic libary)
then Herfried K. Wagner said:
Gladly the reference to "Microsoft.VisualBasic.dll" cannot be removed...
:-).

So I tell him that I replied to you, right?!

That's what happens when replies disapper or previous lines are being
removed.
The discussion is hard to follow then.

Your reply was:
To give it exact as you asked, set in C# a reference to the
Microsoft.VisualBasic Net runtime and than this code.

\\\\
Microsoft.VisualBasic.Interaction.Shell
("@C:\App2.exe",Microsoft.VisualBasic.AppWinStyle. NormalFocus,false,-1);
this.Close();
///

However better is it to take the last answer from Herfried, that you can
use in VBNet as well by the way.

\\\\
Imports System.Diagnostics
.
Process.Start("C:\foo.exe")
me.Close()
///

I hope this helps?

:-)

Cor


"Cor Ligthert" <no************@planet.nl> wrote in message
news:uZ**************@TK2MSFTNGP09.phx.gbl... Pipo,

This was refering to the C# solution of Cor, he suggested to reference the Visual Basic library in a C#, red.

I did absolutly not, I gave you an exact answer on your question, how to

do the code showed by Herfried in C# and told with that, that it is beter not
to use that.

(While I see not any reason to use that Shell from the time of the first
free with MS-Dos delivered Ms-Basic).

Please do not quote me incorrect?

Cor

Nov 21 '05 #21
Pipo,
Yes, you did...then I replied with
he suggested to reference the Visual Basic library in a C#, red.
That I did not.

Reread it, it is still beneath and look at "to give it exact as you asked"

I did not suggest to do that reference, you could use it when you wanted,
however I told you that I did not advised that to you in the same message.
See bellow. That can not be quoted by you as "he suggested"

Cor
Your reply was:
To give it exact as you asked, set in C# a reference to the
Microsoft.VisualBasic Net runtime and than this code.

\\\\
Microsoft.VisualBasic.Interaction.Shell
("@C:\App2.exe",Microsoft.VisualBasic.AppWinStyle. NormalFocus,false,-1);
this.Close();
///

However better is it to take the last answer from Herfried, that you can
use in VBNet as well by the way.

\\\\
Imports System.Diagnostics
.
Process.Start("C:\foo.exe")
me.Close()
///

I hope this helps?

:-)

Cor


"Cor Ligthert" <no************@planet.nl> wrote in message
news:uZ**************@TK2MSFTNGP09.phx.gbl...
Pipo,
>
> This was refering to the C# solution of Cor, he suggested to reference

the > Visual Basic library in a C#, red.
>


I did absolutly not, I gave you an exact answer on your question, how to

do
the code showed by Herfried in C# and told with that, that it is beter
not
to use that.

(While I see not any reason to use that Shell from the time of the first
free with MS-Dos delivered Ms-Basic).

Please do not quote me incorrect?

Cor


Nov 21 '05 #22
Cor Ligthert,

Sorry, you're right!

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uO*************@TK2MSFTNGP09.phx.gbl...
Pipo,
Yes, you did...then I replied with

he suggested to reference the Visual Basic library in a C#, red.
That I did not.

Reread it, it is still beneath and look at "to give it exact as you asked"

I did not suggest to do that reference, you could use it when you wanted,
however I told you that I did not advised that to you in the same message.
See bellow. That can not be quoted by you as "he suggested"

Cor
Your reply was:
To give it exact as you asked, set in C# a reference to the
Microsoft.VisualBasic Net runtime and than this code.

\\\\
Microsoft.VisualBasic.Interaction.Shell
("@C:\App2.exe",Microsoft.VisualBasic.AppWinStyle. NormalFocus,false,-1); this.Close();
///

However better is it to take the last answer from Herfried, that you can use in VBNet as well by the way.

\\\\
Imports System.Diagnostics
.
Process.Start("C:\foo.exe")
me.Close()
///

I hope this helps?

:-)

Cor


"Cor Ligthert" <no************@planet.nl> wrote in message
news:uZ**************@TK2MSFTNGP09.phx.gbl...
Pipo,
>
> This was refering to the C# solution of Cor, he suggested to reference the
> Visual Basic library in a C#, red.
>

I did absolutly not, I gave you an exact answer on your question, how
to do
the code showed by Herfried in C# and told with that, that it is beter
not
to use that.

(While I see not any reason to use that Shell from the time of the

first free with MS-Dos delivered Ms-Basic).

Please do not quote me incorrect?

Cor



Nov 21 '05 #23
"Pipo" <Pi**@nobody.com> schrieb:
I do believe that if you use the Visual Basic libary you are ' wanne be'
programming VB.NET, using the VB6 syntax.
Definitely no. This would mean you should not use 'If...Then...', 'Select
Case' and most of the other keywords any more only because they already
existed in VB6.
The equivalents?
if there aren't any make them yourself ...
LOL! If the tool already exists in prebuilt for and is neither deprecated
nor obsolete, why not use it? The methods in the 'Microsoft.VisualBasic'
namespace are tested heavily, your own "replacement" methods are not.
Rewriting the methods will take time and bring /absolutely no/ benefit.
appactivate = System.Windows.Form.Activate or api call
inputbox, IIF make them yourself....
ControlChars??
Why? "Microsoft.VisualBasic.dll" is referenced by default and the reference
cannot be removed. "Microsoft.VisualBasic.dll" is /part of/ Visual Basic
..NET.
Beep:
Console.WriteLine("\a"); // bell (for C# console)
OR
[DllImport("kernel32.dll")]
private static extern bool Beep(int freq, int dur);
Beep(3000, 200);
That's not the same. Sure, you can use p/invoke with 'MessageBeep' and
pass -1 as 'uType'. But that's unmanaged code, directly in your code.
etc, etc..
No need for the old library....I didnt say it was the EASIEST way....!


There is no "old" library.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #24
"Pipo" <Pi**@nobody.com> schrieb:
LOL! Another company that wants people to write VB.NET code without
using
VB.NET...


I do believe that the VisualStudio library is there for backwords
compatibilty
And to make the learing curve for VB6 programmers to VB.NET smaller.


Backwards compatibility is one of the best things because it preserves
assets. "Microsoft.VisualBasic.dll" is /not/ a compatibility library. The
compatibility libraries' names start with
"Microsoft.VisualBasic.Compatibility".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #25
Herfried K. Wagner,

Do you mean you use msgbox also instead of messagebox.show?
Or on error goto ... and the errobject instead of try .. catch..??
DateAdd instead of DateTime.Add...?
etc. etc.???

So this piece of code is totally oke with you as VB.NET code?

private sub Foo
on error goto MyErr

if DateAdd("d",12,now) = Date then
msgbox "Yes"
else
msgbox "no"
end if
exit sub

MyError:
msgbox "Some error"

end sub

I would say that this is VB6 code, wich runs okey in VB.NET.
But that's just my oppinion...:-x

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
"Pipo" <Pi**@nobody.com> schrieb:
LOL! Another company that wants people to write VB.NET code without
using
VB.NET...
I do believe that the VisualStudio library is there for backwords
compatibilty
And to make the learing curve for VB6 programmers to VB.NET smaller.


Backwards compatibility is one of the best things because it preserves
assets. "Microsoft.VisualBasic.dll" is /not/ a compatibility library.

The compatibility libraries' names start with
"Microsoft.VisualBasic.Compatibility".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #26
Pipo,

I am curious about your answer on my message about languages. To explain it
even more to you because Germanic can often give misunderstandings.

See words as
beef and ox

The first has its roots in the French language
The second has its roots in Germanic (not German) languages.

Cor
Nov 21 '05 #27
Cor Ligthert,

Well Cor to be honest I dont understand that whole languages thing you
mentioned, so...:-S

I dont understand the comparising of the subjects in relation about the
syntax of VB/VB.NET...
So that's why I cant say anything usefull about it.

Sorry..:-S
"Cor Ligthert" <no************@planet.nl> wrote in message
news:uC**************@TK2MSFTNGP14.phx.gbl...
Pipo,

I am curious about your answer on my message about languages. To explain it even more to you because Germanic can often give misunderstandings.

See words as
beef and ox

The first has its roots in the French language
The second has its roots in Germanic (not German) languages.

Cor

Nov 21 '05 #28
Pipo,

"Pipo" <Pi**@nobody.com> schrieb:
Do you mean you use msgbox also instead of messagebox.show?
Yes, if 'MsgBox' provides everything you need. Why type more characters and
deal with the overload hell of 'MessageBox.Show' if you can do exactly the
same with shorter code?
Or on error goto ... and the errobject instead of try .. catch..??


'On Error GoTo' serves a different purpose than 'Try...Catch'. It's IMO a
typical a RAD feature that is useful if you are using VB.NET for quick
scripting.

Just my 2 Euro cents...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #29
Herfried,
Yes, if 'MsgBox' provides everything you need. Why type more characters
and deal with the overload hell of 'MessageBox.Show' if you can do exactly
the same with shorter code?
It seems that my comparising with natural language is very difficult.

When you want to express yourself nice, you can say messagebox.show.
However MsgBox does the same.
Or on error goto ... and the errobject instead of try .. catch..??


'On Error GoTo' serves a different purpose than 'Try...Catch'. It's IMO a
typical a RAD feature that is useful if you are using VB.NET for quick
scripting.


A Try and Catch block makes the sentences more smooth.

However nowhere is said that you:
would have
should
must

Use that

Cor
Nov 21 '05 #30
If English (as language) would change as fast as VB, that would be strange.
Or all of a sudden we have a complete new language based on Russians and
English or so...???

And I my language we have words and sentences wich are totally (syntax)
correctly (nothing wrong with it)
but those words and sentences are, today, only spoken by very old people.
Those words and senteces where completely normal, at the beginning of the
previous century.
Nobody uses them now anymore.

I see that the same as with VB6/VB.NET, new language, new syntax, use the
new syntax and dont keep stuck in the old school sysntax.
With the only reason: it's still working, so why not..
In VB6 you can still write VB4 code, I dont agree with that either....
But again, that's my attitude.

????????????????who said this then, Cor?? Not me!!
However nowhere is said that you:
would have
should
must

Use that

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uP*************@TK2MSFTNGP09.phx.gbl... Herfried,
Yes, if 'MsgBox' provides everything you need. Why type more characters
and deal with the overload hell of 'MessageBox.Show' if you can do exactly the same with shorter code?


It seems that my comparising with natural language is very difficult.

When you want to express yourself nice, you can say messagebox.show.
However MsgBox does the same.
Or on error goto ... and the errobject instead of try .. catch..??


'On Error GoTo' serves a different purpose than 'Try...Catch'. It's IMO a typical a RAD feature that is useful if you are using VB.NET for quick
scripting.


A Try and Catch block makes the sentences more smooth.

However nowhere is said that you:
would have
should
must

Use that

Cor

Nov 21 '05 #31
I like to write .NET code.
So everything I'll write in VB.NET can be (relatively easy) be converted to
C#.
When I'll use IIF, msgbox, DateDiff, etc ect. this isnt the case anymore.
I work with VB.NET and C#, some of my colleges only know C# or C++, terms as
IFF or Function = Value doesnt say them anything!!!
That's why I dont use the VisualBasic namespace and to go back where this
all started, that's why I wanted to know the syntax without the namespace
VisualBasic being used.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uP*************@TK2MSFTNGP09.phx.gbl...
Herfried,
Yes, if 'MsgBox' provides everything you need. Why type more characters
and deal with the overload hell of 'MessageBox.Show' if you can do exactly the same with shorter code?


It seems that my comparising with natural language is very difficult.

When you want to express yourself nice, you can say messagebox.show.
However MsgBox does the same.
Or on error goto ... and the errobject instead of try .. catch..??


'On Error GoTo' serves a different purpose than 'Try...Catch'. It's IMO a typical a RAD feature that is useful if you are using VB.NET for quick
scripting.


A Try and Catch block makes the sentences more smooth.

However nowhere is said that you:
would have
should
must

Use that

Cor

Nov 21 '05 #32
Pipo,

You exactly wrote what I wanted to show. I am glad you understood it now.

:-)

Cor
Nov 21 '05 #33
Pipo,

That is the same for me, however where there are things in VBNet as CInt,
those I use.

For this in C# I can use (int) MyInteger, that is not in VBNet, when I
would avoid that I have to do DirectCast(MyInteger,Integer) a little bit
long is it not?

On the otherhand you don't know what functions C# will get from VB. Even the
French and German language has adopted (very few) words which never where in
French or German and came from English, although the puritans don't like it.

Cor
Nov 21 '05 #34
Cor,

So we agree.

No, I dont know, in the future, wich functions C# will get from VB.NET but
I'll see that then.
But I'll defenitly use them if they will become available in C# (or the
other way around).

Pipo.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Pipo,

That is the same for me, however where there are things in VBNet as CInt,
those I use.

For this in C# I can use (int) MyInteger, that is not in VBNet, when I
would avoid that I have to do DirectCast(MyInteger,Integer) a little bit
long is it not?

On the otherhand you don't know what functions C# will get from VB. Even the French and German language has adopted (very few) words which never where in French or German and came from English, although the puritans don't like it.
Cor

Nov 21 '05 #35

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bruce A. Julseth | last post by:
This is my 2nd request. Is the question too vague? Or, too difficult to answer. I'm really a newbie at this VS.NET stuff and do appreciate some help on this problem.---I keep getting the error...
3
by: Tom | last post by:
When using system.timers.timer, which should one use to start/stop the timer? Start/Stop, or Enabled=True/False? If what I read is true, both really do the same thing, so I don't know if there is...
5
by: taylorjonl | last post by:
I am completely baffled. I am writting a daemon application for my work to save me some time. The application works fine at my home but won't work right here at work. Basically I have a...
1
by: roN | last post by:
Hi, I can't start Evolution 2.2.1 anymore, I keep getting this error: reg@linux:~> evolution es menu class init adding hook target 'source' (evolution:9858): camel-WARNING **: Invalid root:...
5
by: bbembi_de | last post by:
Hello everyone, I have a deskband that resides in the taskbar. I can start it manually. But I want to start it with system start and for all users. Is there a registry entry I have to make? ...
4
by: Paul | last post by:
Hi, I am trying to start a process hidden. My code: wordprocess = new System.Diagnostics.Process(); ; wordprocess.StartInfo = new System.Diagnostics.ProcessStartInfo(wcmd, args);...
1
by: Robert Tryzalot | last post by:
When trying to start my other computer, I cannot get it going. I have tried to start in all safe modes, I get scrolling text and then it stops, not with a cursor or anything. just dead in the...
2
by: Mark Huebner | last post by:
I am trying to create a web application with Visual Studio 2005 and C# that will start up a "keep alive" application on my web site's server. My DotNetNuke home page loads slowly when the site...
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
14
by: shuisheng | last post by:
Dear All, I want to start a c++ software project. It is used to simulate the propagation of sound waves in complex media. It may contain 4 parts: GUI, preprocession, simulation and...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.