473,670 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

code collapsing in vb.net 2005

Here collapsing seems to work differently in vb.net 2005 from that I use to
see in vb.net 2003:

Using the collapsing in vb.net 2003 shows the whole interface of the
methods, subroutines, functions, etc, while in vb.net 2005 those parts after
the name (arguments, etc) are missing. Is there an option to show them as
well, or this is the only working method of the collapsing?

What amazed me that the collapsing in the vC.net 2005 shows the whole
interface as well.

I'm sorry about the stupid question :-)
Nov 8 '06 #1
5 1957
Hm... No answer... Interesting... Perhaps, you couldn't understand the
question, because of my bad English. So, I'll try to explain it a more
particularly:

I have a small piece of code in my Visual Studio 2005 Basic module, as
follows:

Private Function IsExcelInteract ive(ByRef oExcel As Object) As Boolean
Do While True
Try
Dim blnTest As Boolean = oExcel.Applicat ion.Interactive
Return False
Catch e As Exception
< some bla-bla-bla in some strange (Hungarian) language;-) >
Application.DoE vents()
End Try
Loop
End Function

If I collapse this function in some way, then the related code consists the
following line (in an awfull grey box):

Private Function IsExcelInteract ive ...

instead of :

Private Function IsExcelInteract ive(ByRef oExcel As Object) As Boolean ...

as it was in the editor of the VS.NET 2003, nicely.

My question is:

1. Is this by design in Visual Studio 2005 Basic ?
2. Or there is an option to set to show the whole interface of the
subroutines and
the functions somewhere, what I missed?

My note in my first question referred to my strange experience, that
collapsing and routine in Visual Studio 2005 C++ the source code editor works
as I expect it (i.e. it shows the subs/functions together with their
arguments, etc.)

Any help would be appreciated!
Nov 16 '06 #2
It's a poor design decision on part of the IDE developers. If you put your
mouse over the collapsed code, you will get a tool tip that shows a lot
more.

Mike Ober.

"SlowArrow" <Sl*******@disc ussions.microso ft.comwrote in message
news:E7******** *************** ***********@mic rosoft.com...
Hm... No answer... Interesting... Perhaps, you couldn't understand the
question, because of my bad English. So, I'll try to explain it a more
particularly:

I have a small piece of code in my Visual Studio 2005 Basic module, as
follows:

Private Function IsExcelInteract ive(ByRef oExcel As Object) As Boolean
Do While True
Try
Dim blnTest As Boolean = oExcel.Applicat ion.Interactive
Return False
Catch e As Exception
< some bla-bla-bla in some strange (Hungarian)
language;-) >
Application.DoE vents()
End Try
Loop
End Function

If I collapse this function in some way, then the related code consists
the
following line (in an awfull grey box):

Private Function IsExcelInteract ive ...

instead of :

Private Function IsExcelInteract ive(ByRef oExcel As Object) As Boolean
....
>
as it was in the editor of the VS.NET 2003, nicely.

My question is:

1. Is this by design in Visual Studio 2005 Basic ?
2. Or there is an option to set to show the whole interface of the
subroutines and
the functions somewhere, what I missed?

My note in my first question referred to my strange experience, that
collapsing and routine in Visual Studio 2005 C++ the source code editor
works
as I expect it (i.e. it shows the subs/functions together with their
arguments, etc.)

Any help would be appreciated!


Nov 17 '06 #3
Thanks, Michael! It's good to know, that this is by design, and the error is
not in my toolcase... or in my watermelon ;-)

However, I am a bit surprised, that there were NO people expressing sorrow
about it. Do they like and prefer it, or just accept it?

But to solve the comfort of those blind people as me, I think it would be
nice to give options in the environment

1. to provide a selection facility between the short and the long form
2. to provide a modification facility of the actual (either short or long)
form among the Display items of the Visual studio - Environment - Fonts and
Colors, to change the color of the BOX around the text (or even not to show
it at all;-)

Still I would appreciate any comment, especially from the develeoper's side:)
Nov 17 '06 #4
However, I am a bit surprised, that there were NO people expressing sorrow
about it. Do they like and prefer it, or just accept it?
To be honest, having just the "short" version doesn't really bother me.
Basically the only time I need to see the complete signature of a
method is when I am using it in code (in which I can view the
signatures via intellisense) or when I'm just browsing through my code
(in which case I use the tooltips that Michael mentioned.). However, I
do agree that having the option to customize it would be a great
feature - after all not everyone prefers the same ide style.

Thanks,

Seth Rowe
SlowArrow wrote:
Thanks, Michael! It's good to know, that this is by design, and the error is
not in my toolcase... or in my watermelon ;-)

However, I am a bit surprised, that there were NO people expressing sorrow
about it. Do they like and prefer it, or just accept it?

But to solve the comfort of those blind people as me, I think it would be
nice to give options in the environment

1. to provide a selection facility between the short and the long form
2. to provide a modification facility of the actual (either short or long)
form among the Display items of the Visual studio - Environment - Fonts and
Colors, to change the color of the BOX around the text (or even not to show
it at all;-)

Still I would appreciate any comment, especially from the develeoper's side:)
Nov 17 '06 #5
Dear Seth, thanks for your comment :-)
To be honest, having just the "short" version doesn't really bother me.
Perhaps, that is just an oldfashioned custom, which my brain (struggling in
the sweet juice of my melon;-) will overcome after a while. During coding a
routine I always see the whole interface. In collapsed state they seem to be
so nude, and my brain is looking for some more... More seriously, perhaps, I
will accustomed to the new fashion after a while... or if the developers of
the IDE don't help I will make an editor extension :-)
after all not everyone prefers the same ide style
I think, still there can be circumstances, when showing the long version
would be very useful: to make an overview of all the definitions.

Nov 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2276
by: rigga | last post by:
Hi, I am trying to code a menu for a webpage, the menu is broken up to groups i.e: Home Group1  menuitem1  menuitem2  menuitem3
42
2608
by: Alan McIntyre | last post by:
Hi all, I have a list of items that has contiguous repetitions of values, but the number and location of the repetitions is not important, so I just need to strip them out. For example, if my original list is , I want to end up with . Here is the way I'm doing this now: def straightforward_collapse(myList):
5
1890
by: Borris | last post by:
<div style="background-color: blue; width: 500px; height: 300px"> <div style="background-color: red; margin-top: 100px; margin-left: 100px; width: 300px; height: 100px"> </div> </div> Where will the red box be positioned? Even experienced web developers often expect it to be in the middle of the blue box, but instead (on standards-compliant browsers) the blue box is lowered to line up its top edge with that of the red box. This is...
2
2419
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html Basically, for some tests I want to specify the height of an example DIV element inside the BODY using percentages of the viewport height. For this to work the BODY container should fill the viewport height where I'm using:
1
1733
by: yb | last post by:
Hi, I'm looking for clarification of css 2.1 specification in section 8.3.1 "Collapsing Margins" The 6th bullet reads "If the top and bottom margins of a box are adjoining ..." I won't paste the whole point here, its too long. But, from this first line does this mean that the element has empty
6
7372
by: Jack | last post by:
Hello, I would like some advice on how to disable the behavior of treeviews to expand and collapse when double clicked upon, but still allow the user to use the plus and minus on each node. Thanks in advance! Jack
3
3281
by: Simon Harvey | last post by:
Hi all, Can anyone tell me what the easiest way to achieve a collapsable panel area in a datagrid is? Do I need to find a third party panel control or does the datagrid/gridview somehow support this functionality inherently? Many thanks to anyone who can advise Simon
4
3582
by: Andreas Prilop | last post by:
How many spaces should be displayed in A <span style="display:none">x</span> B between "A" and "B"? I notice that Mozilla displays one space and Internet Explorer (5 & 6) displays two spaces. See http://www.unics.uni-hannover.de/nhtcapri/temp/white-space.html for a cumulative effect. Why is this important? Instead of "span", think of the "rp" element
0
1057
by: Jack | last post by:
Hello, I am looking to denormalize XML into a few tables, does anyone know of open source software that I can use to map the collapsing and then generate the SQL ? I know xmlspy does this but looking to see if there are alternatives. My goal is to load the large XML data files into a database, but in some cases, the raw XML produces around 800 tables which is unmanageable. Thanks,
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7415
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6213
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4390
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1792
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.