VS 2010 : Rename A Minimized Block Of Code?

May 11, 2012

I minimize a block of code, and instead of the text inside the rectangle being "..." I need to write smth of my own. I knew how to do it some long time ago, but I've forgotten it now.

View 6 Replies


ADVERTISEMENT

How To Run Code While A Program Is Minimized

Apr 16, 2010

Im doing a small project in visual basic which involves lighting up leds through the parallel port and turning them on and of. each led is controlled by a checkbox on my form and they only come on when the checkbox is checked i currently have this code

[Code]...

View 2 Replies

Forums Code Addin Alternative To Insert Code Block

Feb 23, 2010

There has been an Visual Studio addin created by Heslacher based on code by JohnWein which allows one to copy code in Visual Studio and paste it as HTML code block here in the forums.urls...

View 10 Replies

Comment Multiple Lines Of Code/block Of Code In VB?

Jul 1, 2009

How to comment multiple lines of code/block of code in VB?

View 5 Replies

Code To Rename A File In The Tape?

Mar 21, 2009

i have one file in a tape,and i want to rename it to the today date automaticllyi want to use VB for thatfirst how vb can find a path of a file in a tape??and second how can in rename that file in a tape to the today date or another name??

View 2 Replies

Rename The Hidden Code In A Property?

Dec 6, 2010

There's some code I have hidden via the Outline-Hide selection method, and the hidden code shows as a box with 3 dots. I saw that if you put some code in the #region - #end region area the hidden code box can be renamed, but region-end region cannot be used inside a property, so is there any other method to rename the hidden code in a property?

View 4 Replies

Rename Worksheet In Excel Through Code?

May 15, 2007

How to Rename one Worksheet in an excel file through code?Example Sheet1 to MyWorksheet using a code in VB.Net

View 2 Replies

VS 2010 Stop A Block Of Code Executing When User Clicks "Stop"?

Mar 1, 2011

I have a START and STOP button and when the user clicks "start" the program does a whole bunch of calculations and all. However, I noticed that when I was testing the program I clicked STOP the program continues to execute stuff.

My START code is basically a while loop that iteratively does some calculations.

So I just put a boolean variable as the while condition and when user clicks stop its set to false and when user clicks start its set to true. However, when I click stop, the condition is set to false yes but it still executes all the code until the condition is re-evaluated right...so my question is how can I get out of the while loop when user instantly clicks "stop"?

View 5 Replies

Code To Copy And Rename Data Within The Sql Server?

Apr 4, 2011

is there any code to copy and rename data within the sql server.actually i reated a database which will be like default template and ever company will have the similar database with different name.So what i want when a new company is created, a copy of default database will be created with new name.

View 2 Replies

Copy And Paste Code A Few Times And Rename The Questions

Dec 31, 2011

A while ago I wrote a quick and very very simple program to test myself on about 10 questions I needed to remember the answer to. I made a form with a label, text box and button. the label contained the question and the answer was entered into the textbox and the button was pressed to check the answer. the code i used was very similar to this:[code] Because I only had 10 questions it was fine to copy and paste the code a few times and rename the questions but now i am going to use this again but for a lot more questions (in the end there will be a couple of hundred) so i was wondering if any one knew a better way to do this? I was thinking maybe an array like 1 to hold the questions and 1 to hold the answers but i haven't worked much with arrays so I'm not sure how difficult this would be ?

View 1 Replies

Get And Set Assembly Code Block?

Apr 23, 2009

I want to get a 48 byte block of assembly code from the memory, save that code in a global array or whatever, then I wanna NOP everything from 0xF to 0x16, and write that into the memory, and then later I wanna use the global block to set it back, how can this be achieved in VB.NET?

View 4 Replies

Repeat A Block Of Code?

Feb 25, 2011

now if i've written a code, and then wrote that if a certain condition presents then repeat that code again including that if condition, so what is the code for this?

View 3 Replies

What Tag To Use For Posting Code Block

Aug 13, 2010

I have a simple question on posting to this forum: what tag to use for a code block?

View 4 Replies

Converting A String To Block Code

Apr 13, 2009

I was wondering, is their any way to change a string into a line of math code. I was working on a graphing calculator project and am having trouble splicing up everything into variables and coefficient and operators. Example, having this block of code work

[Code]...

View 2 Replies

Find C# Style Code Block?

Apr 14, 2009

I have a script file which uses code similar to the C# language, using { and } braces to start and close 'blocks' of code. Note that blocks can be nested.[code]...

Is it possible to use regular expressions to parse the code and return the name of each block separately? So in the above example, it should return block1, block2 and block3 but NOT "block 2 contains" or "and another" (no nested blocks).

View 10 Replies

Select Case Block W/code

Nov 24, 2011

'This program is to ask for input from a customer as to the type of lift ticket desired, whether it will be for a half 'day or full day and the total number of days desired. It will then calculate the total ticket price plus a slope 'charge of $10.00, a 10% sales tax will be added to the total of both the price and charge.'The checkboxes were designed to order one type of ticket at a time, when one box is clicked the 'other checkbox dissappears. Clicking the box again resets them both to visible.[code]

View 16 Replies

Stopping While Executing A Block Of Code

Oct 10, 2010

I'm trying to replace text using this method:

Add each characted to a String list (List(Of String)), execute the replace function for every type of character (for example: Text = Text.Replace("A", "0AA") Text = Text.Replace("a", "1AB")), but there's a problem: it replaces the text, but it replaces those replaced characters too, so when I replace "A", it will result something like this: "0AAB AAA 0AB"... (a long text)), and then add the characters to the result string

how make the application stop and start the replacing of the next character

I'm trying to use this code block:

Dim ReturnedString As String = GivenText
Dim ListToEncode As New List(Of String)
Dim curr As Integer = 0

[Code].....

View 16 Replies

VS 2005 Change Block Of Code In VS.Net?

May 6, 2009

I'm wondering, is there a utility out there that will let us select a block of code and be able to replace it?

If there is none then I would want an idea on how can this be done so I could make a small utility for this task.

View 4 Replies

VS 2008 Block Of Code In An Application

Oct 2, 2009

I have a block of code in an application I have written. I have tried two different variations.Below are examples of the method I used: [code]
The second example adds only three more lines of code. Yet, the app would run at about 10% of the speed as it would in the first sample.

View 9 Replies

VS 2008 Improve On Block Of Code?

Jun 13, 2009

I have this block of code that splits txt/csv files. It is working just fine but its a but "ghetto"

[Code]...

View 2 Replies

Checking The Code Line By Line And Found That The Code Does Not Enter The IF Block?

Jan 15, 2012

I am using the given code to copy my database files...it works like a charm in debug mode but as soon as I create a setup, it stops working. The error is

"Database Detach Failed"

I tried checking the code line by line and found that the code does not enter the IF block.I have no idea why.

Public Sub bk()
Try
Dim strDatabasePath As String = My.Computer.FileSystem.CombinePath(My.Application.Info.DirectoryPath, "LIC.mdf")[code].....

View 2 Replies

C# - .NET Will Stop Debugging Run The Code In The Finally Block?

Jun 18, 2012

Well, I've read (and learned) that the finally block doesn't always execute its code (even apart from pulling the plug).FYI For more information, see try catch finally question

[Code]...

View 1 Replies

Default Block Of Code When Implementing An Interface?

Feb 26, 2010

I have an interface that I've defined and am working through a bunch classes that will implement it. I'm noticing that in 95% of the implementations, I'm only changing a few lines of the code, so I'd like to know if it's possible to have my IDE generate a block of code inside of a method upon implementation, much the same as implementing IDisposable.not mark my posts as answered. It is extremely rude. You have no idea if you've answered my question.I WILL come back and mark the ones that are answers, as answers.

View 7 Replies

Feature Request: New Code Block Statement?

Dec 22, 2009

It's just before while I found that expression (see my signature) is possible, so this request is not about what 'I am missing', but what I can think of. It would be nice to have named sections of code in visualbasic, which would replaced almost everything you can miss about GoTo. Imagine this:

Section Compression
For Each item ...
If Not item IsV...

[code]....

View 4 Replies

Find The Parent Window With This Block Of Code?

Oct 15, 2008

i am using vb2008: now i can find the parent window with this block of code

Private Sub Button11_Click_2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
Dim theHandle As IntPtr
theHandle = FindWindow(Nothing, TextBox9.Text)

[code]....

i do know how to use sendkeys, but if i use that and click on something else while i send the keys it picks up that window and trys to send the keys there thats what i dont wantnow using the top block of code along with this module how can i get the childwindow with focus on the "Richcntl" box to send text to itin a diffent click button:in this block:

Private Sub Button13_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
End Sub

View 2 Replies

Know The Code To Address Logical Block 0 Of A Disk?

Feb 25, 2012

Does anyone know the code to address Logical Block 0 of a disk? This is my dump of block 0 of a multipartition disk.

[Code]....

View 15 Replies

Skip A Code Block When Synclock Is Active?

Nov 3, 2009

Is it possible to skip a code block when a synclock is active?

For instance:

A object of class Bicycle is used by thread 1 and has a synclock on it.

Then thread 2 comes along and needs to know if the lights of the bike are working. But if there is a synclock active then thread 2 just forgets about checking the lights and goes to make a delicious chocolate pie.

View 2 Replies

What Sub/Function/Block Of Code Produced Error

Mar 2, 2010

I'm creating some software in visual basic 2005 .Net. My software keeps a log file. If the applications encounters an error, it writes to this log file. Is there a way I can easily produce what sub, function, or block of code that produced the error?

Example:

Sub MessageUser()
Try
msbox("Hello")

[code]....

Since msgbox is spelled incorrectly this will produce an error. I want to know what sub caused the error, in this case MessageUser.

View 4 Replies

VS 2010 Rename Files On Server, Via FTP?

May 21, 2010

A while back I asked about going beyond basic FTP upload/download on this thread, and the response I got about using FtpWebRequest was very helpful. Now I'm looking at something that doesn't seem to be offered in FtpWebRequest: renaming a file on the server.

My situation: several times each month I update MyConfig.csv on my website. This file is generated on my computer by Excel to control who can access which files on the site, and it runs a bit over 1 MB. The scripts on the server parse through the file to keep things running smoothly. Given that the file can take some time to transfer, I typically will upload NewMyConfig.csv to the server with a commercial FTP program, then when it is in place I rename the existing file to MyConfigBackup20100521.csv and then rename NewMyConfig.csv to MyConfig.csv. This way, if there is a problem with the upload, everything keeps running smoothly because the existing MyConfig is undisturbed, and the window when a customer might get an error from the scripts because there is no MyConfig.csv is reduced to a couple of seconds between the two rename operations.

Now I'd like to automate all of this to happen with a VB program, but it looks like FtpWebRequest only allows you to rename directories, not individual files, on the server.

View 6 Replies

VS 2010 - Copy And Rename File From Directory

May 14, 2011

I am making a program where I want to copy & rename a file. I want to copy a file from a directory which I can choose (by OpenFileDialog1.FileName), then copy or move it to a directory. This directory has been newly made and named (progdirCollin). Let's say the file is called cv.pdf then I want it to be moved to the new dir and rename it Collin.pdf. The extensions can also be .rtf or .doc and I want them to be left unchanged. So I want to copy or move a file, rename it, but keep the extension of the file, which can be all kinds of file (vb.pdf to collin.pdf or vb.txt to collin.txt.)

Explained :
1. Put in the name of the person = V
2. Pick a file with the openfiledialog = V
3. Make a directory with the name of the person in the appdir = V
4. Copy / Move the file to the new directory = V
5. Then rename the file to the persons name, but keep the .doc / .pdf / .rtf etc = ?
All V = Done

View 5 Replies







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