Xml - C# Class Library Method Summaries Not Showing In Intellisense Of .net Project?
Dec 19, 2010
(VS 2008)I'm using a C# library for my VB.NET project. And the method summary/notes or what they are called do not show in intellisense. Is this supposed to be like that? Or is there something I must do to fix it? And if not, will VS 2010 be able to do this?
EDIT: Still unresolved. Now building library dll + xml file, but how to import the xml file in my vb project?
See image: [URL]...
View 2 Replies
ADVERTISEMENT
Mar 3, 2009
I am writing my first class-library in VB.NET. My idea is to distribute this library so others may use it in their applications.However, perhaps due to my lack of experience in writing and structuring the library and the classes therein, I noted that the methods/properties are ALL being shown in the IntelliSense of Visual Studio.
The thing is that many of them are only used within the library itself and should NOT be used by the developers (could create a disaster) when they incorporate my library in their application - only a few should be visibile i.e. the ones which are needed by the developer.Thus, my question is: is there a way to hide certain methods/properties of my library from Visual Studio's IntelliSense? Maybe something similar to REM?
EDIT: as mentioned - this is my first library and I now understand that my question could be intepreted in two ways:
1) how to hide something from IntelliSense
2) how to prevent a developer from using and calling certain methods/properties
Of course, the end-result that I want is that the developer is not able to access AT ALL certain methods/properties i.e. No. 2 above.
View 5 Replies
Jul 20, 2010
It seems that my library of extension methods that was written in VB.NET has problems.I have 2 overloaded extension methods Crop().When i reference the lib from a VB.NET project i see them. If reference it from a C# project i can't see them.
View 3 Replies
Jan 13, 2012
I have a VB.NET project and a C# project in the same VS2010 solution. The VB.NET project is referenced (and used) by the C# project as a project reference. If while I am in the C# project, and I Ctrl-Click or Go to Definition on an element that is part of the VB project, it takes me to C# generated metadata instead of the actual VB code file.Is there any way to get this to go to the VB code file, so I dont have to navigate manually in solution explorer/navigator?
View 2 Replies
Jan 19, 2012
I have a Class Library project with a appSettings.config file included into the project. The file is not embedded. So I have a ClassLibrary.dll with a appSettings.config beside in the bin.I have another project which is a Web Service. It has a reference on ClassLibrary.dll with a Copy Local=true. When I build the Web Service, the ClassLibrary.dll is brought into the bin of the Web Service. However, the .config doesn't follow.Do I need to do some postbuild event to copy the .config file or there is another setting I can set?
View 3 Replies
Feb 7, 2012
I hear COM here and there and I want to know is COM and a COM dll the same thing, and most important: when I create a Class library project is that a COM component?
View 3 Replies
Mar 10, 2009
How to pass a variable in one project to dll in vb.net
View 1 Replies
Aug 8, 2009
I have a class library called Encrypt.dll that I added to my project (that class encrypts strings..). I have a problem that when I drag the app out of the Release folder, it crashes, giving me this error:Could not load file or assembly 'Encryption_Class, Version=1.0.0.0...' or one of its dependencies. The system cannot find the file specified.What am I doing wrong?I added it from the Reference tab->Add->Encrypt.dll
View 4 Replies
Dec 30, 2009
I know you can create a class library in C#.NET and then use that dll in a vb.net project and everything is just peachy. But can you use C++.NET and VB.NET/C#.NET in that manner?
View 2 Replies
Jun 17, 2011
I was wondering is it possible to put forms into a class library project and if so could I use those forms as an mdi child from my main forms app?A bit behind what I am trying to do:I am creating a game which is essentially going to have its own 'operating system' As the user progresses in the game they can 'install' new software into their operating system.I have my 'Desktop' that is an MDI Parent and what I want the users to be able to do it when they have purchased a new bit of software (also in game) the game will connect to my central server download a dll and place it in a directory, that is essentially installing the new bit of software and the game will then pick up that dll and add a new button the Programs list and when the user clicks on that software in the Programs list it will launch the form in the Class Library as an MDI Child of the 'desktop
View 2 Replies
Feb 23, 2012
I've created a class library and it's shared by several projects I'm working on.
I added a reference to the DLL - but it appears to have copied it locally - and that's causing problems when I modify the class library. Seems I have to drop the reference and re-add it.
I'm seeing info on the web about adding a PROJECT REFERENCE but can't seem to get that to work.
What is the best method of sharing a class library with several other projects.
Actually - should all my projects be in one SOLUTION? Is that preferred.
It will be 5 projects all working with the same class library...
View 3 Replies
Jun 30, 2011
In my earlier project I was able to change the connection string during the app settings loaded event and it was successfully. When I try to do the same for a code library project, I am not getting the system.configuration.connectionstringsettings to work. Could you please tell if there is a work around for this, or else it is always better to write the sql code instead of depending on the adapters etc.
Additional information: Clients App is WPF with Vb. Database is SQL Server 2008 Code Lib would only be on server, slq connectiona and data retrieving and saving actions are stored in classes in code lib only. Code Lib would be used with WCF, wcf is used to share the classes only and classes have the data. WCF is hosted as a windows service on server used by NET.TCP
View 2 Replies
May 9, 2012
I'm working on a windows form project where the first form displays a menu list made up of custom textbox controls. When the user navigates to a textbox and presses enter the underlying code runs another form and hides the menu form. The form to run and the navigations sequence is controlled by properties I added to the custom textbox. I have done the same with a custom button. Both custom control inherit from their respective Windows.forms controls.
View 10 Replies
Oct 22, 2010
In one of my applications, I decided to make a separate project for a few general classes. However, it started to give me tons of errors that I am having a difficult time figuring out.
View 7 Replies
Mar 16, 2009
I'm not sure if this is the right forum or not but...I've written my first VB.NET 2008 Express Class Library project (addin dll) and now I need to deploy it. I see Windows Form Applications have a Publsh tab (ClickOnce) in the project properties window but my class library project does not. How do I deploy a VB.NET 2008 Express Class Library project?
View 8 Replies
Mar 1, 2012
I am trying to access appSettings using the following syntax and I have used it before in my many website projects but not in a class library project. In this class library project I cannot even access the AppSettings Keys. Is there any way I could access the AppSettings Key from my class? Is the class library project's app.config or project structure behave in a different way?
[Code]...
I have already added Project Reference to System.Configuration and imported in my class. When I run my code it says, "Object not set to an instance of any object".
View 2 Replies
Jan 11, 2008
How do I reference the library project when I get this error?
"A project with an output type of class library cannot be started directly In Order to debug this project, add an executable project to this solution which references this library project. Set the executable project as the startup project."
View 8 Replies
Feb 18, 2010
I have downloaded the attached code from codeproject site, i'm new in vb.net, i have some background knowledge in vb6. when i try to run the code the following error message is diplayed:"A project with a output type of class library cannot be started directly"
View 2 Replies
Jun 14, 2009
I am just added new project class library to make dll file. when i write the first line i got this problem
Dim objStreamReader
As
New
StreamReader(Server.MapPath("TextFile.txt"))
name 'server' is not declared
View 11 Replies
Jan 24, 2009
I made a Class Library project that contains the main classes that my Main Project needs because I don't want to main classes when I distribute my project. I've successfully called and used it in my Main Project. But when I started debugging and stepping through my code which involves calling and using the class I wrote in my Class Library, I noticed that the class' file in my Class Library opens up during debug mode.
how can I prevent the Class Library's files from being opened during my Main Project's debug mode?
View 1 Replies
Apr 21, 2012
I am just testing how to use dll and after googling a lot, I made it work partially...Created new project Class Library, named it myFirstDll and made a Public Shared Sub helloDll to do something. Now since this is my first time, the dll is simply showing the input in a msgbox:
Public Shared Sub helloDll(ByVal msg As String)
If msg <> "" Then
MsgBox(msg, MsgBoxStyle.OkOnly, "WE HAVE SOME MSG")
Else
MsgBox(msg, MsgBoxStyle.OkOnly, "NO MSG")
End If
End Sub
After building the dll-file, I started a new project using normal windows forms, named it "useMyDll", I clicked Project -> Add Reference, and added my dll. The program file that I made needed a textbox and a button for using the dll:
Private Sub useDllButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles useDllButton1.Click
Dim msg As String = Nothing
msg = TextBox1.Text
myFirstDll.myFirstDLL.helloDll(msg) 'this will be in msgbox in dll-file
End Sub
And when running this I could write something in the textbox and a msgbox with that input would pop up. Really happy with that. My first attempt to make a dll and use it was very successful. Then I thought, what about running the dll from rundll32.exe? It would be handy to make a dll that could be run without my exe. After googling a long time, I tried to add a new button:
Private Sub useDllButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles useDllButton2.Click
'Now let us see if we can open it using rundll32.exe ?
Dim msg As String = Nothing
msg = TextBox1.Text
[CODE]...
Now the first button still works just fine, but the second button gives some error (translated to english would be) like "missing entry: helloDll" I also tried to open with command prompt, same result.
After googling again I read one place that you can't run a visual basic dll with rundll32.exe, so is this true? Or is there some way of doing it? I read one place that it works if you make the dll be "COM-Visible", but I don't really understand how to or what it means. I tried to open properties, clicked Assembly Information, and "Make assembly COM-Visible", but this doesn't change anything. Then I read somewhere that it has to be in a module to work. Could it be that I need to rewrite some codes and it would work, or would I have to start learning c++ in order to accomplish this?
View 13 Replies
Jul 22, 2011
I have a class (see below)
Imports Microsoft.VisualBasic
Imports System.Data.SqlClient
Public Class ClientProfile
#Region "Variables"
[CODE]...
It is in the file ClientProfile I have placed in both App_Code and also App_Code/Models
In my code behind I have the following
[CODE]...
The last word, "ClientProfile" has the scary squiggly red line below it. It is not recognizing my class.Even the Intellisense is not picking up te class. Do I have to register the class file in any way?
View 4 Replies
May 28, 2009
I have several custom snippets that show up when I use "Insert Snippet", and they have also shortcuts assigned to them, but whenever I try to use the shortcut directly, they don't show up in Intellisense. If I type the full shortcut and press tab, the snippet is still inserted... But I'd really like the shortcuts to show in intellisence.
View 1 Replies
Mar 10, 2010
i am having problem with the intellisense. i have created a boolean variable and when i try to assign value why does is shows all the members instead of false and true. Again when i try to set the height the intellisense pops up again.
View 7 Replies
Apr 8, 2011
I have a class library project (.dll) which contains a couple of forms.I now have a new project that would be the Client.
1) How do I load the forms from the dll into this project at runtime?
2) How do I set the client to be the MDiParent of the forms that will be opened from the dll?
View 1 Replies
Jun 16, 2010
I created a simple user control and everything went fine.Then I created another of the same control (as a different project) from scratch (creating the controls in a different configuration; but pasting code from the previous one from a text file).As far as I know I did everything the same for creating a user controlCreate a Class Library project Then Project>Add New Item> User Control Then delete the initial class that was added automatically (usually named Class1.vb) Put all of my code and components into the user control class.However, when I wanted to run it in the debugger as I did in the previous project, I now get an error message:"A project with an Output Type of Class Library cannot be started directly."
View 6 Replies
Sep 28, 2009
I have a Class A that inherits from a base class. In the class A i have build some methods/properties.What I want is that some methods/properties from the base class are not visible in the intellisense which makes it easier for a developer. Basically i want to hide all the methods/functions/etc.. which are no use.Is this possible whithout having to use the EditorBrowsableAttribute for every item?The best way would be to tell the class that it must hide all props/methods/functions/etc... and after that i can specify which MUST be visible.
'by default hide all props/functions/etc.... ????
Public Class Test
Inherits ComboBox
[code]....
View 8 Replies
Jun 22, 2009
I'm a normal user of to Visual Studio 2008 and very experienced with VS 2005. On 2008 when after I enter the parenthesis after the object method name I see an intellisense prompt with the parameter name defined on the method along with a := sign. What does := means and why does it show up? anyway it helps me a lot sometimes if I use same variable names on different service tiers. What does := means?
ObjectName.MethodName(VariableName:=
View 6 Replies
Mar 24, 2011
I created a function and I want to explain more about argument of methods. Now how can I do that such as .net method? (I want something such as tooltip text for methods).
View 4 Replies
Jun 21, 2011
I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?
View 6 Replies