[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
ADVERTISEMENT
Aug 22, 2009
i want ask you i can't catch WM_ENABLE in My Application ?
============================
i decalre struct MSG
====================
<DllImport(
"user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
[Code]....
View 10 Replies
Dec 13, 2011
I am not able to use Format function in a converted VB2008 project in VS 2010.
MSDN Documentation about Format function in not available for VS 2010.
Has that function been deprecated? If so, what is the alternative?
View 1 Replies
Jul 1, 2010
I am trying the whole day to make an excel-macro run through VB2008. The macro in excel calls another file and extracts two values in order to draw a graph. The VB code should run the excel macro everytime and import the graph. However, I have a problem with this line : oExcel.Run("Macro1")
[Code]....
View 3 Replies
Jan 11, 2010
make a splashscreen with an installer like the image below.. I know how to make a splashscreen. Say i made a splashscreen in vb2008 i added a button saying install Is there a way i can get a app into the button..Sorry for my bad english.. Do you see the image below? If i click copytodvdsetp it will open the installer and start installing
If i click the serial button it will open a text box.. How do i make that??
View 2 Replies
Feb 28, 2010
I am trying to make an application using vb2008, and I'm facing a problem. I have a command button, and I want it to generate a new groupbox each time it's clicked. So here's the problem: when the user clicks the button, the previous groupbox disappears, which is sth I don't want to happen. Also, I wonder how I can use each of the controls included in the groupbox, while I can't name them or something...
View 7 Replies
Jun 8, 2009
form1.visable = false wont work and i don't see it on the properties window.
View 2 Replies
Dec 18, 2009
I want to make multi level side strip with some data as shown in figure below:
The first column could be labels (names) read from an array or a variable and the second column could be a value to that label read from a variable or array. The value of the last column will be assinged to the label or in the first column. for example:
Column1 (level1) Column2 (Level2) Column3 (Level3)
Area1 => Value => 5
8
Importance => 9
[Code].....
View 3 Replies
Dec 6, 2009
Is there a way to put a Paint.net image you make onto a form on vb2008? Like using a picturebox?
View 15 Replies
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
Sep 17, 2010
I want to write a program that if ping www.microsoft.com is success,than caption title it's "ok,connected Internet",if ping it's failed,the program "caption" title is "sorry,not connected",but I don't know how to write those code
View 10 Replies
Apr 3, 2009
Well I want to make a log-in system that loads the .txt files from your server (Simular to this code:
[Code]...
View 1 Replies
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
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
Dec 12, 2009
Heres my code
Public Class Encryption
Private _cipherEngine As New Cipher
#Region " PassEncryption "
[code].....
View 2 Replies
Oct 31, 2009
Are there any good websites that would teach me how to make a anti-virus and anti-spyware scanner in vb 2008 express
View 2 Replies
Mar 15, 2012
Is it possible to reload a form of the running application from one computer when I executed a function from my other computer with the same application? co'z I want to see the changes of data on my datagrid view?
View 2 Replies
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
May 2, 2009
i just want to know how to make a function and someone give an example of polymorphism
View 6 Replies
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
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
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
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
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
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
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
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
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
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
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