|
Hi Dave!
Thanks for the answer. To convert the whole application to ADO.NET is not an option, though. The application is near the end of it's life cycle and we won't invest months to switch to current data access technology.
All I want is that my .NET import / export library stores and retrieves character data in a DAO compatible way - with acceptable performance.
Regards
Martin
|
|
|
|
|
If this is just a small request, then you can still use the DAO technology to do this. There's nothing wrong with that. I just wouldn't like to see you dump all kinds of time into new development, or an app that's still has a pretty lengthy life still in it, just to see DAO disappear from the next release of Windows or get ripped out by some service pack or patch.
|
|
|
|
|
|
pavanip wrote: I am developing one application like Anti spyware
pavanip wrote: And what is adware,Trojans, Malware, Keylogger.
If you don't know what this is, you don't have the slightest bit of hope of writing this. It's not just know what these things are, it's also knowing how these things work, how they hide themselves, what clues you're looking for to find these things, how you're search engine is going to work, how you're going to store the information you need to find these apps, ...
In order to write an application like this, you're going to need forensic-level knowledge of how these apps work and how Windows works. And here you're asking how to do something as simple as reading the registry?? I hate to rain on your parade, but your skillset isn't advanced enough to even attempt this app, yet.
|
|
|
|
|
I got various suggestion , But My problem is not solved yet..
I put my .exe file and .dll files in the application directory.
when I start my application it runs fine.
But, Somehow the .dll file is deleted from appliaction directory, then the application throw me a exception
Remember, that I can't check at the start of the application that the .dll file is exist or not, because, the .dll files is referenced at design time. Some controls are created with this dll.
So, How can I solve this problem?
|
|
|
|
|
pdnet wrote: I put my .exe file and .dll files in the application directory.
when I start my application it runs fine.
But, Somehow the .dll file is deleted from appliaction directory, then the application throw me a exception
Remember, that I can't check at the start of the application that the .dll file is exist or not, because, the .dll files is referenced at design time. Some controls are created with this dll.
Maybe you can make a "starter" application that does the checking and then launches the main application only if everything is as it should be.
|
|
|
|
|
|
pdnet wrote: I put my .exe file and .dll files in the application directory.
Are you talking about some folder under Program Files?
pdnet wrote: But, Somehow the .dll file is deleted from appliaction directory
This would only happen if your code was written to delete some files in the app's directory. Perhaps you're doing something with the CurrentDirecty and you don't realize it??
pdnet wrote: Remember, that I can't check at the start of the application that the .dll file is exist or not, because, the .dll files is referenced at design time
You should never have to do this. So what if the .DLL is missing at runtime?? If it's missing, what are you going to do about it?? Stop wasting your time trying to catch the "error" of a missing .DLL and start looking for why the .DLL is getting deleted, or moved.
|
|
|
|
|
I am using Vb.net 3.5
suppose I am using "nsoftware.IPWorksSSL.dll", Which is Store in application Directory.
In my code I am writing such as..
at MdiForm.Designer.vb
Me.Xmpp1 = New nsoftware.IPWorksSSL.Xmpps(Me.components)
When The dll file is missing from the application Directory it give me a error message
"The 'nsoftware.IPWorksSSL.dll' file is not defined"
So, How can I Check in my code that the dll file is exist or not. remember it is declared at the design time.
Please, Help me..
|
|
|
|
|
Uhhh...It sounds like you have a misconception about what design-time really is. From your description, you're not creating an instance of this control at design time. You're doing it runtime, and expecting things to happen that don't work the way you think it does.
You cannot just specify the name of a .DLL file in your code and expect it to be loaded into your app. You have to add a reference to this .DLL at design-time. The IDE will import the namespaces from this .DLL so you can use the classes in it. When you compile the app, the references will be resolved by the compiler and the appropriate .DLL files copied to the Release or Debug folders. You shouldn't have to do anything like your code snippet is suggesting.
|
|
|
|
|
What about setting the .DLL file to be a read only. This way, you may be able to determining who/what is deleting the file.
|
|
|
|
|
I wanted to implement 2 layers in a picture box by using picture box background image and image property.
I am able to do it when I am drawing some lines at run time on picturebox image and having a picturebox back ground image.
But when i save the picture box image (with transparent back ground) as .gif i get a black background.
Can any one plz help me with ho to save the image with transparent back ground
I am using the following codes
Dim ms As MemoryStream = New MemoryStream()
'Get the inmage into ms from picture box
picDraw.Image.Save(ms, picDraw.Image.RawFormat.Gif)
I am keeping the image in a memory stream so that i can send the stream to DB
Regards
Nishkarsh
|
|
|
|
|
nishkarsh_k wrote: I wanted to implement 2 layers in a picture box by using picture box background image and image property.
No such thing when using a PictureBox control. There's a Background image and the Image properties you can set, neither has anything to do with the other.
nishkarsh_k wrote: But when i save the picture box image (with transparent back ground) as .gif i get a black background.
Of course. The background image is not part of the Image property at all, so it doesn't get saved with the Image you save.
Your solution would be to create a new Bitmap object, draw the background image to it, then draw the foreground image on top of it. Then you'll have your composited image that you can save.
|
|
|
|
|
I think i need to re-frame my issue...
I am having a application which is similar to paint brush. Now when i am using a background image in the picture box and put another bitmap as picturebox image (bitmap is created in codes) with a transparent background it works perfectly the way i want.. I am able to do drawing (like mspaint) over the background... which are actually drawn in the picturebox.image not on picturebox.backgroundimage
Now the objective is to save the memory bitmap with the transparent background (which is displayed there in picturebox.image and available in memory bitmap) and display it when required (with transparent back), but when i save it the background becomes black
Any idea of how to save a image with transparent background..
Note: I am using GIF format to save the image, as per my knowledge we can have transparent background in gif
|
|
|
|
|
OK, now I get what you're talking about. Saving a GIF with transparency is not as easy as it should be. Read this[^].
|
|
|
|
|
Hi!
I had got in a situation of creating a Crystal Report dynamically without creating a .RPT file externally.
Is there any way by which i can give the report fields dynamically and make the connection within the codes of VB.net 2005.
Thanks!
|
|
|
|
|
Yes, You can do it by using .xlt and .xls
|
|
|
|
|
I did not realise that this was possible with Crystal, and will not investigate, as it will resolve a problem I have.
Thanks
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Hi,
I had a problem that I want to pass one or more data from one application to another. For example I have two application named "Application_1" & "Application_2"
Application_1 is already running in my system.
When I open the Application_2 it has to send the information like its name & time to the application_1.
How can I do this in VB.net(Windows application) Please anyone help for me to solve the above problem.
AdVance Thanks,
Karthiyayini.
|
|
|
|
|
WM_COPYDATA, named pipes, writing data to a commonly known temp folder, will all work.
Of course, this assumes that you are writing both apps.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Consider using the Microsoft Message Queue (MSMQ)<[^]">
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Hi everybody,
I am using a Sockets.NetworkStream to request approval or denial from another machine, but I do not want to sit and wait for it indefinitely. Could anybody offer some guide?
This is the code I am using:
....
Dim iMsg() As Byte
Dim Stream As Net.Sockets.NetworkStream
Dim iTPC As New Net.Sockets.TcpClient()
MgrIp = Get_UpdloadApprovIP()
If MgrIp = "" Then
Msg("No manager's available to service this request!", 16, "Cannot Proceed!") : Return
Else
iMsg = System.Text.Encoding.ASCII.GetBytes(sClerk & "|" & MyIp & "|")
'//sClerk & MyIp are local variables
iTPC.Connect(MgrIp, 10002)
Stream = iTPC.GetStream
Stream.Write(iMsg, 0, iMsg.Length)
ReDim iMsg(1) '//honestly can't remember why I am doing this
Stream.Read(iMsg, 0, iMsg.Length)
iTPC.Close()
iMsgStr = System.Text.Encoding.ASCII.GetString(iMsg)
If CType(iMsgStr, Short) = 1 Then
UploadFrm.ShowDialog()
Else
Msg("Your request to upload your data has been denied!", 16, "Cannot Proceed!")
End If
End If
....
Thanks for your time and help
Alex.
|
|
|
|
|
You're not going to be able to do this with such simple code. The answer is to use the Asynchronous version of the Read method. This is goign to result in MUCH more code than you're got here. For a few examples, Google for "VB.NET TCP Server".
|
|
|
|
|
Thank you Mr. Kreskowiak for your guide.
Alex.
|
|
|
|
|
HI...
How to save and restore values in multi textbox,Datetime picker,combo box when the form close using vb.net !?
I found the source code for saving values of single textbox in external file generated by the form.
Unfortunately because I’m newbie in vb.net I couldn’t make it work with multi textboxes??
----------------------------------------------------
the code for single textbox:
Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
If IO.File.Exists(Application.StartupPath & "\save") = True Then Kill(Application.StartupPath & "\save")
Dim Read As String = textbox1.Text
FileOpen(1, Application.StartupPath & "\save", OpenMode.Binary)
FilePut(1, Read, -1)
FileClose()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IO.File.Exists(Application.StartupPath & "\save") Then Exit Sub
Dim Read As String = Space(FileLen(Application.StartupPath & "\save"))
FileOpen(1, Application.StartupPath & "\save", OpenMode.Binary)
FileGet(1, Read, -1)
FileClose()
textbox1.Text= Read
End Sub
---------------------------------------------------------------
My Q.How to save the values if we have many textbox or many datetime picker when the form close??
Regards...
|
|
|
|
|