|
Sorry fro the delay, I have been on a short vacation.
hashpasswordforstoringinconfigfile uses the 'sha1' or 'MD5' hashing algorithms. You need to use the same algorithm to hash the password in your windows form and then compare it to the hashed value stored in your gonfig file or database.
There is an article on this forum that describes various methods for dealing with passwords.
Steve
|
|
|
|
|
Hi all,
I have to modify a VB6 program and I want to access to a const declared in a DLL from the app. I've tried to declare it as public inside the library but the application reports an error cause it doesn't recognize the constant. How can I do that?
Thaks in advance,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
OK, it's been 6 years since I've used VB6, so I'm pretty much guessing here.
If a const is declared in a .DLL, just using the name of that constant in your code won't work. You can use it in certain cases, but it depends on how and where the constant is declared in the .DLL. If it's inside a class, then you can probably use it like this:
x = classname.constantname
Without seeing how the constant is declared and what you did to reference this DLL, it's pretty much impossible to give you an accurate answer.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
first of all:
- i Want than one cell range have textFormat, cos when i take data from database if the value is 0004 appears like 4 and i want to appear 004
Second and last question.
how can insert images from my computer on excel
thanks for all
Dios creo un equipo perfecto a los demas los lleno de extranjeros
|
|
|
|
|
hi
i ve designed an application in which whenever i enter an amount in a textbox,then that amount will be displaced in the word format of the currency in another textbox.
Eg. if i enter 12225 then it will display as " twelve thousand and two hundred twenty five only"
please help me in this regard.
u can mail me at pradipta_pkc@indiatimes.com
thanks in advance
i m pradip kumar from india,working in vb.net & asp.net
|
|
|
|
|
Hi
if you want to display number to words!! write to me I will help you.
Kanniah
|
|
|
|
|
hi
thanks for the reply
i want the code in vb.net format.i already ve a code in vb but it z nt compitable with vb.net.
it will ve very helpful to me if u send me the said code in vb.net format
thanks in advance
i m pradip kumar from india,working in vb.net & asp.net
|
|
|
|
|
This is one of the most ubiquitous homework assignments.
All you have to do is Google for "convert number to words[^]" and you'll come up with all kinds of examples on how to do it.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Please i want your help with a code which i can use to store the system clock in a variable which i can use to add a 30 mints to it. as i want to my application to be shutdown after 30 mints when i click Start button but if the user click End button in another form then the timing should stop , and using the timer control was not helpful becuase it dose not accept any compare condition and just close the application.
so i thought to ignore the timer control and use a code which i can store the system clock in a variable and insert that varialbe in a loop and inside the loop i compare the variable with specific value, if it is the desired value then close the application else go again and read the system clock , DO u think its good thinking. if u think its applicale , please help me a code to store the system clock in a variable.
please advise and thank u for ur help
Ali
|
|
|
|
|
Hi
You have got it wrong! Declare a Public variable something like
Public MyHalfAnHour as Integer
If you have set the timer control as 1 minute. Keep incrementing the above variable in the timer control event and when the incremented value is 30, it means that 30 hour has lapsed and close the application else leave the application as it is.
2. When the user clicks the end button on the second form initialize the variable.
I hope it helps!!!
Kanniah
|
|
|
|
|
Thank you so much , this is really a very smart idea
|
|
|
|
|
Dim StartTime As DateTime = DateTime.Now()
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have set white color as the transparent key of my form,
It show properly.
After I chnaged the opacity of the form,
The white color is shown, how can I make the form with this two effect?
That is, opacity = 0.5 and the white color is transparent?
Thank you.
|
|
|
|
|
IIRC, you can have one OR the other, but not both at the same time. If you set an Alpha for the form, the Transparency Key is ignored. At least on Windows 2000 it is. I can't remember if thats true on XP.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i need any books talking abaot API functions in vb6
thx;)
|
|
|
|
|
amazon.com
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
im using VB6
When i write to the main window letters shown in hebrro
but i want it in arabic letters
i tryed all ways to solve it , but i cant
|
|
|
|
|
I am trying to create a podcatcher in VB.Net and I was wondering how to get the code to download the RSS enclosure.
|
|
|
|
|
Hello and good afternoon
I am using an Outlook Inbox as a makeshift queue for the processing of email attachments. Everything works fine except currently I am indexing the session variable to set my folderlist to the precise folder the emails I'm looking to process arrive in.
In other words, I'm doing the following:
xNamespace = xOutlookApp.GetNamespace("MAPI")
xNamespace.Logon()
FolderList = xOutlookApp.Session.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox)
FolderList = xOutlookApp.Session.Folders.Item(4).Folders.Item(5)
Although this certainly works on my machine I need to install the app I've written on a server so it can run 24/7. I'm guessing I need to search the Session.Folders for the folder "Inbox" but I don't know how to do that.
Any help would be greatly appreciated. Thank you!
|
|
|
|
|
I deleted an old, unused column from a table in SQL Server that my app points to. I then removed any reference to that column in my app (variables, controls, etc.) I deleted and recreated the TableAdapter and DataTable for that SQL table in the DataSet designer so it would reflect the lack of that column. I even ran a search in my code for the column name. I run my app, and it works (i.e. I can pull a record from that DataTable) and all seems alright until I call Me.WorkRequestTableAdapter.Update(Record) (which is line 99 in the trace below). It then throws this exception:
System.Data.SqlClient.SqlException: Invalid column name '2AppID'.
Invalid column name '2AppID'.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
at BCI_Tracker.frm_Details.WorkRequestBindingNavigatorSaveItem_Click(Object sender, EventArgs e) in U:\VB\BCI Tracker2\BCI Tracker\frm_Details.vb:line 99
I have no idea where this is coming from. I have looked in the designer code for the form and the dataset. I still can't find where this exception is coming from?
I'm still quite new to vb.net, so I'm sorry if this is super easy, or if I broke a major best practice.
Any help would be great!!!
_____________________________________________________________________
Who's the only one here who knows the illegal ninja moves from the government? - Napoleon
|
|
|
|
|
The SQL for the Update in that TableAdapter is still referring to the deleted column.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Found it! Yup, I'm a rookie. I had spaced that I referenced the column in a Trigger I had setup in SQL! It had nothing to do with my VB.
|
|
|
|
|
Sir,
I want to make a program that generates the password.The program that generates password on any file or folder in the hard disk.I want to start it from the scratch.
Can i get the help .I mean from where should I start.
Please help.
Thanks.
|
|
|
|
|
Are you saying that you want to password protect any file/folder and you want whoever the user is to enter a password to open the file/folder?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
Can anyone let me know how I can use an error provider control?
Thank you!
Sincerely,
Deepa!
|
|
|
|