|
Correct translation to VB.NET is here:
Structure NMHDR
Dim hwndFrom As IntPtr ' Window handle of control sending message
Dim idFrom As Integer ' Identifier of control sending message
Dim code As Integer ' Specifies the notification code
End Structure
Structure NMHEADER
Dim hdr As NMHDR
Dim iItem As Integer
Dim iButton As Integer
Dim lPtrHDItem As IntPtr ' HDITEM FAR* pItem
End Structure
greetz
*Niels Penneman*
Software/Dev Site Personal Site
|
|
|
|
|
Good afternoon!
I want to ask for a VB.Net code for copying files from its source to its destination path.
Thanks in advance!
len_ems
|
|
|
|
|
System.IO.File.Copy(source, destination)
|
|
|
|
|
How do I get a list of active machines in a network using vb.net?
|
|
|
|
|
We need a little more info than this...
Define "active"?
Is it a machine that is connected to the network and turned on, but not doing anything?
Or is it a machine that is "actively" communicating and then not "active" when it is not communicating?
Is it a member of an Active Directory or Novell Directory?
What kind of information are you looking to gather from these "active" machines?
RageInTheMachine9532
|
|
|
|
|
Active machines according to me are those of the 2nd type. It would be good if u could get the machines in the active directory also.
|
|
|
|
|
Then you really can't do that. You would have to write an app that can capture all the packets that come by the machine it is running on. This would only work on Ethernet segments that are running on hubs. Switches will prevent you from seeing all the packets, which is what most corporate networks are going to be built with.
RageInTheMachine9532
|
|
|
|
|
hi...
i want to print something in a formatted manner.. but the thing is that its not from a database. its from collected information withing the program..
basically its read from a lot of files and printed in a orderly manner.. i have all the infor with me.. i just need to print it in the following manner.
the printed matter should look like the post below
can anyone pls help on how can i print in this manner???
actually i need to know how do i put it in some control in sucha way tat the thing will look like a report..
prnting will be easy once i can make it look like the post below...
my prob is how do i arrange it and what control should i use to arrange it in the below manner?? so that later i can just proint out of that control...
tks a lot...really appreciate your help...
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
==========================================================================
S.No | File Name | File Contents |Date Created|
1 |test 1 |This is a test ... this is a test.. | 12/12/03 |
| |continuing the test..this is a test | |
| |test.this is the the test that is | |
| |continued.end of test 1. | |
2 | test 2 |Start test 2.. test 2 initiating count- | 13/12/03 |
| |down to the start of test 2. ABORT!!!!NOW!!| |
3 | test 3 |no one likes test 3. KILLED test 3 | 14/12/03 |
4 | test 4 |Anouncing the arrival of test 4!! test 4 | |
| |is here.... initiating startup............ | |
| |couting down for test 4.Crew dead! | |
5 | test 5 |Thats all folks! | |
===========================================================================
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
i was wondering...if i put all the info i need into a listview...(which will solve my formatting problem) can i directly proint the contents of the list view to a printer in a aWYSIWYG manner??
"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18
|
|
|
|
|
Hi,hello.I want to create a command button that used to
convert microsoft access file to Excel file.What is the code in vb6 for the command button.
Hi, i have create a program using VB6.The purpose of this program are for sales department person key in the data and then review by manager.Now, my problem is manager want me to create a command button to export the data from microsoft access to excel.What is the command button code and the step? Another Question,this program must set up in the office and all the staff can see and use this program at their own PC's!Thank for ur help!
|
|
|
|
|
I'm having all kinds of fun trying to iron out this problem, and im SURE there's an easy solution out there...
I need to use COM interop between unmanaged C++ and VB .NET to have my C++ client catch and respond to events raised in VB .NET. More specifically, I've got a VB .NET custom user ActiveX control with a valid COM interface that I've imported and used in my C++ client. I can make function calls from the COM client to the .NET server, but I cannot seem to handle events from the control.
I'm certainly no expert on COM interop, but I've browsed around and read bits of literature here and there on how to do this to no avail. The control doesn't seem to have any connection points to which I can connect to (which might be the problem), but trying to use ATL SINK_ENTRY with IDispEventImpl hasn't worked, nor has an MFC DECLARE_EVENTSINK_MAP with ON_EVENTs. I'm at a total loss and any help would be greatly appreciated.
P.S. if none of this works, would it be feasible to pass VB a C++ function pointer via its COM interface and then have VB "call" the C++ function using this pointer? They're in the same address space so it should work, but can VB call a function given only an address as a long?
|
|
|
|
|
Any suggestions on using a timer to check for a backup log's existence at a certain time every day? Is there some other function I should be using instead of Timer? Newbie needs help. Thanks!
Stacy
|
|
|
|
|
At a certain time every day? Doesn't sound like a job for a Timer. Sounds more like using the Scheduled Task control panel. Then your app wouldn't have to bother with the time or a countdown timer.
RageInTheMachine9532
|
|
|
|
|
Can I create a scheduled task programatically? This was written as a service. Thanks!
Stacy Springer
|
|
|
|
|
If it was written as a Service, then you can't launch it with the Scheduler. What does this thing do? Why the service?
RageInTheMachine9532
|
|
|
|
|
The service was designed to access a network drive once a day and verify that a certain backup file exists and that the size is greater than 500MB. If the file is there and meets the size requirement it sends an email to several people letting them know the backup was successful, else it sends an email indicating backup failure. I wrote it as a service to ensure it would run without user intervention and whether or not a individual was logged into the server it is running on. This has been my first project and a good learning experience. I appreciate any advice you have to offer. Thanks!
Stacy
|
|
|
|
|
Well, if you want to keep it as a service, then you would have to use a Timer to wake up every so often, poll the system for the time, then see if it is time for the service to do its job. Configuration might be done in an .INI file, for time to wake up and do its job, then restart the service.
RageInTheMachine9532
|
|
|
|
|
Hi.
Anyone knows how to create an option whereby the user can choose the number of squares to appear on the screen for a simple picture matching game?
Help is much needed here.
Thank alot!
|
|
|
|
|
Hello i am working in VB6, using regular run of the DTpicker control. I had 2 requirements one to allow a blank in the dtpicker, which is easy set it to custom properties and put a space in the custom format field.
The second one is to allow invalid dates as well,
for example
31/04/2004 - April showing 31 days
All 30 day months should be allowed 31 days as well
The business logic requires such a situation. does anyone know how to do that?
Thanks in advance
Khizer Haroon
|
|
|
|
|
Dear ppl... Im an intern and recently my boss ask mi to work on a vb project... This is my first time using AS400 wit Vb and i have no idea wat to do....
I did manage to setup e ODBC(took mi a day to understand) and managed to retrieve e data from e AS400 server and its now in access format... But can any1 enlighten mi or show mi sample codes as to how to retrieve e data from AS400 and display it in vb? My main problem is wit e connection strings and i have no idea wat i need to type in...
Dim strConn As String, strSQL As String
Set cnn = New ADODB.Connection
Set rst = New ADODB.Recordset
cdgDataBase.ShowOpen
strConn = "User Id=Dian; Data Source=AS400_Test; DATABASE=SISTFL12T; Password=dian9" & cdgDataBase.FileName
strSQL = "select * from SIBRND"
With cnn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = strConn
.Open
The above is wat i did so far but dun think its e right codes... Can any 1 help mi out thank u bery bery much!
|
|
|
|
|
You first problem is your using the wrong Provider. The 'Microsoft.Jet.OLEDB.4.0' provider is for Microsoft Access databases only. Your going to need a Provider that works with AS400. You can find one at www.hit.com.
RageInTheMachine9532
|
|
|
|
|
Hi,
I'm struggling a bit with getting my programme to automatically encrypt a set of files when the programme closes. My programme writes the files during run-time in response to people's answers to certain questions. I don't want others able to snoop on this data and thus need the programme, when the CLOSE button is pressed, to automatically encrypt all the files which have been written to that session,
Any help would be much appreciated.
|
|
|
|
|
VB6 or VB.NET?
Do you really NEED to encrypt the files or just keep them from the eyes of others?
If you are on a system that has access privileges set up you should be able to just keep the data file for each user inside their own profile space so that no other logged on user can access them.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
VB.Net.
Unfortunately I really do need to encrypt the files since they would contain confidential information which should not be accessible to anyone except people with admin privileges ( IOW, the people entering the info shouldn't even have access to the entered info).
I've looked into the various other ways of doing this and I really think encryption is the way I need to go, unfortunately I haven't found a way to enact it without first loading the file into a textbox and then encrypting only that text. Unfortunately that's a no go also.
|
|
|
|