Home All Groups Group Topic Archive Search About

VB.NET Automatic code typing features

Author
13 Mar 2006 2:33 PM
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.

Author
13 Mar 2006 3:07 PM
NickP
BTW this is with VS.NET 2005 using VB, not sure if it's doing it with any
other language...

Show quoteHide quote
"NickP" <a@a.com> wrote in message
news:eyt$bsqRGHA.3192@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.
>
Author
14 Mar 2006 2:36 PM
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.
Author
14 Mar 2006 2:50 PM
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.

Show quoteHide quote
"Chris Dunaway" <dunaw***@gmail.com> wrote in message
news:1142346984.595366.19760@j33g2000cwa.googlegroups.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.
>
Author
15 Mar 2006 4:31 PM
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.
Author
16 Mar 2006 5:25 PM
NickP
Cheers I'll check it out as it has happened once today so far :-(

Thanks for your help.

Nick.

Show quoteHide quote
"Chris Dunaway" <dunaw***@gmail.com> wrote in message
news:1142440312.691521.282640@e56g2000cwe.googlegroups.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.
>
Author
17 Mar 2006 9:31 AM
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.

Show quoteHide quote
"NickP" <a@a.com> wrote in message
news:%23iWfZ6RSGHA.776@TK2MSFTNGP09.phx.gbl...
> Cheers I'll check it out as it has happened once today so far :-(
>
> Thanks for your help.
>
> Nick.
>
> "Chris Dunaway" <dunaw***@gmail.com> wrote in message
> news:1142440312.691521.282640@e56g2000cwe.googlegroups.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.
>>
>
>
Author
17 Mar 2006 9:34 AM
NickP
But VK_MENU gets fired on Key Down only with the Right ALT, not the Left...

Sorry to go on...

Nick.

Show quoteHide quote
"NickP" <a@a.com> wrote in message
news:%23SE4MWaSGHA.4264@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:%23iWfZ6RSGHA.776@TK2MSFTNGP09.phx.gbl...
>> Cheers I'll check it out as it has happened once today so far :-(
>>
>> Thanks for your help.
>>
>> Nick.
>>
>> "Chris Dunaway" <dunaw***@gmail.com> wrote in message
>> news:1142440312.691521.282640@e56g2000cwe.googlegroups.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.
>>>
>>
>>
>
>
Author
17 Mar 2006 9:45 AM
NickP
FFS Wrong group!!!!

*puts brain back in*

Show quoteHide quote
"NickP" <a@a.com> wrote in message
news:%23SE4MWaSGHA.4264@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:%23iWfZ6RSGHA.776@TK2MSFTNGP09.phx.gbl...
>> Cheers I'll check it out as it has happened once today so far :-(
>>
>> Thanks for your help.
>>
>> Nick.
>>
>> "Chris Dunaway" <dunaw***@gmail.com> wrote in message
>> news:1142440312.691521.282640@e56g2000cwe.googlegroups.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.
>>>
>>
>>
>
>