|
There is no event for that fired by the MSFlexGrid control. The only your going to see is a Click event firing for the entire control, not the column that was resized.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How to code by VB.NET
I am junior Programmer, want to up grad my skill
|
|
|
|
|
jang_dotnet wrote:
How to Open file Media and Record Wav by Wav
???????????? What ????????????
We'll need a much better explanation of what you want to do. What do you mean by "record wav by wav"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
OKay here is the thing. I want to use MD5 to hash a user-defined value into an xml file. The problem is the hash isn't getting to the file. I know the value is being hashed because I put in a message box at the end of the code to display the value of the text box and it comes up as hashed. When I check the xml its not hashed just in plan text. here is the what I am useing. NOTE: No its not the whole thing just all that should be needed to figure this problem out. If you notice I try to hash the username one way and the password another because those are the only two ways I could think of.
Code:
Option Strict On
Imports System.Threading
Imports System.Text
Imports System.Security.Cryptography
Private Function GenerateHash(ByVal SourceText As String) As String
'Create an encoding object to ensure the encoding standard for the source text
Dim Ue As New UnicodeEncoding
'Retrieve a byte array based on the source text
Dim ByteSourceText() As Byte = Ue.GetBytes(SourceText)
'Instantiate an MD5 Provider object
Dim Md5 As New MD5CryptoServiceProvider
'Compute the hash value from the source
Dim ByteHash() As Byte = Md5.ComputeHash(ByteSourceText)
'And convert it to String format for return
Return Convert.ToBase64String(ByteHash)
End Function
Private Sub btnChange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnChange.Click
Dim Doc As System.Xml.XmlDocument
Dim Writer As System.Xml.XmlTextWriter
Dim Reader As System.Xml.XmlTextReader
Dim theuser As String
theuser = GenerateHash(txtUser.Text)
Writer = New System.Xml.XmlTextWriter("C:\users.xml", Nothing)
Writer.WriteStartElement("user")
Writer.WriteStartElement("name")
Writer.WriteString(GenerateHash(theuser))
Writer.WriteEndElement()
Writer.WriteStartElement("password")
Writer.WriteString(GenerateHash(txtPass.Text))
Writer.WriteEndElement()
Writer.WriteEndElement()
Writer.Close()
Reader = New System.Xml.XmlTextReader("C:\users.xml")
Doc = New System.Xml.XmlDocument
Doc.Load(Reader)
End Sub
|
|
|
|
|
Does this look like a job posting forum to you?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
A web site I am using needs being regularly refreshed otherwise the site disconnects my session ( for security reasons) and I have to log in and enter my password again.
To keep being connected I just need to click on some hyperlink.
I would like to write a VB applet which would just do the click .
How can that be done?
aprx
|
|
|
|
|
|
Thank you, I'll have a look.
aprx
|
|
|
|
|
hi all, i have some settings i save to the registry. i want to save the connection string's in my app to the registry as well. here is what i have for connections strings
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\RMSC LOGIN\MYDataBase.mdb;Persist Security Info=False"
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\RMSC LOGIN\Exhibits.mdb;Persist Security Info=False"
What do I need to do in order to save these, Should I set the strCnxn to a varible and the varible gets it value from registry?
I would also need to include a test to the database's to make sure the paths are correct.
|
|
|
|
|
What do I have to do to enable the mouse scoll wheel in Visual Studio 6?
|
|
|
|
|
|
Hi
I got all the records of NISAM File into an array of BYTE. I need to convert the data thats is in the format of old dos N8 into .NET double. I have tried system.convert.todouble(byte) but it doesn't work.
Best Regards
Izt
|
|
|
|
|
Hello, does anyone know how to extract the html from the current running FireFox browser? I can do this for IE but I need FireFox as well. TIA
The world was flat once...
|
|
|
|
|
Hi All,
I am trying to use the set method of querystring property to change a value that I passed as parameter
e.g. Request.QueryString.Set("test", "Yes")
I want to assign "Yes" to "test". And "test" is passed from previous page as querystring. Can anyone tell me how I can this working.
Thanks!
|
|
|
|
|
Hi,
The Request.QueryString property returns a read-only System.Collections.NameValueCollection object. You won't be able to modify it no matter how hard you try.
You will need to copy that collection over to a new NameValueCollection in order to modify it.
It's a shame that the HttpRequest.QueryString documentation doesn't mention that it is read-only, but a quick look with Reflector confirms it.
|
|
|
|
|
Thanks a lot. I found out about that after doing some research...
|
|
|
|
|
I would like to show a weekly 52(or monthly 12) budget report for one year with Bar Chart graph.
I am new with VB.net. By any chance, someone can show me how to do it, or a link where I can learn how to do it?
Thank for any help,
|
|
|
|
|
Do you want to use a) a third party component or a) draw it yourself?
a) Have a look at Office Web Components, free and easy, do a search on MSDN for it
b) Have a look at drawing with GDI+ Bob Powell[^] is a great start.
Hope this helps
Tom
|
|
|
|
|
Hi,
I want to give user specific size print out size (not A4)for Dot Matrix printer when user click on a button of my VB application. please help me. I have to complete my application.
|
|
|
|
|
hi,
one way is to create a custom paper size.
Open the printer control panel
Click on 'File', 'Server propertys'
There you can create a new paper format.
Hope this helps
|
|
|
|
|
i am currently doing my project using vb.net and asp.net, but now have met a problem.
i have compiled the files that i need to use in .dll form, but i do not know how to call it to be used in my program. does anyone can teach me how to call a .dll file to be used in the program in vb.net?(i mean the programming steps and codes)
thx in advance!
|
|
|
|
|
lsch1983 wrote:
i have compiled the files that i need to use in .dll form, but i do not know how to call it to be used in my program
This is confusing Visual Studio does all this for you. You create your ASPX pages, you write the code in the code behind, you press build and it builds it and puts it in your web server and then you can run it.
Or, have you created a Class Library with extra code in it? If this is so, then the Class Library project should be added to the solution where the Web Application is, then you can right-click your Web Application project and select Add Reference, then click the properties tab, then double-click the Class Library project then you can close the dialog and build your project again. The Class Library will be referenced in your Web Application project so that it can be used. However if this was your problem then I cannot see how Visual Studio ever managed to successfully build your project in the first place.
You need to be more specific when describing your problem.
Do you want to know more?
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and Forums Upcoming talk:
SELECT UserName, Password FROM Users
-- Getting unauthorised access to a SQL Server, and how to prevent it.
|
|
|
|
|
Thanks for your reply....
Actually, I created the .DLL files using MATLAB, then I used the Add Reference(in VB.net) to add it to my project, which is a Web Application.
Now, I need to invoke those .DLL to be used, but I do not know what are the steps and codes to be written in my .aspx.vb files to invoke the .DLL files. So, I was wondering how should I code it.
|
|
|
|
|
Hi,
Notes :
-------
- If we want to call a COM(.DLL) which was created in .NET Application to another .NET Application then It has to be done as follows...
General Notes :
---------------
- It is an ease method to create a COM Interop.
- Visual Basic .NET builds the assembly and registers the COM object with the operating system automatically(implicitly)
- Select New Project and Select Class Library on Templates area.
- Change the Name ClassLibrary1 to COMINterop1.
- Select The button OK.
- Now a Class Library Opened.
We have to Add a COM Class as following…
----------------------------------------
- Select Add New Item… in Project Menu.
- Select COM Class from Templates area.
- Change the Name COMClass1 to COM_1
- Click the button Open.
- The COM must has constructor sub New() otherwise the COM may not Registered / Instantiated.
- The Constructor must not take place any Parameter.
- Write yhe following code within the COM Class as follows…
'--- Code Begins Here
<comclass(com_1.classid, com_1.interfaceid,="" com_1.eventsid)=""> _
Public Class Com_1
Public Enum T
Capital = 1
Small = 2
End Enum
Public Const NewLine = vbCrLf
Public Function Letters(ByVal [Option] As T) As String
Dim Nos As Integer, Conc As String
Select Case [Option]
Case T.Capital
For Nos = 1 To 26
Conc &= Chr(Nos + 64) & NewLine
Next
Case T.Small
For Nos = 1 To 26
Conc &= Chr(Nos + 96) & NewLine
Next
End Select
Return Conc
End Function
End Class
- The
|
|
|
|
|
Thanks for your reply...
The steps you gave me seems to be a Windows Application step, but now I am doing a Web Application project. Sorry to have confused you as I didn't mention my problem clearly. Anyway, your explanations are very clear to me and comprehensive. If you also know how to do the steps for Web Application, you are always welcomed to offer your help. Let me just redefine my problems here again:
Actually, I created the .DLL files using MATLAB, then I used the Add Reference(in VB.net) to add it to my project, which is a Web Application.
Now, I need to invoke those .DLL to be used, but I do not know what are the steps and codes to be written in my .aspx.vb files to invoke the .DLL files. So, I was wondering how should I code it.
|
|
|
|