|
If you can not pay: Either use TAPI or MS Communication control (with VB - check MSDN)
If you can pay, there are several APIs such as HAPI (check hyperterminal in your system).
cheers
vasu
|
|
|
|
|
Hi All,
I've been searching for days to try and obtain the list of counters available on a 2k or NT box, without using the GUI selection.
I have written some monitoring DLL's which return the counters fine, providing I supply them. I need to enumerate the counter list and let the code select apropriate counters.
Any Idea's I have been on MSDN and if I was a C++ programmer I'd have it done by now..
Any help would be great
|
|
|
|
|
Hello !!
Is anybody know where I get get an ActiveX or dll that can be use in VB and by this object I can create a little moving picture screen which is received from a Web Camera. And I can take a still picture and save it.
Thank you !!!
|
|
|
|
|
Commonly, we use free SDK / COM components provided by the manufacturers (For example, Logitech Quick Cam provides one. See FAQs at
http://www.logitech.com/index.cfm?countryid=19&languageid=1&page=partners/info&CRID=1463&parentCRID=948&categoryID=265
Another interesting link is http://www.microsoft.com/windows/NetMeeting/Authors/SDK/default.ASP
which may not be directly relavent to your posting
cheers
vasu
|
|
|
|
|
Hi everybody,
I am called Seth
I have a "Spring-Mass System" created with Visual Basic 6, but it can not work with the code provided. I am just begining to use Visual Basic 6. To create a form is one of the things I can manage but not to write the code exactly. It just has a timer, 3 comand boxes, 3 text boxes and a spring which has to be drawn that will be attached to a mass "M".
Some of the code is given but not all.
Can anybody replay to this message who would help me to write this code, and I would then send you, as a attachement, the Visual Basic 6 form and some of the code.
Can you also write down your e-mail for me to send you the form.
My e-mail is sethforever@hotmail.com
I would be thankfull if anybody could do this to help me.
|
|
|
|
|
b,haps something like this
Private Sub SomeSub()<br />
<br />
Dim arrObjTxtBox As New Collection<br />
<br />
arrObjTxtBox.Add Me.Text1<br />
arrObjTxtBox.Add Me.Text2<br />
arrObjTxtBox.Add Me.Text3<br />
<br />
EnableAll arrObjTxtBox, False<br />
<br />
<br />
End Sub<br />
<br />
Public Function EnableAll(arrCol As Collection, bEnable As Boolean)<br />
<br />
Dim objTxt As TextBox<br />
<br />
For i = 1 To arrCol.Count<br />
<br />
Set objTxt = arrCol.Item(i)<br />
<br />
objTxt.Enabled = False<br />
<br />
Next<br />
<br />
Set objTxt = Nothing<br />
<br />
End Function
Hmm...
|
|
|
|
|
Given below is a code which will extract information about your machine from the DNS database and display it on your vb form:
Dim oAddr As System.Net.IPAddress
Dim Machine, ipaddress As String
With System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName())
oAddr = New System.Net.IPAddress(.AddressList(0).Address)
Machine = System.Net.Dns.GetHostName()
ipaddress = oAddr.ToString()
ipaddr.Text = ipaddress
macname.Text = Machine
The above code extracts the machines ip address and machine name and displays it in your form.Now i am looking for a code which can extract the username and group name of the person logged in on that machine.Could anybody help
|
|
|
|
|
bhaps you should start with the System.Windows.Forms.SystemInformation class
I think this is what you are looking for.
Hmm...
|
|
|
|
|
Hi Lasse,
Thanks for the information, SystemInformation class has all the adequate methods which let me fetch the machines info,although what i want here is :- Machine username and also Group name. How do i fetch a usergroup name?
|
|
|
|
|
can anyone please give me sample code or example for deleting part of the string..
Dim str As String
str = "c:\temp\folder1"
how can i delete "\folder1" from str so str will be only "c:\temp"
I know how to do in c++ but do not know how to do in VB though.
Is String has any functions like CString?
in C++ i can use CString::Find('\') and CString::Right() methods.. what about in VB. any functions that will do the same as above functions???
thank you
|
|
|
|
|
I got it..
that's what i did
Dim fileName As String
Dim path As String
Dim index As Integer
path = "c:\temp\testing\folder"
path = frmPrinterProperties.IDpath.Text
' deleting the last folder name..
index = InStrRev(path, "\", -1, 1) ' find "\" reversly in the path string
path = Mid(path, 1, index) ' get what ever right before "\"
fileName = path & "new folder" ' now "c:\temp\testing\new folder"
|
|
|
|
|
Hi !
I would like to draw vertical text on my form, but don't know how to do it.
To make it clear, I dont want to do something like this :
H
e
l
l
o
W
o
r
l
d
I really want to write vertically !
Any idea how to do that ?
Thank you !
Jerome
|
|
|
|
|
You want to rotate the text 90 degs.
This is not simple
Use the Create font api (allapi.com)
CreateMyFont = CreateFont(Height,Width, 900, 900, Weight, FW_NORMAL, Italic, UnderLine, Strikeout, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, PROOF_QUALITY, DEFAULT_PITCH, "Times New Roman")
|
|
|
|
|
check this code:
http://www.vbcity.com/forums/topic.asp?tid=960
cheers
vasu
|
|
|
|
|
Hi,
I am getting the following error when trying to call a Windows API function from Visual Basic.NET
An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication5.exe
Additional information: Object reference not set to an instance of an object.
The code that I wrote is :
Declare Function RFVB_New Lib "RF2VB.DLL" (ByVal lObjectType As Long, ByVal pObject As Long) As Long
Dim lerror As Long
Dim lFI10Obj As Long
Public Const RFO_FAXINFO_10 = &H10000
lerror = RFVB_New(RFO_FAXINFO_10, lFI10Obj)
The error is occuring on the last line.
Please suggest the cause of the error.
Thanks
|
|
|
|
|
Refer to the following articles and see it helps:
http://www.devx.com/dotnet/articles/mh062702/Part1/mh062702-1.asp
http://www.devx.com/dotnet/articles/mh062702/Part2/mh062702-1.asp
cheers
vasu
|
|
|
|
|
Question:
I have an intranet site that I need to snag the user's domain name so I can stuff it into a mail message. Does anyone know of a way to grab this info from a serverside script?
Thanks,
-Dave W.
|
|
|
|
|
This code works in VB6, however you may be able to just wrap it into a ActiveX COM component to work on the web.
Domain Name in VB6
HTH
Nick Parker
|
|
|
|
|
hey all,
I'm trying to do a very simple regular expression but VS.NET is barking at a simple line of code.
At the top I have:
Imports System.Text.RegularExpressions
And in my code I have:
Dim r As Regex()<br />
r = New Regex("\d{2}[a-zA-Z]+", RegexOptions.IgnoreCase Or RegexOptions.Compiled)
The error message is:
C:\DavidCode\NETBeast\WindowsApplication2\Form1.vb(74): Value of type 'System.Text.RegularExpressions.Regex' cannot be converted to '1-dimensional array of System.Text.RegularExpressions.Regex'.
I'm not sure I understand why except that my regex may not be a string literal. In C# I can just do @"..." but in VB.NET it isn't working..
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
It's because of those parentheses after Dim r As Regex.
What you're saying here is "give me an array of Regexes" then you're saying assign this new Regex to this array variable which just isn't possible.
Paul
|
|
|
|
|
Thanks Paul...
Brain Fart; I keep writing things as:
Regex r = new Regex("..")
and then remembering I'm in vb.net and not adjusting properly -
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
how to create directory in VB?
I know in c++ mkdir(..).
let say i want to create c:\meme\testfolder
|
|
|
|
|
In VB6
<br />
MkDir "c:\meme\testfolder"<br />
In VB.NET
<br />
IO.Directory.CreateDirectory("c:\meme\testfolder")<br />
Paul
|
|
|
|
|
Use the
CreateDirectoryEx<code> API ;) <br />
<br />
Carlos Antollini.<br />
<a href="http://www.sonork.com/">Sonork</a> ID 100.10529 cantollini
|
|
|
|
|
We are pleased to announce the release of DeKlarit 1.2 for Microsoft Visual Studio .NET!
DeKlarit is a RAD tool that integrates into Visual Studio .NET, aimed at developers who want to rapidly deliver .NET applications. Unlike other tools with long development cycles from design to executable applications, it allows you to create robust applications in record time.
DeKlarit provides a declarative way to describe your business objects, based on which it creates and maintains a normalized schema and generates ADO.NET DataSets and DataAdapters. When there are changes in the Business Components structure, DeKlarit creates a new database schema, migrates the data from the old schema to the new one, and regenerates the .NET DataSets and DataAdapters.
Version 1.1 was released in July 2002 and added several important new features to version 1.0. Now, version 1.2 incorporates a new type of Business Component and several productivity features:
New features since v1.0:
· Reverse Engineering Tool: Start your Business Framework from an existing database and have your .NET application done in no time.
· Web Services Generator: It allows you to automatically build a Web Services layer on top of your Business Framework.
· Windows Forms Generator: It generates complete Microsoft .NET applications that work with your Business Framework.
· Custom Metadata Properties: The ability to define custom metadata properties for DeKlarit objects and attributes that can be used in custom code-generation tools.
· Event-Triggered Actions: The ability to execute actions triggered by specific events in the business rules.
· Role-Based Security: It allows you to use .NET role-based security in your Business Frameworks.
· Support for using external SQL views, with the new External View object.
· Support for paging in DataProvider’s DataAdapters
· Better Help integration and content
· Samples and documentation in Visual Basic.NET
· Improvements in the Reverse Engineering tool
· New Built-in metadata properties for Business Components and Attributes
· Performance improvements for loading large projects.
To see how easy it is to build the .NET PetShop application with DeKlarit, download it at www.deklarit.com/samples/petshop.msi.
As you can see, the DeKlarit Team has been extremely busy updating this version for our clients.
We encourage you to download the latest technical documents at www.deklarit.com/technical.
There is a 30-day limited trial version for download at www.deklarit.com/trial.
Best regards,
The DeKlarit Team
www.deklarit.com
info@deklarit.com
|
|
|
|