Hide Subroutines/Outline

Feb 5, 2009

The Visual developer express outline provides hide/plus-minus signs throughout the HTML code, and it does this for Class's, but not for my subroutines in an ASPX file.Is there a way for it to do this, so I can reduce subroutines I'm not working on at the moment? I know I can highlight areas and hide, but it's kind of clunky to do quickly through many subroutines if I have 2k lines and a hundred subroutines.

View 1 Replies


ADVERTISEMENT

Getting The Outline Of A Region?

Feb 17, 2011

I have a custom-shaped form created by setting the Region to an image. I want to be able to highlight the edge of the form when it has focus. To do this I believe I need to get the outline of the form and convert it to a path so I can draw a two-pixel highlightaround the edge of the form.

View 6 Replies

Forms :: Getting The Outline Of A Region?

Feb 17, 2011

I have a custom-shaped form created by setting the Region to an image. I want to be able to highlight the edge of the form when it has focus. To do this I believe I need to get the outline of the form and convert it to a path so I can draw a two-pixel highlight around the edge of the form.

(1) Is this the correct approach?

(2) If so, how do I get the outline of the region so I can call DrawPath?

View 3 Replies

How To Add The Document Outline Window

May 7, 2010

I've just downloaded VB Express 2010 and I can't work out how to add the document outline window.

View 2 Replies

Outline Squares Once Have Created A Map?

Oct 30, 2011

[code]This colours the squares on the map, but I wish to have an outline between them so as to make it a grid. Also is there any way of getting a thicker border?

View 1 Replies

Outline The Text In Black?

Jun 22, 2010

I have some white text I am putting over a very light background. Is there anyway to outline the text in black? After some googling it looks like there are some pretty complicated solutions, but I am looking for something like a check box that says "outline". Is there such a beast?

View 6 Replies

Change Color Of Group Box Outline?

Jan 6, 2009

Is there anyway to do this? Depending on the background color of the form, it is sometimes hard to see the light grey outline.

View 1 Replies

Create Overview 'outline' Of Most Important Sections Of An App In Program?

May 1, 2009

I want to code in our VB.net to be a little easier to follow both to improve readability and also make it a lot easier to know the best place to put a new bit of code/feature.

Essentially, I'd like to have a 10,000 foot "outline" of the code" with hyperlinks from the outline to the code.

It needs to be portable, so BookMarks won't do the trick (I think). I'm thinking maybe TODO comments. I'd like to create our own Todo style comment like "Outline" or something but that keyword would need to be in the config file for VS as well (but then it's just one thing to keep sync'd).[code]...

View 4 Replies

VS 2008 Color Outline On Text When Using Transparency? (56k Warning)

Jun 10, 2009

I used my forms TransparencyKey property to make the form background invisible, but to keep the controls 100% visible. But, when I add a label onto the form, a border or outline shows up around the text (doesn't matter which color I do it with). My friend says that this isn't fixable and he said that it doesn't happen in VB6. I'm tempted to remake the project in VB6, but Windows 7 is being released soon and compatibility is a must.

What about C#? Does the issue occur as well? If not I'll just go with that.

View 3 Replies

Added Three Subroutines To A Form?

Oct 30, 2009

I recently added three subroutines to a form, and as a result of adding only the three subroutines, I have noticed some weird behavior in the form and I can't pin down why these three subroutines would cause it.

View 16 Replies

Dynamically Generate Subroutines?

Mar 20, 2010

To detect 'death of player' I am using the mouseleave event of my picturebox background (background1). Unfortunately this triggers both when the mouse enters an 'evil' and the 'points' and ends the game without the player being able to collect points.

The obvious way to solve this would be to swap detection to entering evils.

Unfortunately I am dynamically creating my 'evils' and do not know how to also dynamically create subs to deal with MouseEnter. Here is my code for generating the 'evils'

'The number of evils (asteroids)
Dim evilcount As Integer
'A count for use with comparison to evilcount

[Code]....

View 2 Replies

Event Interferes With Subroutines

Dec 14, 2009

I'm struggling with an event related to my communications class.I'm calling a 'DataChange' function via event handler any time I receive new data over my serial connection. I then proceed to load that data into a DataGridView, perform some formatting, etc for the users. I'm getting a ton of problems due to the frequency at which the DataChange event is called and seems to steal the focus out of othert subroutines and functions mid-process.For example, I'll attempt to transmit data back to the serial device. After I format the data, but before I can actually call the Send function from my library the focus is directed back to DataChange and I never actually transmit my data.

Is this a problem best addressed by threading the DataChange related routines, unhooking the DataChange event before a function or routine then rehooking, or is there some basic principle I'm not implementing.

View 2 Replies

How To Pass Array Between Two Subroutines

Feb 4, 2011

I have 2 arrays X(n) and Y(n) where n can vary programmatically, no set value. I want to pass these two arrays between two subroutines.

Sub sub1()
...
call sub2(X,Y,n)
end sub
sub sub2(x,y,n)
...
end sub

I want to know how to prepare the arrays for the "call sub2" and how to extract the arrays in "sub2".

View 5 Replies

Managing Multiple Subroutines?

Feb 25, 2009

have been writing code to replace an old Fortran program. The Fortran program had very organized subroutines which could be called from anywhere in the project. Most of these were relatively small and left a small, easily followed main routine. I'm converting over to VB.net and when I write the subroutines they are all on the same form. Wading through 50-100 subroutines on one form is going to be messy.

View 3 Replies

Passing ArrayLists Between Subroutines?

Jun 2, 2009

I am trying to convert an algorithm to use them in order to save memory. However, I am struggling to achieve error-free code while using "Strict On".

Here is a basic version of the code I am attempting to use.

Code:
Option Explicit On
Option Strict On
Module Program

[Code]...

It works when I do not use the Strict option. How do I improve the code to compile error-free?

View 4 Replies

Send Data Between Subroutines?

Apr 22, 2011

I would like to send the variable "dst" from the Combobox1 sub to the Data sub. [code]...

View 1 Replies

Hide/Show Items - Possible To Hide A Group Of Text Boxes From View In A Form

May 5, 2012

I'm curious if it is possible to hide a group of text boxes from view in a form until a particular condition is met, and to have a custom set of text boxes for that condition. To give an example; I want radio buttons offering choices for a manner of searching records, the user selects one and then a specific set of text boxes are displayed for the user to utilize, if a different option is chosen a different set of text boxes will be shown. Is this something that can be done?

View 7 Replies

Delegates - Calling Subroutines From Lambda In .net?

Oct 7, 2009

I find myself calling functions from lambdas frequently as the provided delegate does not match or does not have sufficient parameters. It is irritating that I cannot do lambda on subroutines. Each time I want to do this I have to wrap my subroutine in a function which returns nothing. Not pretty, but it works.

Is there another way of doing this that makes this smoother/prettier? I have read that this whole lambda inadequacy will probably be fixed in VS2010/VB10 so my question is more out of curiosity.

[Code]...

View 2 Replies

Programming With Excel: How To Call Other Subroutines In The Right Way

Dec 21, 2011

am developing an application automatingExcel 2011 from Visual Studio2010 with Visualasicthe problemis that I can call other subroutines.I developed the following subroutine to addformatting to the selected ce

View 3 Replies

Screen Elements And Sequential Subroutines

May 22, 2011

Working on my major project for my last year of school worth 30% and am having issues with getting screen elements (buttons, labels, picture boxes, etc.) to update before or during a sequential sub program or function.

For example, I have a series of picture boxes that require to be clicked on to activate certain commands. Here is the code for one of the picture boxes, picX3Y0, when it has been clicked on:

If picX3Y0.ImageLocation <> imageFolder + hiddenImages(3, 0) + ".png" And imagesSelected < 2 Then
If x1 = -1 Then
x1 = 3

[Code].....

View 4 Replies

Sending Excel Objects To Subroutines

Dec 14, 2011

As it is right now I have a bit of code that kind of looks like this (a little paraphrased but Im sure you get the idea)[code]I thought for sure the above would work but it still seems that I am missing something, when I open the excel sheet nothing was printed. This would cut down the lines of code that I have in half easily, so I would love to find a solution for this [code]But the excel sheets still do not update with the new information.

View 1 Replies

VS 2010 Sending Array Between Subroutines?

Dec 10, 2010

I'm having trouble with passing an array between subroutines

I have an array called "lines" which is loaded from a text file and then edited according to a series of checkboxes within one subroutine. Each line in the array is essentially a line from the text file

I then need this array passed to another routine so that it saves to a new text file once the save button is pressed. (in this case just the top 5 lines)

At the end of the section that creates the array i have placed this

From File Edit
Call Savefile(Lines)

The section of code below is from the section once the button is pressed

Save Code
Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Savebutton.Click

[Code].....

View 3 Replies

Writing Shared Subroutines In A Class?

Dec 8, 2009

AdamSpeight2008, on 19 Jul, 2008 - 10:50 AM, said:Labels You have a label on a form and If you're using Label1.Caption = "Text for label" it's VB6 If you're using Label1.Text= "Text for label" it's VB.Net Buttons You have a button on a form. To set the text on the button.You're using Button.Caption= "Text on button" it's VB6 You're using Button.Text="Text on button" it's VB.Net

View 2 Replies

Open A Form As Invisible And Be Able To Still Call Subroutines From It?

May 17, 2011

1. If i have 2 projects in the same solution, how do i use one to open the other?

2. How would I open a form as Invisible and be able to still call subroutines from it?

View 6 Replies

COMPort Reference In Subroutines VB Express 2008

Sep 21, 2010

I'm trying to communicate through a serial port with separate subroutines for establishing the connection to the device and handling routine messages. I'm able to establish the connection, but reference to the COMPort in another subroutine fails with a message that the port is closed. I can successfully communicate using COMPort.Write commands within the connection subroutine, so I know that works. How do I pass a reference for the comport to other subroutines?

[Code]...

View 6 Replies

IDE :: Backgound Worker - How To Call Functions And Subroutines

Jun 10, 2009

Visual Studio 2008, Standard Edition VB.NET I have only limited experience using the background worker, and all that I've done with it thus far was fairly straightforward and worked fine.

I am now looking to run a process in a background worker which calls various functions and/or subroutines, but of course it generates an error indicating that it's on the main thread (or something like that - I don't recall exactly, but that was the crux of it).

View 3 Replies

Make Subroutines / Properties Inactive In Classes?

May 27, 2010

I am working on a bitmap class module in Visual Basic 2010 that has an option to create a graphic grid on the bitmap.

[code]...

View 3 Replies

Transfer An Array Of Variable Length Between Subroutines?

Feb 3, 2011

I have 2 arrays X(n) and Y(n). I would like to pass them between subroutines:

Sub sub1()
...
call sub2(X,Y)[code]...

The problem comes when n can be changed in sub1 say a textbox. How do you transfer an array of variable length between subroutines?

View 3 Replies

Turn Off Auto-add Of Subroutines In Visual Studio?

Nov 20, 2009

My project is built in VB.Net.Many times I find that Visual Studio has added subroutines to my code files even if a subroutine of the exact same name already exists. This can cause debugging nightmares as the new empty routine seems to override the correct routine. I think this can happen if I double-click on a control in the form Design view, but I try not to do this.Is there any way to turn this off?

Example:

Hand entered

Private Sub TS_Main_View_Network_Click Handles TS_Main_View_Network.Click

System added:

Private Sub TS_Main_View_Network_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TS_Main_View_Network.Click

I guess that the system adds the second routine because the argument list (which is unneeded but may be required) list is missing from the first routine.

View 2 Replies

VS 2008 Creating Subroutines For Objects Which Are Yet To Be Created?

Mar 12, 2012

I'm creating a list of labels dependent on a few variables based on search results.Say I have 10 search results, 10 labels will be created within a for each statement, however I want to create subroutines for these 10 labels with an onclick event, is this possible

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved