473,383 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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 1932
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 IsExcelInteractive(ByRef oExcel As Object) As Boolean
Do While True
Try
Dim blnTest As Boolean = oExcel.Application.Interactive
Return False
Catch e As Exception
< some bla-bla-bla in some strange (Hungarian) language;-) >
Application.DoEvents()
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 IsExcelInteractive ...

instead of :

Private Function IsExcelInteractive(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*******@discussions.microsoft.comwrote in message
news:E7**********************************@microsof t.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 IsExcelInteractive(ByRef oExcel As Object) As Boolean
Do While True
Try
Dim blnTest As Boolean = oExcel.Application.Interactive
Return False
Catch e As Exception
< some bla-bla-bla in some strange (Hungarian)
language;-) >
Application.DoEvents()
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 IsExcelInteractive ...

instead of :

Private Function IsExcelInteractive(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
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
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...
5
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...
2
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 ...
1
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...
6
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. ...
3
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...
4
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....
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.