|
Thanks Henry, but if a i pull data without the loop, it will display without problem. Which means that there is no problem with the "Test_Type".
Please any more suggestions or links !
|
|
|
|
|
Please can anyone tell me how to display Ads on windows forms since there is no adrotator control in windows application development.
I would greatly appreciate any comments and ideas you may have with regards to this question.
Thanks in advance
|
|
|
|
|
How about a WebBrowser [^]? It can display various formats and it's quite easy to rotate the contents
I are troll
|
|
|
|
|
Thanks for your reply. The webbrowser control sure does display ads. I would like to know if i can dock (centralize) the gif ad. Thats is making sure the ad fits properly in the control.
|
|
|
|
|
You can use HTML to format the contents, setting the center tag or the align-attributes within the HTML-document.
I are troll
|
|
|
|
|
Thanks alot, your advice worked and am very grateful.
|
|
|
|
|
Hai friends,
Can open a password protected file for uploading and streamming.I want to implement in webapplication.IF it's can u tell me that solution
Thanks in advance.
Cheer,
MAHESH.K
|
|
|
|
|
Password protected in what way?
Is the file system denying access unless you have the correct credentials?
Is the file itself encrypted and you need the correct key to decrypt it?
Is it some other way?
|
|
|
|
|
No. Just i goona upload a password protected file. at that time i wanna promot message box for feeding password
|
|
|
|
|
Okay - So, I still don't understand in which way the file is actually protected. Saying it is "password protected" is too vague as there are a multitude of ways in which a "password" could be applied to a file.
I'm going to assume that you can access the file (so it isn't the file system provding the "password protection"). You just upload the file as you would any other file. There is no difference.
You want to promt the user for the password? At what point? Before uploading? After uploading? Does it matter because it is just a text box.
Now, what you do with the what the user has given you in the text box and the file is probably the bit you are really after. Uploading files, and getting the contents of a text box are simple. Right? Accessing "password protected" data is the difficult bit.
So, my question remains: Exactly how is the file password protected? What is the mechanism for protection. The password is the key, but unless you know how the lock works, how do you know what to do with the key?
|
|
|
|
|
I'll continue with thanks
in net if we upload any file using file upload control,it won't ask for any
protection. I need to apply password when i click on upload control.No one can open open or download
with out knowing that password.Thank u once again for your consideration.
Cheer,
MAHESH.K
|
|
|
|
|
So the file isn't password protected at all - you're the one doing the protecting and you want to require a password. Right?
Now that's easy. Last modified: 14mins after originally posted -- fixed typo
|
|
|
|
|
MaheshSelva wrote: No one can open open or download
with out knowing that password.
Now that is different from what you seemed to be asking for.
Basically, you want a web application to provide password protection so that no one can download the file unless they are already authenticated with the site and authorised to do so.
You may want to look at Forms Authentication[^]. You then want to look at using an ASPX page to stream the file. Something like this: http://forums.asp.net/t/1263188.aspx[^], but with an authorisation check before it actually streams anything out.
|
|
|
|
|
Can we create a 3D project in VB.Net?
If we can, please express me any project or some codes...
thank you
|
|
|
|
|
|
so that I can send audio samples to my mate.
It needs to be able to handle large files, most likely <4GB. I'll probably be using a client/server approach, but I haven't done much beyond basic network programming.
What I'd really like to know is what protocol and which .NET libraries I should use? I've looked at a few books to try and get an overview, and the most obvious candidate is ftp, but all I've found is how to connect to an existing ftp server, and not how to program one.
I'd also like a few recommendations for some good networking books, preferably .NET focused, although I would also appreciate some more general networking books that go into some detail about networking protocols.
|
|
|
|
|
Found an article on here( I always seem to find things just after I've stopped looking for them, or when I'm looking for something else)
Sending Files using TCP[^]
This should be enough to get me going.
|
|
|
|
|
Hi,
I am using the Fire Streamer tape drive emulator. I have a simulated tape drive and a simulated tape (a file). I can open a handle to the tape drive and determine that it uses variable block size. I can set the block size of the tape properly. I use msgbox to verify that this is working, But when it comes to reading or writing to the tape I get "incorrect function" if I use stream.write or stream.read or if I use the win32api ReadFile and WriteFile appear to work but they always read or write 0 bytes.
Any help would be appreciated. Start with the button4 click method below which calls write...
p.s. I create m_stream when I get a handle to the tape with createfile(not shown) as a synchronous stream.
Here is a section of code: I have bolded some statements.
Private Sub write(ByVal startpos As Long, ByVal lstream As Byte())
Dim numberofBlocks As System.UInt32
numberofBlocks = GetBlocksNumber(lstream.Length)
TapeSeek(startpos)
Dim arrayToWrite(numberofBlocks * BlockSize() - 1) As Byte
Array.Copy(lstream, arrayToWrite, lstream.Length)
m_stream.Write(arrayToWrite, 0, arrayToWrite.Length)
m_stream.Flush()
REM Dim nbr As System.Int32
REM nbr = 0
REM retval = WriteFile(m_handleValue, arrayToWrite, 512, nbr, Nothing)
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim selecteddrive As String
selecteddrive = "\\.\" + ComboBox1.SelectedItem.ToString
TapeLoad(selecteddrive)
Dim mediainfo As New DRIVE_INFO
Dim msize As Integer
Dim ptr As System.IntPtr
Dim ptr2 As System.IntPtr
Dim ptr3 As System.IntPtr
Dim mediasize2 As New TAPE_MEDIA_INFO
Dim mediasize As New TAPE_SET_MEDIA_PARAMETERS
ptr = IntPtr.Zero
msize = Marshal.SizeOf(mediainfo)
ptr = Marshal.AllocHGlobal(msize)
Dim deleteold As Boolean
deleteold = True
Marshal.StructureToPtr(mediainfo, ptr, deleteold)
retval = GetTapeParameters(m_handleValue, GET_TAPE_DRIVE_INFORMATION, msize, ptr)
Marshal.PtrToStructure(ptr, mediainfo)
If mediainfo.FeaturesLow And TAPE_DRIVE_VARIABLE_BLOCK Then
ptr2 = IntPtr.Zero
msize = Marshal.SizeOf(mediasize)
ptr2 = Marshal.AllocHGlobal(msize)
mediasize.BlockSize = mediainfo.MaximumBlockSize
Marshal.StructureToPtr(mediasize, ptr2, deleteold)
retval = SetTapeParameters(m_handleValue, SET_TAPE_MEDIA_INFORMATION, ptr2)
MsgBox("Setting Variable Tape Block Size to Maximum Value of: " + Str(mediainfo.MaximumBlockSize) + " Bytes")
Marshal.PtrToStructure(ptr2, mediasize)
Dim myblocksize As System.Int32
myblocksize = BlockSize()
End If
MsgBox("Using Maximum Block Size of: " + Str(mediainfo.MaximumBlockSize) + " Bytes")
Marshal.FreeHGlobal(ptr)
Marshal.FreeHGlobal(ptr2)
Marshal.FreeHGlobal(ptr3)
Dim mystream(BlockSize() - 1) As Byte
mystream(1) = 99
mystream(511) = 99
write(101, mystream)
TapeDriveClose()
End Sub
Thanks, Keiichicom
modified on Tuesday, July 7, 2009 6:05 PM
|
|
|
|
|
It is extremely unlikely that anyone will bother to read through that horribly formatted pile.
If you want help, please edit your post, surround the code with <pre>your code</pre> tags, remove anything not directly related to the problem, and format it properly. You know indentation etc. You might be better cutting the code from your editor and pasting it between the tags, that way your existing formatting will be preserved.
Even if you had formatted it properly there is just too much code there for most people to bother reading it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks for your advice, Henry. You are right , it was one big mess to read. I have made the changes and it should be easier to read now. Please help if you can.
Appreciated, Keiichicom
|
|
|
|
|
Hello friends,
can i get client ip address at which my application running.I want capture that address coz of restrict from frauds. This form is very helpful for freshers like me.Thanks in Advance.
With Regards,
MAHESH.K
|
|
|
|
|
Is it a web or windows application?
|
|
|
|
|
|
|