|
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.
|
|
|
|
|
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!
|
|
|
|
|
Hi.
I am trying to design some simple games using VB 6.( Eg: Picture matching )
Currently, I wish to create levels of diffculty that the user can choose ( Number of boxes to appear on the screen) and also a timer to record the time taken to finish the game.
Can anyone help?
Thank You.
|
|
|
|
|
I guess you can set the number of boxes by creating a control array from code (define the element 0 in your form, not from code)
The timer: use the Timer control, make it a countdown timer (define a variable, for ex. an integer,s et it to a value and start the timer)
Dim timeout as Integer
timeout = 60 ' 60 x interval = 1 minute
Timer1.Interval = 1000 ' 1 second
Timer1.Enabled = True
and in the timer event:
timeout = timeout - 1
lblTime.Caption = timeout & " second(s) left"
This will create a countdown for 1 minute...
greetz
*Niels Penneman*
Software/Dev Site Personal Site
|
|
|
|
|
I have coded a project using VB.NET that uses a speech library called AXinterop.httslib.dll
This program runs on win98se & win2000 simply by dumping all files on the target PC and it goes!(+ dot NET of course)
This failed on XP - XP proclaimed the dll was not registered!
So I used the deployment installer in Vis Studio to create an installer to register the dlls.
The program still fails to run. XP proclaims a dll is not registered!
Using REGASM.EXE to make a .reg file for the offending dlls, I could see that both the MSI installer & regasm.exe produced the same entries under the ROOT -but it still won't work!!
Do I need to make reg entries under local machine &/or user as well ... ?
Someone please help! My program works fine under win98se & win2000...
|
|
|
|
|
I am looking for a robust way for an application written in VB6 to communicate with a VC++6 application. The information flow needs to be bi-directional.
I have a rich GUI written in VB6, and an application that uses various third party libraries to do some intensive processing and written in VC++6.
For the prototype, I used AppActivate to launch the VC++ app and use SendKeys to drive the VC++ program interface.
When I realised I needed bi-directional communication quickly, I hacked in use of the clipboard and pass text strings in both directions.
I now have some synchronisation glitches, and given that my approach precludes the user from cutting and pasting using the clipboard, I'm looking for a more robust approach.
Whereas I can find many IPC mechanisms if I'm writing entirely in VC++, I can find few examples using VB, and none linking VB to VC++.
Can you offer any suggestions.
TIA
|
|
|
|
|
If an ActiveX control returns a pointer to a TIFF image and the size of the image (both integers), can a VB.NET App load the image from memory?
There's no such thing as a bad beer... some are just better than others.
|
|
|
|
|
If the pointer is the handle to a bitmap, you can use Image.FromHbitmap:
intPtr = new IntPtr( pointer )
img = Image.FromHbitmap( intPtr )
|
|
|
|
|
Of course... the ActiveX control returns a pointer to an in-memory TIFF image (not a bitmap).
-Joe
There's no such thing as a bad beer... some are just better than others.
|
|
|
|
|
Hey,
I am trying to emplement a notepad type form into my application and I seen to be haveing a formatting problem. If I open the same .txt file useing notepad and with my editor the formatting is different. Mainly the whitespace seems to be off eg...
(item:something price:25) in notepad
is displayed as
(item:something price:25) in my editor
I counted the whitespace between each item in my editor and it doesn't seem to be the same with each one so its not standardizeing the whitespace or anything. I don't know what is causeing the difference.
Here is the generated code for my textbox on the editor form (textField)
Me.textField.AcceptsReturn = True
Me.textField.AcceptsTab = True
Me.textField.AllowDrop = True
Me.textField.AutoSize = False
Me.textField.Dock = System.Windows.Forms.DockStyle.Fill
Me.textField.Font = New System.Drawing.Font("Bookman Old Style", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.textField.HideSelection = False
Me.textField.Location = New System.Drawing.Point(0, 0)
Me.textField.MaxLength = 0
Me.textField.Multiline = True
Me.textField.Name = "textField"
Me.textField.ScrollBars = System.Windows.Forms.ScrollBars.Both
Me.textField.Size = New System.Drawing.Size(560, 323)
Me.textField.TabIndex = 0
Me.textField.Text = ""
Me.textField.WordWrap = False
I am useing no wordwrap by default and have an option to turn it on but i have tried it with and without on both notepad and my editor and that doesn't seem to make a difference.
Its important that my editor save and display text unformatted as Notepad does.
Thanks in advance for any suggestions
Harley
EDIT:
It just hit me that the way i read the data into the textbox may make a difference here so if it counts for anything i use...
Dim name As String
Dim title As String
Dim text As String
Dim path As String
path = OpenFileDialog.FileName
Dim sr As StreamReader = New StreamReader(path)
text = sr.ReadToEnd()
name = OpenFileDialog.FileName
title = name
newChild(Me, name, title, text)
and of course i have a module for creating new MDI child forms with the textbox and I pass the value of text to that modules newChild sub wich then does a simple
textField.text = text 'Where textField is the textbox in my editor form
|
|
|
|
|
Use a System.IO.StreamWriter and specify filename and encoding. Maybe there's an encoding problem?
greetz
*Niels Penneman*
Software/Dev Site Personal Site
|
|
|
|
|
I'll give that a shot with ascii
thanks
UPDATE:
I figured it out and now I feal stupid.
Turns out it wasn't a formatting issue at all and my only problem was the diffence in fonts used in notepad and my editor.
Thanks for the help
2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
|
|
|
|
|
acecase wrote:
2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
True, one is not a Nickel, the OTHER ONE is
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.
|
|
|
|
|
hi,
can anyone explain me that how can i print a formatted report in VB6.
Vivek
|
|
|
|
|
I am trying to use MSCOMM32.ocx to receive binary data.
MSDN provides two sample code for text data. (Q194922- INFO:Receiving Data
using teh MSComm Control's OnComm Event) (for Send / Receive each). I used
them as the basis and then did the following changes -
- changed input mode to binary in both
- To send binary data passed a Variant containing an array of bytes
- On the receive side inspects the "Input" property.
////////////////////////////////////////////////////
Dim data As String
For i = 0 To MSComm1.InputLen - 1
data = data + "0x" + CByte(MSComm1.Input(i)) + " "
Next i
////////////////////////////////////////////////////
However on the receive side i am facing the following problems -
- I am not sure how to get the number of bytes received. InputLen and
InBufferCount gives 0
- Input is empty.
- InBuff gives some 3 junk characters when i had passed (10,11,12,13,14) as
bytes.
Can some body help out on how to properly receive binary data? Any help is very much appreciated.
thank you
aby
|
|
|
|
|
I have an animated gif set to play once (not loop forever)
I can display an animated gif in a form using the following:
picturebox.Image = Image.FromFile("c:\directory\image.gif")
The image displays correctly but plays forever even though it is set to play only once.
Without going through all the heavy lifting of using the Image animation class and counting frames. Is there a way to stop the animation after one play?
Thanks, GregC
|
|
|
|
|
Hi,
i am having some question reagarding Datagrid
1) I want to get the Rowcount
2) Column Count
3) want to select entire row when i click on any cell and need to unselect if i click on another row.
4) i want to get activate some code on the double click event of Grid.but this is not geting activating when i double click on any cell.is there any specific event?
|
|
|
|
|
|
Fellow NETer's
Check out the two latest demos I posted up:
http://www.codeproject.com/useritems/tile.asp
http://www.codeproject.com/useritems/vbclock.asp
Is there anything else you would like to see, I am quite bored and tired of looking for jobs and never hearing back. At least this way I can stay sharp.
|
|
|
|
|
|
Hi,
Need help on vb.net app that simulates the reminder facility provided in Ms Outlook 2000. Interface accepts input similar to a todo task description along with date & time. User can Dismiss/Snooze with specific interval when the reminder window pops up.
# Will a windows service solve this problem Or stick to an app with separate thread to process various timer events?
# Reminders shld popup when app starts - again similar to MSOutlook.
Suggestions will be much appreciated.
|
|
|
|
|
I don't see why you would use a service. The reminders would be no problem, just let the service interact with the desktop. But you say "when app starts" do you mean IF you would use a service you would make it interact with a GUI program? I suggest you just write a normal app... That's the most easy way to solve this problem.
greetz
*Niels Penneman*
Software/Dev Site Personal Site
|
|
|
|