468,556 Members | 2,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,556 developers. It's quick & easy.

VB.NET Automatic code typing features

Hi there,

Either I have come across some kind of "undocumented feature" or I have
a rather curiously irritating bug. When typing the intellisense is going
into full bork mode and actually typing for me, this bug is irratic but I'll
give you an idea...

If (...)
el()se
End If

If you look at the above you will se some round brance mysteriously
inside the else word, if I delete this line and type it again, I can get as
far as l before it trows the braces back in. The only way I managed to stop
it was by deleting the entire statement and writing it again.

I also just experienced it with opening a region

#Region "This" is a test

^ Weird huh? I certainly didnt put the closing quotes there, they
appeared on their own. The text editor also becomes extremely slow and
jerky.

Anyone else experienced this?

Nick.
Mar 13 '06 #1
8 1056
BTW this is with VS.NET 2005 using VB, not sure if it's doing it with any
other language...

"NickP" <a@a.com> wrote in message
news:ey**************@TK2MSFTNGP09.phx.gbl...
Hi there,

Either I have come across some kind of "undocumented feature" or I have
a rather curiously irritating bug. When typing the intellisense is going
into full bork mode and actually typing for me, this bug is irratic but
I'll give you an idea...

If (...)
el()se
End If

If you look at the above you will se some round brance mysteriously
inside the else word, if I delete this line and type it again, I can get
as far as l before it trows the braces back in. The only way I managed to
stop it was by deleting the entire statement and writing it again.

I also just experienced it with opening a region

#Region "This" is a test

^ Weird huh? I certainly didnt put the closing quotes there, they
appeared on their own. The text editor also becomes extremely slow and
jerky.

Anyone else experienced this?

Nick.

Mar 13 '06 #2
I used to see this in VS2003, but it was caused by an add-in that would
auto save my project every 5 minutes. If I happened to be typing the
el when the autosave hit, it would insert the ().

Don't know if this is your problem or not, but perhaps it will help.

Mar 14 '06 #3
Hi Chris,

Ah that's interesting I shall have to remember that if it happens again
in the future, unfortunately I am having to reinstall at the moment, repair
install kept failing :-(

I think I had some DevExpress add-ins installed, not that I'm blaming
those of course but at least it gives me something to look at next time it
happens. Cheers for your help, it's much appreciated.

Nick.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
I used to see this in VS2003, but it was caused by an add-in that would
auto save my project every 5 minutes. If I happened to be typing the
el when the autosave hit, it would insert the ().

Don't know if this is your problem or not, but perhaps it will help.

Mar 14 '06 #4
VS2205 has an auto save recovery information feature, but I'm not sure
if that will cause the problem or not. That might be worth looking
into as well.

Mar 15 '06 #5
Cheers I'll check it out as it has happened once today so far :-(

Thanks for your help.

Nick.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
VS2205 has an auto save recovery information feature, but I'm not sure
if that will cause the problem or not. That might be worth looking
into as well.

Mar 16 '06 #6
Just to add....

case WM_KEYDOWN:
{
int keyCode = (int)wParam;
switch (keyCode)
{
case VK_LMENU: //Left ALT
{
MessageBox(NULL, "left POP!", "", 0);
break;
}
case VK_RMENU: //Right ALT
{
MessageBox(NULL, "right POP!", "", 0);
break;
}
case VK_PRIOR: //Page Up
{
MessageBox(NULL, "foobar!", "", 0);
break;
}
}
break;
}

Only Page Up gets detected in the keydown, where is ALT going?!

Nick.

"NickP" <a@a.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Cheers I'll check it out as it has happened once today so far :-(

Thanks for your help.

Nick.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
VS2205 has an auto save recovery information feature, but I'm not sure
if that will cause the problem or not. That might be worth looking
into as well.


Mar 17 '06 #7
But VK_MENU gets fired on Key Down only with the Right ALT, not the Left...

Sorry to go on...

Nick.

"NickP" <a@a.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Just to add....

case WM_KEYDOWN:
{
int keyCode = (int)wParam;
switch (keyCode)
{
case VK_LMENU: //Left ALT
{
MessageBox(NULL, "left POP!", "", 0);
break;
}
case VK_RMENU: //Right ALT
{
MessageBox(NULL, "right POP!", "", 0);
break;
}
case VK_PRIOR: //Page Up
{
MessageBox(NULL, "foobar!", "", 0);
break;
}
}
break;
}

Only Page Up gets detected in the keydown, where is ALT going?!

Nick.

"NickP" <a@a.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Cheers I'll check it out as it has happened once today so far :-(

Thanks for your help.

Nick.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
VS2205 has an auto save recovery information feature, but I'm not sure
if that will cause the problem or not. That might be worth looking
into as well.



Mar 17 '06 #8
FFS Wrong group!!!!

*puts brain back in*

"NickP" <a@a.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Just to add....

case WM_KEYDOWN:
{
int keyCode = (int)wParam;
switch (keyCode)
{
case VK_LMENU: //Left ALT
{
MessageBox(NULL, "left POP!", "", 0);
break;
}
case VK_RMENU: //Right ALT
{
MessageBox(NULL, "right POP!", "", 0);
break;
}
case VK_PRIOR: //Page Up
{
MessageBox(NULL, "foobar!", "", 0);
break;
}
}
break;
}

Only Page Up gets detected in the keydown, where is ALT going?!

Nick.

"NickP" <a@a.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Cheers I'll check it out as it has happened once today so far :-(

Thanks for your help.

Nick.

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
VS2205 has an auto save recovery information feature, but I'm not sure
if that will cause the problem or not. That might be worth looking
into as well.



Mar 17 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

242 posts views Thread by James Cameron | last post: by
6 posts views Thread by Weng kin | last post: by
7 posts views Thread by bartek | last post: by
67 posts views Thread by Steven T. Hatton | last post: by
4 posts views Thread by Petterson Mikael | last post: by
58 posts views Thread by Jorge Peixoto de Morais Neto | last post: by
17 posts views Thread by Sunburned Surveyor | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.