|
dose it make diferent if you know that i was use .NET 2005 ?
i dont understand what do u want to asking ?
any way, what is the result after changes the font?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
i mean is there different
in dealing with this between .NET 2003 and .NET2005 ?
and thank you
it is work
|
|
|
|
|
hi khaleel,
i have no idea about .NET 2003 so i don't describe any difference
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
i was trying to write the following code.i think i am missing some framework base class to import.
dim key as Microsoft.win32.registrykeys =registry.localmachine
Now the problem is
where the registry.localmachine resides ?
|
|
|
|
|
Nilish wrote: where the registry.localmachine resides ?
are you talking about the registry itself or the .net framework?
regards
|
|
|
|
|
Sir this is VB.net Forum.Then obviously i was thinking of registry manipulations using vb.net
|
|
|
|
|
Nilish wrote: where the registry.localmachine resides ?
it resides on your source code!!
Nilish wrote: dim key as Microsoft.win32.registrykeys =registry.localmachine
Now the problem is
where the registry.localmachine resides ?
if you are not sure about the namespace, then the answer is in your question: Microsoft.Win32
but if you are not sure about the registry key, the answer is: HKEY_LOCAL_MACHINE
to find this out, just type the command - regedit in the command prompt.
you can also use functions like OpenSubKey(), SetValue(), GetValue() etc... if you require.
regards
|
|
|
|
|
You're missing an Import at the top of your code:
Imports Microsoft.Win32
.
.
.
Dim key As RegistryKey = Registry.LocalMachine
|
|
|
|
|
i want to encrypt and decrypt simple string. i want methods where key is not required to perform encryption and decryption. even anyone knows then please provide code which is not using key.
|
|
|
|
|
System.Security.Cryptography.Namespace.
Cryptography[^]
Regards,
Satips.
|
|
|
|
|
Hi!
I have a exe file which when run downloads a number of files via webclient.downloadfile() method. Now by default its going in the same directory where this exe resides. I would like to point the files that are being downloaded to another server. could someone help
thanks
|
|
|
|
|
This depends on how your web service works. Do you get to supply the filename and/or full path to where the file gets stored? If not, you'll have to put up with the file getting downloaded to its current location, the you'll have to copy it to your server location when the download is complete.
|
|
|
|
|
Thanks for the reply. i figured out myself i just have to place the folder location before the filename. Its not really a web service. I get list of foldername/filename as a database record and i loop through each of the record and download them. now another problem i am facing is. sometime i get 404 exception and it just stops. how could i skip the file if its not found.
codes:
Private Sub btnDownloadImages_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDownloadImages.Click
Dim myDAL As New clsDAL
Dim dr As DataRow
Try
Dim dt As DataTable = myDAL.getImages()
If (Not dt Is Nothing) Then
For Each dr In dt.Rows
ProcessImageNames(dr("Art_Image_file_URL_stem"))
Next
End If
Catch ee As Exception
Throw ee
End Try
End Sub
Private Sub ProcessImageNames(ByVal strFileName As String)
try
Dim myStringWebResource As String = Nothing
' Create a new WebClient instance.
Dim myWebClient As New WebClient
' Concatenate the domain with the Web resource filename. Because DownloadFile
'requires a fully qualified resource name, concatenate the domain with the Web resource file name.
myStringWebResource = remoteUri + fileName
'Console.WriteLine("Downloading File ""{0}"" from ""{1}"" ......." + ControlChars.Cr + ControlChars.Cr, fileName, myStringWebResource)
' The DownloadFile() method downloads the Web resource and saves it into the current file-system folder.
myWebClient.DownloadFile(myStringWebResource, "c:\images\" + fileName)
Catch ee As Exception
Throw ee
Finally
Me.Cursor = Cursors.Default
End Try
End Sub
---
thanks in advance.
|
|
|
|
|
that is also solved. i need to write a try and catch block before i download it.
|
|
|
|
|
I am not a big fan of the AOL Instant Messanger Software. I have been using Pidgen/Gaim for a while now, and there nice, but I would really like to make my own AIM client with VB.net 2003.
I have tried Fluent.TOC, however, when I use the toc.SignOn() method, the program hangs. I am certain that the screen name and password are right, as they work correctly when logging in in Gaim.
(I am a fairly experienced VB.net programmer, but haven't used these boards before - i created my account to look at and download articles.)
|
|
|
|
|
Your single best source of information is going to be a support board around that library. It's VERY unlikely that you'll find anyone here who as used that library, or just sending a note to Fluent Consulting.
|
|
|
|
|
|
Hello,
I have to print a PDF file in my project
Now I'm using following code
Dim NP As New Process()
NP.StartInfo.FileName = "c:\" & PdfFile
NP.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
NP.StartInfo.Verb = "Print"
NP.Start()
NP.WaitForExit(9000)
If Not NP.HasExited Then
NP.Kill()
End If
This works fine on the default printer. The question is : how to let the user choose a different printer or is there an other way to print the pdf file without acrobat ???
|
|
|
|
|
Your overall approach is obviously a hack. You need instead to use some sort of library that allows you to deal with a pdf within your own process.
Or, you could just change the default printer to whatever the user selects, then change it back, if you don't mind another hack.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
I have a program linked to a Access Database and i would like to be able to hit a button on the form and open a report in that database in such a state to print it.
|
|
|
|
|
Are you asking if it can be done, or are you asking us to write the code for you?
______________________
stuff + cats = awesome
|
|
|
|
|
|
Hi:
I have created two dimensional 2 x 2 array, and assigned values for 3 elements of an array only which is shown in the following code. I was bit wondering what values will be stored in the rest of the elements of array. I assumed "nothing"
will be stored for them. But I got some exception handling errors. Can any help me?
My Code:
Dim s(2, 2) As String
Dim x As String
s(0, 0) = 1
s(0, 1) = 1
s(1, 0) = 1
x = s(1, 1)
If x.Equals("") Then
MessageBox.Show("Uninitialied arrray stored nothing")
End If
hsprasain
|
|
|
|
|
They will contain Nothing , or in C#, null .
|
|
|
|