Can Make A Function COM Only?

Jul 28, 2011

I have some functions in my VB.NET DLL which I can 'hide' from my VB6 app by using the following: <Runtime.InteropServices.ComVisible(False)> But is there a way to make a function ONLY visible to COM clients and not to .NET assemblies? This way I can use Shared methods for the .NET side avoiding the need for an instance declaration.

View 1 Replies


ADVERTISEMENT

Make Picturebox1(function Already Assigned) Perform The Same Function As Picturebox2(no Function Assigned)

Aug 1, 2009

i wanted to ask how to make picturebox1 ,to which functions are already assigned, perform the same function as picturebox2 ,to which no functions are assigned.For example:I have already made picturebox1 and have assigned it alot of function like when play button is pressed then picturebox1.visible = true and when we press pause button picturebox1.visible = false. So now i decided to make a theme and have to remove the picturebox1 and want to allow the picturebox2 to havefunction of picturebox1.But when i disable the theme the function of picturebox1 should go back to picturebox1.

View 6 Replies

Make A Certian Function That Will Fade Out [make A Black Screen That Fades Out For 2 Seconds] Then Come Back?

Oct 12, 2010

Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.

View 3 Replies

Make A Function Called "checkLogon" That Checks The Username/password Text To A Variable In That Function?

Oct 22, 2009

I've got a basic logon form where if you enter the right password/username, it redirects you to the "MainMenu" Form How can I make a function called "checkLogon" that checks the username/password text to a variable in that function?

View 3 Replies

Make New Function And Function Eror?

Dec 12, 2009

Heres my code

Public Class Encryption
Private _cipherEngine As New Cipher
#Region " PassEncryption "

[code].....

View 2 Replies

How To Make Own Function

May 2, 2009

i just want to know how to make a function and someone give an example of polymorphism

View 6 Replies

How To Make This Function

Dec 5, 2010

if i have datagridview to have 4 columns

first col: Item Id
Second : Stock Id hint: Storage of items which we will enter it
third : Item Qty hint: Quantity of product Or Item

[code]......

View 2 Replies

Make A Pixelsearch Function?

Jan 26, 2008

I just started learning visual basic in VB 2005 express today, and the only other programming language I have used is AutoIt. Now in Autoit there is a function called "pixelsearch" where it allows you to specify a color, and coordinates left, top, right, bottom to search for a pixel that matches the specified color Example:$psearch = pixelsearch(0, 50, 100, 75, 16172309)

View 1 Replies

Make Exact Function Like In .Net?

Aug 26, 2010

How to make my own "My" librayr. I want to make exact function like in .Net

My.Resources
System.Data

that everytime i enter period on the library another sub library will come up.

View 16 Replies

Make Input Box Function?

Oct 26, 2010

Am using An inputbox in my form.If i Press OK the code is fine.When i Press cancel the Program displayin an error. Wat should i Do ?

View 3 Replies

Make.net Function Secure On Web?

Apr 6, 2011

I have a VB.Net exe application that has a function in it that contains my encryption method that is used through out my application. This function is used to generate all my encrypted passwords and files etc. therefore for obvious reasons I do not want this to be visible to end users. In my application this is fine as it is compiled as a .exe. However I want to now create a ASP.Net web based version of my application.

Now here comes the question, if I was to create a web version of my application then this function would be visible to the end users along with a large number of other functions that if edited could bypass security and license control.I would like to know what is the best way to keep my ASP.Net webbased version secure from tampering, or is ASP.Net not the best for this?

View 3 Replies

[VB2008] How To Make A Function

Apr 6, 2009

I`ve this function search if process is running so where do i have to add this ?
Public Declare Function OpenProcess Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Public Declare Function CloseHandle Lib "kernel32" ( _

[Code]...

View 10 Replies

.net - How To Make Function Return Generic Value

Sep 16, 2011

I have an abstract class in VB.NET. I want all classes that inherit from this class to return whatever value makes sense. For example, it could be an Decimal, Integer, String. How can I delcare the function in the abstract base class to allow for this? Is this even possible?

[Code]...

View 2 Replies

Make 2008 Function To Tell An Image Is Which?

Apr 15, 2010

Im trying to make my life for simple by making a function that returns which image it is.[code]...

View 3 Replies

Make A Check Proxy Function?

Feb 16, 2010

How to make a check proxy function? ive made a change proxy function but i dunno how to check it.

View 3 Replies

Make A DLL Function That Works With GetProcAddress?

May 29, 2011

I recently created a Class just for dynamically invoking API's and it works with system libraries (kernel32, user32, etc.) Here is the code:

NotInheritable Class DynamicAPI
#Region "API"
<Runtime.InteropServices.DllImport("kernel32.dll", SetLastError:=True)> Private Shared Function LoadLibrary(ByVal lpFileName As String) As IntPtr

[code]....

View 5 Replies

Make A Function Which Can Set The GotFoucs Bgcolor?

Jan 15, 2012

i was using my code textbox1.bgcolor = ___colorname___ on the gotfoucs event of my textbox , but if i have 34 textboxes then i have to write this line 34 times , which cost lots of time , so that it can automatically change the bgcolor when textbox gotfoucs ,

View 1 Replies

Make A Shared Function Generic?

Feb 16, 2011

I can create classes that use generics, however I was wondering if it is possible to apply this to a shared method rather than rely on the caller casting to the correct type.This is the method:

Public Shared Function DeserializeObject(ByVal serializedXml As String, ByVal givenType As System.Type) As Object
Dim serializer As New XmlSerializer(givenType)
Return serializer.Deserialize(New IO.StringReader(serializedXml))
End Function

I'm pretty sure this can't be done, but thought I'd check (if so Extra points will be awarded if someone can technically explain why the compiler can't do this)..

View 3 Replies

Make Button Invisible, But Still Function?

Nov 3, 2009

I'd like to make it so that you cannot see the button, but it will still work if you click where it is. How can I do this?

View 20 Replies

Make My Function Pause For A Certain Time?

Mar 8, 2012

I am facing an issue. Actually what i am doing is that i am tryin to store certain values in a database. A function is such that it calculates 5 values and stores them in a database. While storing them in the database it displays them in a textbox on the form. Now i want to display them one by one which it does. But it does it so fast that i can only see the last value that it enters in the database inside the textboxes.[code]...

View 9 Replies

VS 02/03 Make An Update Program Function?

Sep 1, 2010

My boss has just asked me to make an "Update Program Function" for our program.My program is being used by someone in my company. The database is put on server computer.At the present, my program run by some dll file, and when I fix or update the source code, i will compile to dll and put it on the server disk. After that, the users will go to this server disk and copy the new dll and overwrite the old dll in their client computer.

Now my boss asked me to make an "Update Program Function" : before the user login, the program will check the version (or the creation date) of the dll in the server disk, if it newer than the current dll, the program will update the new dll, else the program login normally How can i do that?

View 2 Replies

VS 2010 How To Make A Function Like Trim

Sep 5, 2011

you know how you can call the Trim function like this TrimmedString = SomeString.Trim Is there a way for me to make a string manipulation function in that format? A Period instead of Parenthesis?

View 2 Replies

VS 2010 Make The Enter Key Do A Certain Function?

Jan 31, 2011

I am a beginner at these sort of things, but could anyone tell me how I can get 'enter' to do this

WebBrowser1.Navigate(TextBox1.Text)
My.Settings.History.Add(TextBox1.Text)
ComboBox1.Items.Add(TextBox1.Text)

View 1 Replies

Make The Function Accept DBNull As A Parameter?

Apr 23, 2012

I've got a little function that just changes empty and null strings to "null":

Public Function CatchString(ByVal stringValue As String) As String
If stringValue = "" Or stringValue Is Nothing Or stringValue Is DBNull.Value Then
Return "null"[code].....

I added the bit about DBNull because sometimes it gets null values from a database. This doesn't work, though, because it won't take DBNull as a parameter.I tried changing the stringValue parameter from a string to an object, but then the If statement gives this error:

Quote: Object reference not set to an instance of an object.How do I make the function accept DBNull as a parameter?

View 3 Replies

C# - Make A Function With Return Type Generic?

Apr 29, 2010

Currently I have written a function to deserialize XML as seen below.How do I change it so I don't have to replace the type every time I want to serialize another object type ? The current object type is cToolConfig. How do I make this function generic ?

Public Shared Function DeserializeFromXML(ByRef strFileNameAndPath As String) As XMLhandler.XMLserialization.cToolConfig
Dim deserializer As New System.Xml.Serialization.XmlSerializer(GetType(cToolConfig))
Dim srEncodingReader As IO.StreamReader = New IO.StreamReader(strFileNameAndPath, System.Text.Encoding.UTF8)
Dim ThisFacility As cToolConfig

[code]....

View 1 Replies

Click A Button And Make Another Function Work Too

Nov 11, 2009

i got 5 treeview with checkboxes when i click button update i need to uncheck all the checkbox i also got a button which can clear all the checkboxes which it uses javascript function to clear i was wondering whether execute update after tat execute clear button automatic? it tat any way to implement this function? here is my java script of clear button which word perfectly

[Code]...

View 1 Replies

Forms :: How To Make Buttons To Function As Zoom In / Out

Aug 26, 2010

I program for wm 2003 -pocket pc. in vbnet 2005. I have a picturebox which I load images into it with buttons click. I have another 2 buttons called zoom in and zoom out, what should I do with this buttons that it will function as zoom in and zoom out.

View 1 Replies

Make A Car Run Same Time Beginning And Any One Can Win Using The Random Function?

Nov 17, 2010

[Code]...

Inherits System.Windows.Forms.Form

[Code]...

View 2 Replies

Make A DataGridView Similar To An Excel Function?

Jul 2, 2010

I am trying to essentially convert an Excel spreadsheet into a Windows Form. On the first worksheet I have setup an IF statement to work as a search function =IF(C10="","",VLOOKUP(C10,'Price List'!$A$2:$D$40008,2,FALSE)) to read a price list on a separate worksheet. It works by taking a partnumber then puts the description in the next column (description column) and then the price in the "price each" column then finally totalling the row based of the quantity selected (see below).[code]...

View 11 Replies

Make A DataGridViewImageColumn Clickable To Call A Function

Sep 4, 2011

I have a DataGridViewImageColumn with an image in it I would like to make the only area to perform a function of mine when I click it. I can click the row and get it to work but can't seem to only make just the imagecloumn the clickable region.

So as an example I have
Private Sub dgrdStatus_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgrdStatus.CellClick
MessageBox.Show("You chose " & dgrdStatus.Rows(e.RowIndex).Cells("columnCustomerName").Value)

Works for the whole row, my issue is I only want to be able to click the imagecolumn to do this. Guessing I am missing the right item similar to dgrdStatus_CellClick but can't quite pinpoint the fix.

View 5 Replies







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