VB.NET Automatic code typing features

N

NickP

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.
 
N

NickP

BTW this is with VS.NET 2005 using VB, not sure if it's doing it with any
other language...
 
C

Chris Dunaway

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.
 
N

NickP

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.
 
C

Chris Dunaway

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.
 
N

NickP

Cheers I'll check it out as it has happened once today so far :-(

Thanks for your help.

Nick.
 
N

NickP

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.
 
N

NickP

But VK_MENU gets fired on Key Down only with the Right ALT, not the Left...

Sorry to go on...

Nick.
 
N

NickP

FFS Wrong group!!!!

*puts brain back in*

NickP said:
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.
 

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