Problem with auto-indent, auto-complete, intellisense....

VB.NET

    Next

  • 1. Problems with a user Control (Similar to the TabControl)
    Hi, I'm running mad with this issue, hope I can explain it correctlly. I've been developping a user control wich is very similar to the TabControl... Basically my control has two panels that act as containers: one for the buttons and the other one for something similar to the TabPages. For my pages I've declared: <System.ComponentModel.Designer("System.Windows.Forms.Design.ParentControlDe signer,System.Design", GetType(System.ComponentModel.Design.IDesigner))> _ Public Class NavigatorPage Inherits System.Windows.Forms.UserControl ... End Class this allows me to add controls at design time for my page... The only thing that is going wrong is that when I select the page I'm interested from the PropertiesCombo the page doesn't come to the front therefore I can only add controls (Visually) to my last page. I know I could add other control from code, but I'd like to be able to add controls visually. ny ideas? Another thing in wich is driving me mad is that I've defined a collection of pages (Inherits from CollectionBase). On the Add function I add the controls to their respective panels, however the pages and buttons get showed after I run the aplication, not when added to the control through the propertyGrid. I guess this must be posible to do since the tabControl acts this way, and also the Listview control adds the columns right away in the designer. How could I get this results? Thak you in advance, Juan
  • 2. Registry Question
    Hi, I want to store non-string values in the registry. I have a few Boolean flags and some integer numbers that I want to store. It appears that the SaveSettings command only handles the saving of string values to the registry. Is there some other command that I should use to save Boolean or Integer values to the registry? JD
  • 3. Icon & embedded resource
    I've created a c# dll with some classes and i've included some icons that i can see with ILDASM like namespace.iconfile.ico I re-use this dll (dll reference) and relative classes in many vb project How i can re-use icons?
  • 4. Threading a routine with parameters?
    Hi, To start a new thread of a sub routine I use: '/////////// Dim t as Thread = New Thread (AddressOf MySub) t.Start '\\\\\\\\\\\ How do I start a thread of a sub routine that takes parameters? For example: '//////////// Sub MySub (filePath as String) if File.Exists(filePath) Then File.Delete(filePath) End Sub ' ' Dim t as Thread = New Thread (AddressOf MySub("C:\test.txt")) t.Start ' '\\\\\\\\\\\\\\\

Problem with auto-indent, auto-complete, intellisense....

Postby Robin Tucker » Thu, 29 Apr 2004 20:58:06 GMT

Hi there,

I have this really frustrating problem with Visual Studio (Microsoft Visual
Basic .NET 2003   69586-335-0000007-18843).  I have got used to using the
autocomplete and auto indent features of this excellent source editor but
recently it has only operated on some of my source files and not others.  I
have made sure the settings in "tools->options->text editor" are set
correctly but to no avail.  For example, hitting enter at the end of the
line used to auto indent to the next source line, now in some of my source
files it does not.  The "auto syntax checking" only works sometimes too.  It
will flag an error in a line, but when I correct the line, it still shows
underlined as incorrect.  The error line will be removed when I recompile.

Is there something I am missing here?


Thanks



Re: Problem with auto-indent, auto-complete, intellisense....

Postby Armin Zingler » Thu, 29 Apr 2004 21:20:52 GMT

"Robin Tucker" < XXXX@XXXXX.COM > schrieb

Not very probable, but source file > 8192 lines? (had the problem with an
auto-generated (database structure encapsulating) file).


-- 
Armin

How to quote and why:
 http://www.**--****.com/ 
 http://www.**--****.com/ 


Re: Problem with auto-indent, auto-complete, intellisense....

Postby hirf-spam-me-here » Thu, 29 Apr 2004 22:04:18 GMT

* "Robin Tucker" < XXXX@XXXXX.COM > scripsit:

I have heard about similar problems, but I don't know a solution. Does
the problem occur in all projects?

-- 
Herfried K. Wagner [MVP]
<URL: http://www.**--****.com/ ;

Re: Problem with auto-indent, auto-complete, intellisense....

Postby Robin Tucker » Thu, 29 Apr 2004 22:17:47 GMT

I don't know - I only have one project on the go.  It was working fine and
then suddenly went **ts up, but not all of the time, or with all source
files.





Visual
the
but
I
source
It
shows
recompile.



Re: Problem with auto-indent, auto-complete, intellisense....

Postby Robin Tucker » Thu, 29 Apr 2004 22:18:06 GMT

No, I don't have any source files with this number of lines (at the moment).








Re: Problem with auto-indent, auto-complete, intellisense....

Postby Robin Tucker » Fri, 30 Apr 2004 21:28:11 GMT

Just out of interest, I re-created my solution in another directory (copied
the source files in) and now intellisense/auto-xxxx seems to be working
properly.  I must have had a corrupted state file (.pdb?) or whatever
database it uses to make things work.

"Robin Tucker" < XXXX@XXXXX.COM > wrote in


Visual
I
It



Re: Problem with auto-indent, auto-complete, intellisense....

Postby wja » Fri, 03 Sep 2004 23:42:20 GMT

I'm having the same problem! You said you copied the project to a ne
solution? Is that how you fixed it? It's driving me crazy! 
I also noticed it started after I included an Infragistics WinTa
control in it. Are you using any infragistics tools in your project? 
I already started a case incident with Infragistics and would like t
know if your issue was relative to their controls. 
I also noticed an issue where you lose cut/copy/paste features with th
vb.net tab control. Which is why I started using the infragistic
wintab control. Then I got your problem in my project! 
Can't anyone make a decent tab control that works flawlessly i
vb.net??!!! Thanks in advance if you reply!
wja










-
wj
-----------------------------------------------------------------------
Posted via  http://www.**--****.com/ 
-----------------------------------------------------------------------
View this thread:  http://www.**--****.com/ 
 

Similar Threads:

1.Missing Intellisense/auto-complete on C++ ctors/dtors

When writing classes and their member functions, the auto-completion
intellisense is always useful, showing the params and speeding up code
entry. Unfortunately, it seems to have totally forgotten about
Constructors/Destructors.

Ok, it half works....once you have typed it twice:-

cClass:cClass

it knows about the parentheses and params, but when you type cClass:: you
used to get the constructors/destructor listed as well - just tap the arrow
to select and start typing the (params). These days Intellisense never lists
the Ctors and Dtor.

As an example, in the past (even with 2002 if I remember IIRC), after
defining the class in the header, if you typed cThisIsAClass::~ then it
would immediately select the destructor in the auto-complete listbox.
hitting Enter or typing '(' would fill in the Dtor name. Unfortunately,
because they are no longer listed in the auto-complete listbox, you have to
type it all out again.

What gives, and is there any way to fix it?

Thanks in advance,

A Ratcliffe
 XXXX@XXXXX.COM 


2.Auto Shipping Auto Shipping Scheduling:car moving auto transport

3.Problem with auto-indent

I am working in a Visual Basic application, modifying existing projects and 
code.  For the most part, the auto-indent seems to be going what it's 
supposed to.  But occasionally, when I'm modifying or deleting code, the 
auto-indent for surrounding code seems to get messed up.  Code is indented 
one or more times when it shouldn't be.  

I have tried to remove the indentations manually, but when I move to another 
line, the incorrect indentation reappears.  This seems to be random - for the 
most part, the indentation is working correctly.

Has anyone seen this before, and have you been able to fix it?

Thanks!
Dave P.

4.Auto Complete Drop Down Problem

Hi
I have some javascript which allows me to have some sort of
autocomplete functionality for drop downs but I cannot get the
selectedIndex event to fire when the user selects the item from the
drop down. Typically I want the user to be able to select from a drop
down by typing and then autocompleting depending on what he types.
Then I need the selectedIndex changed event to fire so that I can do
some run serverside code.


C# as follows:

myDDL.Attributes.Add("onkeydown", "checkKey(this, event);return
false;");


javascript as follows:

var searchID;
var searchValue;

function checkKey(oList, e) {
    // Re-initialize if the
    if(oList.id != searchID) {
        searchID = oList.id;
        searchValue = "";
        }

    var theKey;
    var binIE;
    // check for browser event model
    if(window.event) { theKey = window.event.keyCode; binIE = true; }
    else { theKey = e.which; binIE = false; }
    logThis("new keycode = " + theKey);
    if(theKey == 8) { // check for backspace
       searchValue = ""; // clear the filter
       }
    // check for alphanumeric keys and append to the search value
    else if((theKey >= 48 && theKey <= 57) || (theKey >= 65 && theKey
<= 90) ||
     (theKey == 32) || (theKey >= 96 && theKey <= 105)) {
        searchValue += String.fromCharCode(theKey).toLowerCase();
       }
    else { return false; }
    // loop through the list to select the proper item
    if(searchValue != "") {
       for(var iCheck=0;iCheck<oList.options.length;iCheck++) {
 
if(oList.options[iCheck].text.toLowerCase().indexOf(searchValue) == 0)
{
             oList.options[iCheck].selected = true;
             return;
             }
          }
       }
    }

5.auto-indent in vb editor

Is there a way to auto-indent code in the VB editor for macros in
Excel?  That is, if my code looks like:

if a = 7 then
call b
end if

change it to:

if a = 7 then
    call b
end if

Thanks.

Edward

6. Can VB auto Indent a whole block code

7. Auto Indent - what I am missing?

8. Auto html format/indent in Visual Studio .NET?



Return to VB.NET

 

Who is online

Users browsing this forum: No registered users and 87 guest