all groups > vb.net > september 2004 >
You're in the

vb.net

group:

Why Does VS Remove My Parens, i.e. Timer() -> Timer


Re: Why Does VS Remove My Parens, i.e. Timer() -> Timer CJ Taylor
9/30/2004 11:20:28 PM
vb.net:
People were getting confused between that and array delcarations...

In 2002/1.0 you could do that..

2003/1.1 feature removed.


[quoted text, click to view]

Why Does VS Remove My Parens, i.e. Timer() -> Timer eBob.com
9/30/2004 11:55:42 PM
My VB.Net app will require a timer of some sort. So I did some
research and decided to use System.Windows.Forms.Timer, I guess mainly
because while I have practically no experience with Events, I have
absolutely no experience will CallBacks.

The only example I've been able to find for this control is in the
Petzold book. It uses the following line of code to instantiate the
timer ...

Dim tmr As New Timer()

But when I enter that line of code, as soon as I move the cursor to
the next line the ()s disappear! I do have an Imports statement for
System.Windows.Forms.Timer.

I suppose I am doing something dumb (I am really new to this stuff)
but I can't imagine what.

I'll appreciate any help or pointers.

Re: Why Does VS Remove My Parens, i.e. Timer() -> Timer CJ Taylor
10/1/2004 9:16:27 AM
Does that mean in 2007 it will be removed again? =)


[quoted text, click to view]

Re: Why Does VS Remove My Parens, i.e. Timer() -> Timer Cor Ligthert
10/1/2004 11:26:36 AM
Ebob,

When you are busy with timers, watch that there are 4 timers,
windows.forms.form.timer
windows.system.timer
threading.thread.timer
and one in the Microsoft.visualbasic namespace.

This can confuse very much because in the documentation it is seldom told.
When you have simple single threading operations within one form I advice
you to take the first.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformstimerclasstopic.asp

A sample is in this document.

I hope this helps?

Cor

Re: Why Does VS Remove My Parens, i.e. Timer() -> Timer eBob.com
10/1/2004 12:45:55 PM
Thanks CJ and Herfried.

On Fri, 1 Oct 2004 16:04:18 +0200, "Herfried K. Wagner [MVP]"
[quoted text, click to view]
Re: Why Does VS Remove My Parens, i.e. Timer() -> Timer Herfried K. Wagner [MVP]
10/1/2004 4:04:18 PM
"CJ Taylor" <cege [ahh ttt] tavayn wooohooo hooo ohhh com> schrieb:
[quoted text, click to view]

In VB 2005's IDE support, AFAIR the '()' will be kept on ctor calls.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Re: Why Does VS Remove My Parens, i.e. Timer() -> Timer Herfried K. Wagner [MVP]
10/1/2004 7:10:43 PM
"CJ Taylor" <[cege] at [tavayn] dit commmmm> schrieb:
[quoted text, click to view]

I would prefer a checkbox in the code formatting rules settings:

[_] Remove '()' on constructor calls

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

AddThis Social Bookmark Button