|
or you can use module level boolean variable to check wether the button is already clicked ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
I am using visual studio .net 2002.
I have created windows application using vb.net.Created one form and
I am opening one crystal report using that form.I have used CrystalReportViewer.
When I was design application, it was asking for Crystal report Registration.
I was allways cancelling this and was able to work on application/crystal report.
Note : I don't have internet connection.
One day I have entered following ,in the registration window.
Registration number : 8013180283
Key code : A5S50-81C0000-5X00027.
when I wanted to run that an error occured.
An unhandled exception of type
'CrystalDecisions.CrystalReports.Engine.OutOfLicenceException' occured
in CrystalDecisions.CrystalReports.engine.dll
version : 9.1.3300.0
Next day when I opened the application,it doesn't opened and there is continous
error "invalid KeyCode"
pls help me out ,what may be the reason.
s.Radhakrishna
|
|
|
|
|
|
hi ..
can anyone give me msgrNL32.dll or msgr3NL.dll..its the one used to check spelling in word for dutch language..
thanx in advance..
|
|
|
|
|
BINO VARGHESE wrote: hi ..
can anyone give me msgrNL32.dll or msgr3NL.dll..its the one used to check spelling in word for dutch language..
thanx in advance..
Clickety[^]
|
|
|
|
|
thank you very much![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
the DLL in that website is corrupted my dear friend...so can u plz send me someother link..
awaiting reply..
|
|
|
|
|
BINO VARGHESE wrote: the DLL in that website is corrupted my dear friend...so can u plz send me someother link..
awaiting reply..
Well, I just googled for the file name and found some sites...
|
|
|
|
|
can u send me if u get any free sites for the DDL...me too searched but itz all paid sites ![Cry | :((](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_cry.gif)
|
|
|
|
|
|
thanx dude vl try using it....
|
|
|
|
|
I have an array of objects. Each object refers to an mp3 file as follows:
mp3file.Title
mp3file.Artst
mp3file.Album
mp3file.TrackNumber
My question is, how can I sort the array by a specific item of the object, eg. Sorted by Artist, sorted by Album etc.
Thnaks
|
|
|
|
|
Make a custom comparer for your class, and use that in a call to Array.Sort.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Thanks for the quick reply.
You say, 'Make a custom comparer for the class'. I'm fairly new to VB.net and don't quite understand what you mean. Please could you explain a little more.
Thanks again
|
|
|
|
|
Something like this. Say you want to sort by Artist name.
Make a function:
Function CompareArtist(ByVal Artist1 As String, ByVal Artist2 As String) As Boolean
IF (Artist1>Artist2) Then
Return True
Else
Return False
End IF
End Function
Then when you do your sort, have something like this:
If CompareArtist(mp3file(1).Artist,mp3file(2).Artist) Then
//Do you sorting here depending on the result of the compareartist function.
End If
You could make a seperate comparison function for each member of the object, or just 1 or 2 depending on the type's of the object's members (if they are all strings for example). I hope that makes some sense.
David
|
|
|
|
|
Thanks very much, this is the sort of thing I was after.
I guess you cant use array.sort on an array of objects. I though there was probably some syntax you could add into array.sort to specify which 'column' you wanted to sort by.
Anyway, the code you have given me David looks fine. Thanks
|
|
|
|
|
Create a class that implements the interface IComparer. The class needs to have a method named Compare that does the comparison of the properties you want to sort.
I usually don't program VB, but something like this:
Class MyObjectComparer Inherits IComparer
Public Function Compare(A as Object, B as Object)
Return String.Compare(DirectCast(A, MyClass).SomeProperty, DirectCast(B, MyClass).SomeProperty)
End Function
End Class
This you can use to sort your array of MyClass objects:
Dim comparer as new MyObjectComparer()<br />
Array.Sort(TheArray, comparer)
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
hi..
i need help with rounding decimals to nearest 10th.
e.g
$1.20,$1.21 & $1.22 rounded 1.20
$1.23,$1.24 rounded to $1.25
$1.26 , $1.27 rounded to $1.25
$1.28 , $1.29 rounded to $1.30
hope this above example is an idea of what i need.
thanks
Robbo
|
|
|
|
|
Multiply by 10, round it (integer rounding), and then divide by 10?
|
|
|
|
|
hi chandra
can you give me a quick sample source.
Robbo
|
|
|
|
|
|
Chand
an a sample like this. the end result always rounds down
e.g. dim num as decimal = 1.23
dim roundednum as integer
roundednum = math.round(num *10)/10
'result = 1.2 instead of 1.25
Robbo
|
|
|
|
|
But that is what you wanted, right? Round to nearest 10th?
Btw, my name is Chandra
|
|
|
|
|
i think my first message was right except i said 10th which gave a confusion.
basically i need decimal rounded down or up to nearest decimal
e.g 1.20 ,1.21,1.22 should be $1.20
1.23,1.24,1.25 should be $1.25
1.26,1.27 should be $1.25 (round down here)
1.27,1.28,1.29 should be $1.30
btw. i know your name is Chandra was just giving you a short nick thats all.
sorry if that offended you.
Robbo
|
|
|
|
|
My bad - I did not study the examples, just went by your statement
What you want is round to nearest 5 cents...
Ok, try this then:
x = round(x * 20) / 20
|
|
|
|