VB Comments In Completion Box?

Dec 30, 2010

I do not understand vb comments. I read that it is possible to give a hint in the code completion box when someone (or myself?) is using my code. But I do not find something in visual studio.

View 4 Replies


ADVERTISEMENT

C# - Different Color For Code Comments And XML Comments?

Sep 26, 2011

I've noticed that in C# XML comments and code comments can have different colors by changing the settings in Tools > Options > Environment > Fonts and Colors > Display Items:

- Comment: controls code comments XML comment: controls XML comments

This works well in C# <summary>This XML comment is green</summary>

[Code]...

View 2 Replies

Message Box On Progres Bar Completion?

Aug 11, 2010

Is it possible to make a message box popup when the progressbar is totally filled up? (VB 2008)

View 9 Replies

Asp.net - Execute Sql Script And Not Wait For Completion

Aug 26, 2010

I have a sql stored procedure that runs for about 3 minutes, I am looking to execute this stored procedure from asp.net, but I know that if I do, that asp.net will most likely time out. I'm thinking of just creating a job within sql to have it execute that stored procedure, and have asp.net call a stored procedure to call that job. I have a table that is updated when the stored procedure starts, and when it ends.

My application will use this to determine when the script has finished, however, I wanted to know if there is another way to run the stored procedure and not have it wait for it to finish to push a response back. I just want to know if there is a more efficient way to do this, or if I should just stick to creating jobs for scripts that take forever to run.

View 3 Replies

File Operations Return Before Completion?

Jun 5, 2011

The file operation calls are returning before they are actually complete, or the disk is being cached somehow. What is happening here is that a zipped file containing a number of files to be updated on the users machine has been unzipped and the filenames are returned in an array called 'newfiles'. Each actual file unzipped is temporarily preceded by a '~' character. We rename each existing file to <filename>.old, then delete all the old files. However, sometimes when the code runs, the old files are not deleted. The only explanation for this I can think of is that the second 'Fileexists' is not seeing the files because the filesystem has not caught up at that point. I've never seen this behaviour documented anywhere, though. It works fine when single-stepped.

For Each fn As String In newfiles
If .FileExists(fn) Then
'rename existing file to .old
delpath = Path.ChangeExtension(fn, "old")
.RenameFile(fn, delpath)
End If
'rename the new file to correct name i.e. remove "~"
[Code] .....

View 9 Replies

Forms Completion Using Windows Authentication?

Apr 6, 2009

I am reading the article at: [URL].. Forms Authentication in ASP.NET 2.0". I am using VS 2008 and .Net Framework 3.5. I don't know if this makes a difference, so please let me know.

A user logs on to our system in the morning Based on their Windows Authentication, they can access several intranet applications. For a particular application, the user has to select their Organization or Position or Location.

Based on the user's Windows Authentication, once the user selects one of the three above and clicks a "Submit" button, a second page is launched that shows certain information about the selection based on the User's authentication.

For example, if User selects Organization, the following information will be returned based on the Organization THEY are a member of. They can not access information from OTHER organizations, ONLY their own based on their login credentials. This information returned as a result of the dropdownlist selected value includes: street address, city, state, zipcode, Bus. Unit #, etc. appears in labels on the second page.

The labels can be dynamically created at runtime. (I dont know if a User control can be created to do this, since the "Position" and "Location" will contain the same address information, and it doesn't matter at the moment). I just want to populate the labels on the second page (or on Postback) based on the User's log in credentials after they click the "Submit" button. Or, if they don't have to click a button, just have the information complete based on the selected value of the dropdownlist control.

View 1 Replies

Get The Data Intellisense And Name-space Completion?

Jul 7, 2009

WHERE the values for intellisense and namespace/class/member completion works. I figured if I can drill into where/how it is deriving that data I can try to reconfigure my project so that it will resolve my namespaces correctly.

View 2 Replies

Increment A Progressbar Relatively To The Completion Of A Thread?

May 5, 2012

how to increment a progressbar relatively to the completion of a thread?

View 6 Replies

Progress Bar To Show Completion Of Task?

Aug 19, 2010

I have developed a task in VB. I want help to develop a progress bar to show a task completion by the user. I know how to make progress bar with time but I am looking for progress bar with respect to task completion. And once task is finished by user, the task will show either task has been done or task should be disappeared just to let user that task has been completed.

View 9 Replies

Timing A Method From Execution To Completion?

Mar 6, 2012

So, I got an SSD drive for my computer the other week, and decided to have a little fun. I wrote a program which starts every single program in the Windows Programs folder in the Start Menu, via clicking the "Go" button on my Form. It works beautifully. Only thing I would like to add to it is some sort of timer, which I have never tried in any programming language. I would basically like for a timer to be running, counting in real time (seconds), until my loop ends, and then display the total time taken at the end. I was thinking about setting a variable equal to the current time, before the loop starts, and then another equal to the time right after it ends, and then taking the difference of the two.

View 7 Replies

Perform A Search Starting From The Completion Of A Form ?

Nov 19, 2009

I want to link sql server and vb.net (ADO.NET) . I'm using visual basic 2008 express edition and sql server management studio.

My problem is how to perform a search starting from the completion of a form (in vb.net ). On pressing the button search it verifies if the records are in the table (in my case FoaieParcursMasina).

SQL Server:
Step1: Create the table and insert into them the values (full DDL):
-- creating the table FoaieParcursMasina
CREATE TABLE FoaieParcursMasina

[Code]....

View 3 Replies

Sends An Email To A User On Completion Of A Form?

Oct 18, 2011

I've created an application that sends an email to a user on completion of a form. This works fine for me with my credentials but for other users they are getting a "The remote certificate is invalid according to the validation procedure" error.We use outlook and exchange and the email doesn't need to go outside only internal - so is smtp the right choice and is SSL needed?

[Code]...

View 3 Replies

Statement Completion In Visual Studio 2008 SP1?

Jul 10, 2009

After installing SP1 of Visual Studio 2008, code completion shows all types when an object member shows the parameter list. Before SP1, parameter list would only show related types.Take a look at this image for an example: This happens on a Windows 7 and Windows XP machines I have, all services packs installed.

View 1 Replies

VS 2008 Checking Thread Completion Before Continuing?

Apr 22, 2012

I'm having trouble checking the completion of multiple threads before executing more code.As an example, I started two threads:

**************************
Dim Thread1 As New System.Threading.Thread(AddressOf wordpress_checker_thread)
Thread1.Start()

[code].....

View 3 Replies

Auto-Completion Word In GridEx Janus - Used Column

Dec 8, 2009

I'm developing windows application with vb.net in my company.. when i'm trying to develop my skill. i get stuck at auto completion word in gridex janus.. i don't know how to make it.. i have make a collection string to put in value list grid column. but i cannot find code for auto completion word.

View 1 Replies

Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding?

Apr 17, 2012

I have used the following query for my task and it returns the table..

objSQLCon.Open()
Dim da As SqlDataAdapter= New SqlDataAdapter(strSqlQuery, objSQLCon)
da.Fill(dt)
objSQLCon.Close()

[Code]...

But the same query some times not working and I got "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding" sqlexecption error. I have searched and referred lot of links (cmd.CommandTimeout= 0) and I did not seen any usefull info for my case..

View 1 Replies

How To Report Result Back To Control Class Upon Completion

Aug 22, 2011

I need a few threads working simultaneously with URL requests in a VB.NET 2010 app. Once one of them finishes, it should continue with the next task in a list. I'm new to using threads. Since it seems like I can't declare an array of BackgroundWorker, I thought I'd have a control class that creates an instance of a task class for each task, which in turn starts a BackgroundWorker in its constructor.

However, with this approach I'm not sure how to report the result back to the control class upon completion. I had this vague idea that I could send a reference to an object in the control class (or to a public event I can trigger, is this possible?), but then I have to somehow store this address until the work is done. And I don't know how I can store the address from a ByRef for future use.

View 1 Replies

VS 2005 Wait Completion Of Multiple Backgrounderworker Before Resuming?

May 4, 2010

I am thining of using a boolean value per each backgroundworker to flag their completion and check all of the boolean values but there should be a better way,

View 3 Replies

MySQL - Timeout Period Elapsed Prior To Completion Of Operation

Jan 17, 2012

I am getting the following error:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding works fine with the other 400+ updates before this one. There are only 5k records right now, and update string works fine from myphpadmin.

mysqlstr2 = "update " & turncolor & piececount & " set status1 = '1' where layoutstring = '" & layoutstring & "' limit 1"
' mysqlstr2 value at error = "update black32 set status1 = '1' where layoutstring = 'rnbqkbnrppppppp................p.....N..........PPPPPPPPRNBQKB.R' limit 1"
Dim command3 As New MySql.Data.MySqlClient.MySqlCommand(mysqlstr2, cn2)
Dim rowsaffected As Integer = 0
rowsaffected = command3.ExecuteNonQuery

View 20 Replies

WebBrowser Form Completion - Fill In Text Boxes On The Page?

Dec 29, 2009

I have successfully navigated to the page I want and now I need to know how to fill in text boxes on the page. I used SendKeys.Send before but that was when the first box was already selected. I can't seem to get the box selected by tabbing at all. I can find the textbox id if that helps.

View 4 Replies

Modify .net's BackgroundWorker Class So That It Fires A Custom Event Upon Method Completion?

Nov 16, 2011

I have a BackgroundWorker in a vb.net program that is doing a lengthy data import routine. I want to modify its RunWorkerAsync method so that it fires a custom event on completion of the method. (So that a method in an automated process can respond to the event and resume its work). In a sense I want to 'extend' the RunWorkerAsync method to add an extra line of code--but I can't 'see' the code in the method (to just add the line raising the event) because BackgroundWorker is an MSDN class from Microsoft.The only solution that I can think of is to 'wrap' the background worker class in a wrapper that calls the .RunWorkerAsync method and then raises the event.

Public sub wrapperMethod()
myBackgroundWorker.RunWorkerAsync()
raise customEvent
end sub

Is there a design pattern that I might use? An easy way to address this with the .net language?

PS: Unfortunately, I'm automating some clanking legacy software and backgroundworker is used in many locations, so wrapping the backgroundworker will be a bit of work and may open bugs.

View 1 Replies

Xaml Editor In .Net Express / Visual Studio: Auto Completion Annoyance?

Mar 23, 2012

As I'm typing out Xaml in VB.Net Express 2010, it helpfully finishes certain things for me. Most of the autocomplete is fine, but some of it annoys me and it leads me to wonder if I'm missing something or doing it wrong.

If I type:

<GroupBox Header=

It automatically puts a quotation mark before and after my cursor. I've gotten used to the quotation mark before the cursor - I immediately start typing in whatever property I wanted. But now there is a quotation mark after my cursor! I have to reach over to the other side of my keyboard and press the right arrow key to move past it. I find this insanely aggravating, because it breaks my "flow" while I'm typing. Are you supposed to be able to press a close-at-hand key (like tab, but that doesn't work) to move to the other side of the quotation mark or do they really intend for you to have to constantly use the right arrow key?

View 1 Replies

Save Auto-Complete - Completion To Be Based Off Of Text That Has Been Previously Entered Into The Textbox

Apr 5, 2011

I want a textbox to have autocomplete. I want the completion to be based off of text that has been previously entered into the textbox. My method of saving seems to work but when i close the program and re run it the autocomplete suggestions arent there anymore.

[Code]...

View 2 Replies

.net - Checking For Comments?

Jun 2, 2011

i am writing a vb.net program which gets a c program as an input and checks it for errors,now i want my program to skip the comments in the c program,i have written some code but its not working

For Each line In TextBox1.Lines
sample = TextBox1.Lines(k)
Dim len As String
len = sample.Length

[code]....

View 2 Replies

.net - Put Comments On Each Line?

Mar 2, 2012

I used to be a C# developer so this commenting style was very easy in C#. This is driving me crazy but how do you do this in VB.NET without getting a syntax error?: Private ReadOnly Property AcceptableDataFormat(ByVal e As System.Windows.Forms.DragEventArgs) As Boolean

[Code]...

View 3 Replies

.net - Using Method Summary XML Comments?

Feb 9, 2011

I have been using the method summary XML Comments at the top of my procedures lately and am wondering if there are any logical or good practices related to this.I never put anything in the remarks because I put the description of the method in the summary tag. What belongs in the summary and what belongs in remarks?I seldom put anything in the returns tag because it seems like it would be redundant as I usually explain what is being returned in the summary. Should I simply keep the type of object returned in the returns tag?

View 4 Replies

.net-checking For Nesting Of Comments?

Jun 7, 2011

i am writing a program which takes a c program as input and it has to check whether there is a nesting of comments in that c program and gives an output based on that,how do i go about that

View 1 Replies

Add Comments To An Array Initialization?

Feb 24, 2012

Is there a way to add comments to an array initialization? For example:

Dim test As UShort() = { _
1, _
2, _
3, _
4 _
}

I'd like to add a comment on each line, but the obvious syntaxes fail (for obvious reasons)

1, 'test _
1 'test, _
So, am I out of luck?

View 10 Replies

Automatically Add Necessary Spaces To Comments?

Jul 5, 2010

When I'm writing comments in my code, I often forget to add the initial space after the comment identifier.

'this is a comment

when really it is supposed to be

' this is a comment

I realize this is quite trivial, and you could simply say "just add the damn space you idiot", but I'd really like to automate this so that I just don't have to worry about it. add the comment space?note I do realize that a catch all string replace or regex replace could screw up other things ... IE:

Dim something As String = "I'm a nerd"

would actually come out

Dim something As String = "I' m a nerd"

if it's only on a line by it's self and is not followed by a second single quote... IE: '' would not trigger the replacement.

View 3 Replies

Comments Are Not Stored To The Table?

Jul 16, 2010

I am working with a datagridview on my form and have a CellContent Click event as shown below;
[code...]

Now, when I check the checkbox Yes and type in the comments textbox, the Comments are not stored to the table. However, the checkbox is set to a true value.

View 4 Replies







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