|
I am using VB6. Even tried strTip = "Hello" & vbcrlf & "World"
didnt work
Grtz, Guus
|
|
|
|
|
|
hello friends,
iam developing an application. i want to insert a picture from my front end . this picture has to be saved in the sql server database. how can i do it
|
|
|
|
|
vb6 and ADO or Vb.Net and ADO.NET ?
if vb6:
check the AppendChunk method of the field object
you can load the picture in an array then add it to that field.
|
|
|
|
|
how do i go about scanning an image with an adodb control with access as a backend and VB6 as the front end.THis is needed for the purpose of the project regarding automating the registrations of a computer institute.
PRAVEED
|
|
|
|
|
Are you f***ing mad. Try and do something else like have sex. F***er?????
|
|
|
|
|
Use ADODB to scan an image? Bottom line is -> you can't. That's not what ADODB does.
Are you trying to capture an image from a video camera? If so, what kind? A QuickCam?
For something like that, your going to need a SDK from the manufacturer of the camera to get at an image. Logitech has one that works with its line of QuickCams at http://developer.logitech.com.
RageInTheMachine9532
|
|
|
|
|
I start my project with a module called SubmainController.vb which contains a Public Sub Main()
In this public sub main I want to call a sub from another form in the project. I’ve tried the following without ant success.
Dim Myform1 as new Form1
Call Myform1.LoadFromFile
(property access my assign to the property or use its value
Dim ProjectName as string “Web Project”
Call ProjectName.Myform1.LoadFromFile
(myform1 not a member of string)
I though this would be simple. I appreciate help
Thanks GregC
Thanks, GregC
|
|
|
|
|
How about making the Sub a Public method of a separate class, thus making it available to both forms without the need of instantiating either form unneccessarily. As an alternative, if the method is declared Shared , it should be accessible even without creating an instance of the form, simply by calling Form.MethodName() .
Oh, and you don't need to use "Call" anymore.
|
|
|
|
|
Hi should have added that this is an event.
Public Sub loadFromFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles loadFromFile.Click
is it possible to raise an event on another form from a sub main? i'm not quite sure how to code that. Would i need to change the above click event code and how would I call or raise the event from the sub main? And would rasing the event execute the click event?
Thanks, GregC
|
|
|
|
|
You can certainly do something like what you describe; here's what I did:
Module MainModule
Sub Main()
FormRaisingEvent.LoadFromFile(New Object, New EventArgs)
End Sub
End Module
and the form's code looks like this:
Public Class FormRaisingEvent
Inherits System.Windows.Forms.Form
' Windows Form Details omitted...
Public Shared Sub LoadFromFile(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MessageBox.Show("Hello!")
End Sub
End Class
The important things are 1) declare the Sub as Shared and 2) when you call the method of the form from somewhere else, pass it the parameters required in the method's signature.
Let me know if this answers your question.
|
|
|
|
|
Hi John, THANKS! It worked GREAT!
Thanks, GregC
|
|
|
|
|
Hi....
Can anyone tell me how can I retrieve info about what software that have been installed on a pc and how can I read REG_Binary?
|
|
|
|
|
Not sure about the REG_Binary part. Do you want to read registry values in VB6 or .NET?
|
|
|
|
|
|
There are two ways of doing this in VB.NET, the VB way and the .NET framework way. Both are described in more detail than I could provide, here or you can read the documentation on MSDN, here.
|
|
|
|
|
I've already read this article. But it doesn't have what i need to know. But thanks anyway for your time.
|
|
|
|
|
*What* do you need to know? Be more specific.
grtz, Guus
|
|
|
|
|
specifically i want to retrieve system info such as processor brand, hard disk space, total space and free space and also all the program that is installed in a pc. I know if we want to get all the info we should use registry. I can retrieve the info with REG_SV data type and REG_DWORD data type but i don't know how to get the info that use REG_Binary data type.
|
|
|
|
|
Ever tried to use the sysinfo.ocx control?
Grtz, Guus
|
|
|
|
|
nope. is it exist in .net framework. how to use it. To be honest with u, i'm a newbie in .net
|
|
|
|
|
There is a relatively complex API called "WMI" -- Windows Management Instrumentation. Look for documentation on that. Unfortunately, I've never used it, but I've scanned through some articles in the past that imply that you can achieve what you are looking for with it.
|
|
|
|
|
The best way to do that if thru WMI. Not the easiest API to use, but you can start with the documentation on it here[^].
I've done exactly what your doing, but had to do it the hard way in C/C++ because not all my client machines had WMI support on them. If your reading from the registry or from disk info, it's a real pain to write code for every tiny bit of information you want to collect. WMI makes it SOOO much easier, but you still have to write a query for each piece of info you want. It's comes down a a few lines of code per item you want, but it's MUCH less that getting it out of the registry. Besides, some of the info you want isn't stored in the registry at all...
EDIT:
There are WMI Downloads for Tutorials and Tools here[^].
RageInTheMachine9532
|
|
|
|
|
thanks you guys....you really help me a lot.
|
|
|
|
|
This is about a weird compilation error I'm having:
I have 3 projects in a solution: project A (VB) is reference by projet B (C#) and project C (VB) referes both.
I get an error while trying to use type of A in C ???
error BC30652: Reference required to assembly 'A' containing the type 'A.iTraceFile'. Add one to your project.
Anyone faced this ?
Jonathan de Halleux.
www.dotnetwiki.org
|
|
|
|