Commenting A Block Of Codes /* ... */?
Feb 27, 2009Commenting a block of codes /* ... */
View 5 RepliesCommenting a block of codes /* ... */
View 5 RepliesAccording to conventional programming, how is it to properly comment using the '''<summary> feature built into Visual Basic?Would I have to use the part that says
''' <param name="text">Description here
''' characters in</param>
''' <returns>The description</returns>
''' <remarks></remarks>
Here is the full commenting process; is it necessary to use all of it?
''' <summary>
''' Text here
''' </summary>
[code].....
This might be a really easy one but I couldn't seem to find an answer anywhere I'm trying to comment my code as follows
Session("test") = "JAMIE" _
'TEST INFO
& "TEST" _
'ADDRESS INFO
& "ADDRESS = TEST"
With the code above i'm getting the error Syntax error But when I remove the comments like so
Session("test") = "JAMIE" _
& "TEST" _
& "ADDRESS = TEST"
It works fine so my guess is that I cannot comment my code between the _ character.
My group is attempting to standardize on XML commenting for all of our classes and methods. We like the "Insert comments" option in VS 2005 but would like to add an additional tag <history> to the comments section. I know that we could probably do this manually each time we add a new class, but I would like to be able to have this new section come up automatically when we insert the comment.
[Code]...
Dear Experts modify UPDATE codes according to INSERT codes Style.
[Code].....
I need update codes as there are insert codes
What is alt codes i can't understand about alt codes :S
View 1 RepliesI'm looking for the proper code in .net platform to call and edit different properties of ADF scanner. And also how to find out if there is any paper(s) in the feeder?
View 4 RepliesI am from c# field and now are doing a project using VB, I wants to ask about question as below:1) private static DataSet ds; I wants to convert the C# codes above to VB syntax, but VB seems like don't have equivalent keywords of "static"(Correct me if I was wrong).
View 3 RepliesI have a datagridview with 3 columns. the second column is a read only . When I leave column 1 I would like to go directly to column 3.
[code]...
I have use this codes in my project
For Each dr As DataRow In DsReports.DataTable
Dim Cmd As New SqlClient.SqlCommand("INSERT INTO Temp " & _
"VALUES (@ID, @AccountDeatil,@Debit,@Credit)", Cn)
[code].....
Now How to use ProgressBar1 into Code?
I am trying to translate some VB codes to C++. And I am not quite sure what this line does.
IIf (n& 1=1, 0.0005, -0.0005)
I know what IIf(logic, true_value, false_value) does, and I guess the & operator is supposed to concat two strings. But I am not sure what the intention of using "n & 1 =1".
I'm making a tv player and I want to make vlc to play my streams, i need also the code to record the stream and the code for fullscreen. i will be more detailed in the following picture
View 2 RepliesThis is for vb.net I've been working to develop a system which involves computation.What I've been trying to develop in my program is, I have a textbox where user will enter a numeric value,there is a button and a label below and in the first place the label should be set to zero. Everytime you enter a numeric value in the textbox and click the button it should add the value in the label and should save the value in the label so even if you exit the program whatever the last value displayed in the label should remain the same when run the program again,I believe it requires a database to save the value.Basically its like with payment system which saves the total amount of all payments made.
This is how should it works,say for example,if you will enter 1,2,3 it should save the sum value which is 6 in the label even if you close the program and when you run it again and enter another value it should add to the current value which is 6.
In C, Pascal, and C++ it is possible to use the FormatMessage function to retrieve a "friendly" error message that corresponds to a COM HRESULT error code. This question contains sample code that demonstrates the C++ approach. Of course it would be possible to build a managed C++ assembly to perform this function for C# and VB.NET code, but I'm wondering: is there a way to translate COM error codes using the .NET system libraries?
View 2 RepliesI need to be able to write data to a binary file. No problem - I have a test app I've knocked up that reads and writes to them fine, however the format uses C0 and C1 control codes, and I have no idea how to write them properly. The SOH, ENQ, DLE, NUL type of thing. I'd post some but they are non-printing. I know what they mean and what they do but have no idea how to write them.Basically we are writing our own system that generates test data files for import by another program. My files that I write have the correct number of fields and correct value and formats but because I can't get the tags to write they data is imported incorrectly. I've spent days reading up on it but can't find what I'm looking for.Not dealt with binary data files in VB before so this is all new.
View 3 RepliesI have a Windows form application written in VB of about 5000 lines of source code. For security reasons, I have changed all the names for variable, sub, and function to meaningless strings. For example strFileName to XBHDY. Apart from doing some test runs of the modified code, is there a reliable way to check that the two sets of codes are completely equivalent?
View 1 RepliesI have following codes on lostfocus of textbox1.text to search values. It works fine but how to navigate database. I mean what codes should I use for Next Record and Previous Record Buttons. [Code]
View 1 RepliesWriting codes for a school project I have to do. Basically I need to make a program that when you click a picture box it replaces the picture with an image in a second picture box on the same spot on the form. I am not sure how to do this. Right now I have the two pic boxes side by side and when I click one the other disappears as it should, but I can't get it to reappear so one can click between the two alternately.
View 7 RepliesPrivate Sub txtTerm_KeyPress(KeyAscii As Integer) '4078D0
[Code]...
I'm wondering if i can convert vb.net codes to python ?
I have this code"
[code]..............
i guess it's like:
[code].....................
so there any converter ? it would be so nice because i got source code for program in vb.net and as you know it's work on only Windows and i want to make it work in Linux so i need Vb to python converter ..
I am having a trouble with my project I want to convert this vb6 codes to vb 2008...can you help me??
here's the codes:
[code]...
how to convert text file to code with this tutorial with the link below but not work.[URL]
Private
Sub Form1_Load(ByVal
sender As System.Object,
ByVal e
[code]....
I was converting my VB6 codes to VB 2008. There is a section i use a third party application (Microsoft Excel) to print report. But now VB 2008 is not accepting one of my statement. the statment is shown below in bold letters.
oSheet.range("H" & Row & ":" & "J" & Row).Value = Array(InvoiceNo, , Today)
it works in VB6 but fails in VB 2008 because of the Array statement, is there any replacement for this in VB 2008.
I'm recently writing an app that is localizable and have several lauguage resources built within VS 2010 SP1. But now I came into a problem -- it seems that VS has modified one of the Designer.vb unregularly.The problem reveals like this. Whenever I want to change the main form's Language from Default into fr-CA (for eg, and with Localizable true), and after I save or run the project, then VS shows me with dozens of a same errors: 'Resources_ fr_ CA'is not a member of 'myApp'. The amount the this error I guess is depend on the number of controls on the form, but I'm not quite certain about that.Then I looked into the Designer file and found strange lines that were suddenly added by VS, they are somelike this two, not all these but commonly:[code]
The problem used to happened several times and it was passive before cos I can remove the lines one by one, using a text editor from outside. But now it is total nightmare, because, now whenever I set Language into French, the same problem MUST happen as saving the project. I can not debug or develop it with local language again, that is not any more a joke is it?
I am making a quick word processor, with the basics (alignment, cut, copy, paste, font size, font style etc.)I have four buttons for each of the font styles; Bold, Italic, Underline, and Strikeout.I have entered the following code, but my problem is, only one of the styles is used at a time, so if I use bold, then press italic, bold will be removed and italic will take its place. I want all four of the styles to be able to be used at once. [code]
View 4 RepliesI have a dataset that pulls information about topics. However, I need to filter the information so i only get the topics with certain Topic Codes (These topic codes are in the form of an array).
Me.TblTopicsTableAdapter.Fill(Me.MainDataSet.tblTopics)Right, let me try and explain better.
I have an array named COURSE_Topics. This array contains topic codes as string elements.Currently, my table adapter query looks like this:
SELECT [Topic Code], TopicName, NoOfCourses, Duration, StartDate, EndDate, [Level] FROM tblTopics
At the end of that query i need to add a WHERE [Topic Code] = - then list of topic codes in the array.
After a stage i have found that there are lots of codes redundancy and reusement on my disk drive. And i have also noticed that for special operation i am using the similar algorithms again and again. So i thought that if there were a program that can find the functions from specific file types producing the output of the function list etc?
View 6 RepliesHow To Have A Collision In VB.net XNA Using VB.net Codes And Format. Doing Collision In Normal Windows Form Application Is Simple By Calling Two Picture Box. Example:
If(enemyRectangle.Intersects(p�layerRectangle)) Then
'Do code here
end if
But In XNA VB.net, There Are No Multiple Picture Box Or Windows Forms Thingy Buy Only One Picture Box Which Contains All Sprite Block And Display.
Here Is The Class Content Code:
Public Class clsContent
Public Class GameContent
Public Content As ContentManager
Private ServiceHelper As New ServiceHelper
[code]....
I'm trying to add the original pictures to my vb.net program.When the client computers install the program there should have the original pictures in their computers.And other programs, not this vb.net program, can deal with the picture. Better to get the picture fullpath ,something like D:program filesabcody.jpg.
View 8 RepliesProject.
Imports System.Management
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
[code]....