VS 2005 Public Method In A Dll?
Nov 2, 2009I have a dll name "infrServ.dll" and I need to list all the public methods/functions that can be used. How can I do that? I know it's with Reflexion but I don't know how to use it.
View 5 RepliesI have a dll name "infrServ.dll" and I need to list all the public methods/functions that can be used. How can I do that? I know it's with Reflexion but I don't know how to use it.
View 5 RepliesI'm working through a book that does not provide a lot of example code and what it does provide is in C#. The book refs vs 2005 but I'm using vs2008. The author asks for the user to create a solution with two projects, one winforms and the other a class library (called DependentAssm). The class library is added as a reference to the winforms project In the class library, he asks one to create a new class called SayHelloComp. The project created a file called class1.vb, and a class called class1 which I renamed to SayHelloComp. I left the file name alone, that's ok right?
View 4 Replieswhat websites, books or courses you guys suggest to use so I learn the fundamentals of programming. What is a class, method, namespace, private vs public. That leads me into .Net programming. A lot of intro to programming use java or C++ as the platform but I want to find one with VB.net or maybe C# if.
View 6 RepliesI have written a method to replace multiple characters in a string. Is it possible to overload my own method to the existing method "Replace" in the String namespace?
Function Replace(ByVal inValue As String, ByVal ParamArray replacechars() As String) As String
For i As Integer = 0 To UBound(replacechars) Step 2
[Code].....
As you can see it have a different signature from the public method so I think it would be nice to have my method overloading the existing method
I can live with it if it isn't possible. See it as a "nice to have"
i want to add BindingNavigator at run time to which i made a public method in module.vb, and want to run buttons withEvnets on it
View 1 RepliesThis is the code i have so far (no i didn't write it all by my self took help from net) but i am unable to understand why i am getting this error
Imports CookComputing.XmlRpc
Public Structure blogInfo
Public title As String
[code]....
error i get is "Invoke on Non-Existent or Non-public proxy method"
Can we override a Public Shared method in derived class? If not why?
View 2 RepliesWhat does the "where T : new()" do? VS 2005 public class TestClass<T> where T new()?
View 1 RepliesI working on a project that includes to call a certain type of method to each control, i have this
Private Sub txtBcNum1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtBcNum1.KeyPress
[Code]...
This code works like a charm if i want to allow only numbers and backspace on my textbox.Problem: I have 15 textboxes( txtBcNum1,txtBcNum2,....,txtBcNum15 ), what's the best way to call this function inside KeyPress method on each textboxes with out manually adding it to KeyPress method?
I have a class like this:
[Code]...
It works, when I make getBar methods public, but I don't want to expose these unneccessarily. Why I can't call private shared methods from a public one in the same class is over my head. I'm using .net framework 4.0 in a web application.
if it is possible to place the openfileDialog in public class or module? i tried to place it with this code, but it did not work.
Public Sub DisplayDataOnGrid(ByVal gridTable As DataGridView)
Dim filepath As String
Dim OpenExcelFile As New OpenFileDialog()
[Code]....
I understand how the class modifiers work like public, private, protected, friend and protect friend. They are pretty straight forward. However my question is, if I have a class is marked as friend, what should the properties and methods be marked as? Friend or public? Does it matter? I just want my classes at the lowest exposure level that will let my program work properly and that is friend. If I understand correctly, the public properties of a friend class are available to all members of the assembly. Wouldn't that be the same access level if the properties were all friend properties?The reason that I ask is that using the autocomplete feature to make new properties (type property and hit tab) it creates the new properties with the public attribute.
View 4 RepliesI am trying to get a handle on SyncLock and multithreading, but I am having some trouble wrapping my head around exactly how it should be implemented. I have a Public Class Utilities with a many Shared Functions. I want to make sure that each function can only be executed when there are no other concurrent calls to the same function. So If I have 2 functions, A and B in a Public Class Utilities, what is the syntax so that a function "locks" while it is being executed, preventing any subsequent calls until the "locking" thread has completed?
CODE
Public Class Utilities
Public Shared Function A (ByRef i As Integer) As Integer
[CODE].............................
I know I need to wrap the statements of execution in a SyncLock block, but I am unsure of the scope of the parameter used with SyncLock...is it private to the function, class, etc? Can the same object be used to lock both functions if they are independent?
I can access a module from code behind but not from the aspx page in inline VB code <% ... %>.
View 2 RepliesImports System
Imports System.Threading
Imports System.ComponentModel[code]....
how to declare "smsport" on class smscomms as public so that it can be access in class form1 or button1_click event.
How do declare a public variable .aspx web page that can be used in all the pages within my web application?
View 3 RepliesConsider a MyForm class that contains a shadowed implementation of Show(). It also contains a CreateForm() method, which accepts an instance of the form and calls the shadowed sub:
[Code]....
I am using the DGV to display some data, and it is read-only, and I do not want the user to be able to select any rows - i.e. it is not necessary or desired to show a particular row with the blue selection highlight. Internet searches point to the use of the SetSelectedRowCore method of the DGV, but this is a "Protected" method.
View 1 RepliesI have loaded a picture in PICTUREBOX1 by this command Me.PictureBox1.Image = Drawing.Image.FromFile("D:C2007BITMAPSpict.jpg")
How to store this picture SQL server 2005 table1's IMAGE column?
I do not want to store image path in table. I want to store picture in image column in any format.
Reason: If I run my project to some other computer that has not images'path stored in database.Then images will be displayed by image field of database.
just created a classlibrary project named CreatingDll and i did this
Public Class Class1
Public Function getComboTable() As DataTable
Dim dt As New DataTable
[code]....
I have a piece of code that would be greatly reduced if a variable can be used instead of the actual method. (I am using a structure) kinda like the difference between the following code.
srrMulti.mthChildProp1.varRecall = strVarRecall
subPageRef
srrMulti.mthChildProp2.varRecall = strVarRecall
[Code]....
I'm developing a class in which most of the properties need to be updatable, but also protected against being inadvertently updated. I've got some code that does this, but I'm not happy with it. What I have is:
[Code]...
Some users are experiencing crashes in VS2005 when completing a method name using Intellisense. I've captured a crash dump and here's the stack trace of the thread I think that's causing the issue.
View 3 RepliesI created a reporting utility for my users to view, send (via email), export SSRS reports. I have set up date parameter boxes with calendar drop down and they are able to send via email a URL link that would either display the report via ReportViewer or send a link that would let then view the report in Excel or PDF. This is working just fine. Now I just added a button for adding new email addresses and a new windows form with a textbox for entering the email address and a command button for Save Email Address. I get an error msg Quote: Objects added to a BindingSource's list must all be of the same type.[code]
View 5 RepliesI created a com dll using Vb .net 2005. One of my classes inherits from System.Collections.CollectionBase. The methods of CollectionBase, such as Count and clear are not visible/usable to the program that references the dll. How do I make those methods/properties visible?
<ComClass(ReportCollection.ClassId, ReportCollection.InterfaceId, ReportCollection.EventsId)> _
Public Class ReportCollection
[Code].....
I know that with the Command Button, you can utilize the PerformClick option. I would like to know how you would go about doing something similar for a Combobox.What I am looking to do is open the Combobox within the GotFocus method.
View 2 RepliesIs There a way to define a region inside an event or method in VB.Net 2005, I see it works on C#.Net but on VB.Net?
View 2 RepliesWhenever I create a table adpater the wizard does not create and update command. It creates Select Insert and Delete but no Update command. I have a primary key in the data and have completely deleted my dataset and created connection and table adtaer from scratch with still no update command wizard says it will create it but does not.
View 5 Replies(I tried with this question but this code isolates the problem better. I have this code:
Public Shared Sub PopulateTextFields(ByRef stuffList As List(Of Stuff))
Dim aStuff As New Stuff
For Each aStuff In stuffList
DoStuff(aStuff)
Next
End Sub
[Code]...
This code is not giving the msgbox value! Is the GetValue method incorrect?
[Code]...