Documentation :: FxCop Or Other Util To Require Inline Docs?
Dec 11, 2009
I'm starting a new project; trying to be more strict than previous ones. I've set warnings as errors in the build I've added FxCop to PostBuild. The one last thing on my list os require people to add inline docs for all classes/non-private methods/properties.
View 2 Replies
ADVERTISEMENT
Jul 14, 2010
Is there any way to include some kind of auto-generated comments as part of implementing an interface? Studio automatically fills the headers for the methods, can I auto-fill some sort of code comments at that same time? (to help remember what each interface method is supposed to do without looking at external documentation.) For example, if I could get the interface's XML Intellisense markup headers to copy from the interface down to the implementation's level.
View 3 Replies
Aug 31, 2010
I need to import java.util.zip for my project to zip and unzip chosen files/folders in vb.net. But when i say imports java.util.zip, i get the error "Namespace cannot be found". I went in the add reference and checked in both .net and COM components bout found nothing for java. What dll would i need to make this work?
View 2 Replies
Mar 14, 2012
in my application, I am pulling in items from a microsoft project file using mpxj - one of the items I need is the predecessors. The way I am able to pull the predecessor is using a build in function of mpxj which returns a type of java.util.list - I can save this to variable as an object, but I need to find a way to bring the data to a format I can easily use so I can store it into a database. Listed below is the line of code I am using to pull the predecessors from the project file.
Dim predecessors = task.getPredecessors
and here is the result when putting a tracepoint in to get the value of predecessors
[[Relation [Task id=4 uniqueID=45577 name=Standards Training - Round 2] -> [Task id=3 uniqueID=45576 name=Process Excellence Training]]]
Even if I could get the above as a string, I could work with it enough to get the data I need. The above example is where there is 1 item in the predecessor list, but sometimes there are multiple items. Here is an example of the tracepoint when there are multiple items.
[[Relation [Task id=63 uniqueID=45873 name=Complete IP Binder] -> [Task id=47 uniqueID=45857 name=Organizational Assessment]], [Relation [Task id=63 uniqueID=45873 name=Complete IP Binder] -> [Task id=49 uniqueID=45859 name=Document Deliverables]], [Relation [Task id=63 uniqueID=45873 name=Complete IP Binder] -> [Task id=56 uniqueID=45866 name=Infrastructure Deliverables]], [Relation [Task id=63 uniqueID=45873 name=Complete IP Binder] -> [Task id=58 uniqueID=45868 name=IT Deliverables]], [Relation [Task id=63 uniqueID=45873 name=Complete IP Binder] -> [Task id=60 uniqueID=45870 name=Organizational Deliverables]]]
View 3 Replies
Mar 23, 2009
I have been looking at a few of our VB.NET dll's using FxCop and all of the errors relate to DLL setup (i.e. Strong Names, Culture Info) and the case of Variables methods. Looking at a few examples of FxCop examining a C# Dll, it appears to offer a lot more potential errors.
Does this mean that FxCop is more valuable on C# developments that VB.NET or have I just chosen bad examples.
I thought it was the case that FxCop worked on IL rather than the specific languages, so am I just missing rules files for VB.NET or are there more available for C#?
View 3 Replies
May 27, 2010
If we won't know what Exception will be thrown then why cannot we catch a general exception? I just cannot follow this and some more.
View 14 Replies
Nov 14, 2009
For example:Public Event CurrentChanged As EventHandler(Of CurrentChangedEventArgs(Of T))Shows the message "Do not nest generic types in member signatures." on CurrentChangedEvent, which is the variable that holds the delegate for the event, and VB generates it automagically.How do I suppress the rule for the item?
View 1 Replies
Apr 22, 2010
On one side, in Vb.Net when you add an event handler to an object the created method is named: <NameOfTheObject>_<NameOfTheMethod>.As I like to have consistent syntax I always follow this rule when creating event handlers by hand.On the other side when I create private variables I prefix them with m_ as this is a common thing used by the community, in C# people use to put _ at the beginning of a variable but this is no CLS compliant.
View 1 Replies
Jun 8, 2012
I have a class that looks like the following:
Public Class Utilities
Public Shared Function blah(userCode As String) As String
'doing some stuff
End Function
End Class
I'm running FxCop 10 on it and it says:"Because type 'Utilities' contains only 'static' Shared' in Visual Basic) members, add a default private constructor to prevent the compiler from adding a default public constructor."
[Code]...
View 1 Replies
Dec 30, 2010
just trying to decode my signed request.. I've done a bit of searching and haven't found a VB alternative..The signed_request parameter is a concatenation of a HMAC SHA-256 signature string, a period (.) and a base64url encoded JSON object.
signed_request:vlXgu64BQGFSQrY0ZcJBZASMvYvTHu9GQ0YM9rjPSso
eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsIjAiOiJwYXlsb2FkIn0
PHP function to decode request:
<?php
define('FACEBOOK_APP_ID', 'your_app_id');
define('FACEBOOK_SECRET', 'your_app_secret');
[Code]...
View 1 Replies
Aug 2, 2011
I've got a a simple database setup with a parent child relationship.Imagine one expense report can have many line items associated with it.Now inside of this line items table I have a column that stores the link / pathof an attachment on our local storage server. Some example values could be:
\myserverattachments1.pdf
\myserverattachments2.jpg
\myserverattachmentssomeDoc.docx
[code].....
View 2 Replies
Nov 14, 2009
I have several docs in a folder in iPads dir (Help Files). When the user selects help it shows a dialog which has a listbox, richtextbox, and three buttons ( open, close, update < to launch the updater)
When the form loads its supposed to add all the files in the dir. It does but the full path and name. This is the code I have>>>If System.IO.Directory.Exists(Application.StartupPath & "Help Files") = True Then
[Code]...
View 5 Replies
Sep 27, 2011
I have a folder that contains multiple word documents. I need to monitor this folder for any changes in these word documents. I am facing the following problems.
File system watcher never reports the exact name of file being changed. For example for file abc.doc, it reports "~$abc.doc is changed" on first save.For all subsequent saves to that file, OnChanged event in the following code is not called. When I changed the filter to watcher.Filter = ".", I found that for subsequent saves, it reports "~WRL0001.tmp is changed".
So the bottom line is that I never know the exact name of the file changed.[code]...
View 2 Replies
Jun 14, 2010
I want to be able to code a small system that reads a set directory, for new PDF or Word DOC file types.
Then i want to print them.
I understand, with reference to this thread, - [URL]
and this one - [URL]
that i can use MS Word automation to print the document, but i would like the application to read the folder constantly in real time and then print what ever is 'new' in the folder.
Would there be any advantage to code my own print driver?
View 3 Replies
Sep 11, 2009
I've been searching the web in general (and this forum specifically) for information on setting up Help documentation on a project - but the 'help' in the search just seems to give too much.I've never set up help documentation and was wondering if there is a good primer anywhere on the web or in a book - I've looked through VB books and none cover this topic also the I've so far been unable to absorb the official MS docs.
View 2 Replies
Jan 27, 2010
I'm reading a text doc from my hard drive. I'm reading it via a stream reader.
On a button click i'm reading it again, because the contence of the text doc may have been updated, what I want to do is show in one textbox the actual file and in another one just what is new. How can I compare them?
View 16 Replies
Apr 30, 2009
Is it possible to build a search engine to use on a DVD that contains Word documents, text documents, etc.? Say I wanted to find all documents with the name "James" in them. In the search box I would type "James", and it would return the results of everywhere James is found. Or suppose I wanted to find all Land Deeds where James is found, is that possible? All search engine examples that I have seen on VB Help has to do with databases, and I guess to an extent, my DVD would be the database.
View 6 Replies
Jan 18, 2011
I need help in coding VB 2008 so that it can combine several word document into one to be used for a mail merge template.I need to:
1) combine the word doc (does not work see note 1)
2) use this new doc a for the mail merge (works, only for the rewrite doc)
3) create a pdf. (works, only for the rewrite doc)[code]
View 3 Replies
Dec 17, 2009
I know there is a lot of forums out there regarding this, but I haven't been able to find what I need and I am somewhat new to this. I would like the simple openfiledialog code button click to attach a word document or PDF and upload it to a SQL server table to be saved. I would like to use my current datasets and controls without creating another SQL query within my project as I have seen in other forums, unless that is the only method. I know that the data needs to be saved as an image type with the file name and extension but I just need the code for this. I would then like to download the doc or pdf to view it within a form.
View 3 Replies
Nov 2, 2009
This is the MSDN example for handling the BeginReceive callback.BeginReceive is called over and over until no more data is available, i.e. EndReceive returns 0. However I am finding that the callback is only fired when there is data available.
I'm guessing that the example is simply wrong or refers to expected behaviour in a previous version of .NET, although it says it is for 3.5.So how do I ensure I have received all of the available data?
[Code]...
View 3 Replies
Apr 15, 2010
I created a very simple program that organizes my various document and opens them when the button is clicked inside the program with the process.start method. The problem is that when i take the executable file and move it to another machine or cd to run the program the process.start filepath is no longer valid.
[Code]...
View 19 Replies
Nov 4, 2009
i have an VB.NET application with few functions i need to debug (like ie. Assert in C#). Is it possible and how i do that ?
Public Shared Function createNumberArrayList(ByVal startValue As Integer, _
ByVal endValue As Integer, _
Optional ByVal isBackwards As Boolean = False) As ArrayList
[Code].....
Basically what i need is to enter few values and see if the function works and returns proper ArrayList.
View 1 Replies
Dec 22, 2010
I have a list of functions that I'm using throughout my .net application. Is there a way that I can include a file into the pages that require the functions without having to copy and paste the functions to each individual page?
The large majority of pages I've found on MSDN are either toward people who are already familiar with .net to those who have never programmed before and just starting. I haven't been able to find one for people who are versed in programming and just need a list of functions and methods.
View 15 Replies
May 6, 2012
strtest() = objFile.ReadToEnd.Trim.Replace(vbCr, "").Split(vbLf).Distinct.ToArray
I created this command from a few examples which reads the text from a StreamReader, Trims, splits on EoL, and returns a unique list. My next command is a sort. I couldnt figure out how to add a sort to this command. Its really not that important but I was curious if there�s an easy way.
Additionally if there's a better way to take a text file into an array or collection I'm all ears.
View 10 Replies
Jun 22, 2010
Tell vb.net equivalent of following method:
CODE:
Which on build in visual studio 2005 gives an error.
View 2 Replies
Sep 16, 2010
I need a inline calculator for a textbox.
When the user types 45*10+5 i need to have the answer displayed as 455 in the same textbox
Any one with a briljant idea of how to sovle this.
View 9 Replies
Feb 11, 2009
I know that this should probably be under mobile development .. but no one seems to use that thread ... so anyway .. here is what i am trying to do:
TreeView1.LabelEdit = True
With TreeView1.Nodes.Add("asd")
.BeginEdit()
End With
The above works for a windows application ... but i was wondering how i could do this on a windows mobile application as LabelEdit and BeginEdit don't exist!
View 1 Replies
Oct 31, 2011
I'm trying to add a handler, but as soon as I'm targetting a method that has parameters, the handler fails. This is the simple code:
AddHandler App.Current.RootVisual.MouseLeftButtonUp, RootVisual_MouseLeftButtonUp
Private Sub RootVisual_MouseLeftButtonUp(ByVal sender As Object, ByVal e As MouseButtonEventArgs)
[code]....
View 1 Replies
May 20, 2011
Never before did i realize the neccessity to scrap the User Account Control, other than for reasons it was simply annoying, until i became a developer. I have an application that does nothing more than remove and create files within its own directory. Are you telling me every application that creates local files require admin rights? Surely something is wrong here. Can this not be circumvented? How do other developers overcome this issue?
[Code]...
View 1 Replies
Jan 27, 2012
This is my problem. If I write this -
[Code]...
But I'm just out of my wit why this code, written to do the same thing is not working -
[Code]...
View 1 Replies