|
bapu2889 wrote: it's involve lot of maths
and i am not very good in math
It shouldn't involve any real serious math like partial differential equations or anything like that. Maybe just some transformations, which can be relatively easy. http://www.mathworld.com[^] is a good reference. As far as websites on how to do page flipping, I don't really know of one. Have you tried a basic google search?
I don't have actual code how to do it, but just trying to give some ideas how it could be accomplished and that could be through some animation tricks.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello sir
first of all thank you very much for your rep.
i will try that web site
and realy want to do it and i will do it
but i dont know when
thanks again
|
|
|
|
|
Hi,
I have been working on a small application to monitor the file system and I cam across a problem. To monitor the file system I am using the File System Watcher component (I have named it filesystem) and I used the "EnableRaisingEvents" property inside a Button_Click Event to allow the user to enable/disable it. But for some reason it only half works:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If filesystem.EnableRaisingEvents = True Then
filesystem.EnableRaisingEvents = False
Else
filesystem.EnableRaisingEvents = True
End If
End Sub
When I click the button it disables the File System Watcher and if I click it again it throws an error saying "The path is not of a legal form". I've tried to stop this but watever I do it always throws the error.
Any help would be greatly appreciated,
Thanks
Lloyd J. Atkinson
|
|
|
|
|
Make sure the Path property contains a valid path.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi,
Thanks for that, I didnt have a clue before why it would'nt work!
Thanks,
Lloyd J. Atkinson
|
|
|
|
|
You're welcome.
The only thing I did was rephrase the error message...
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi everyone,
I am working on billing project.
I want to print calculated amount in words for Reports.
Reports are generated in Crystal Report 8.0
e.g.
Amount = 6,45,840/- Rs.
In Words “Six Lakhs Forty Five Thousand Eight Hundred Forty Only.”
Currently I am using to “towords()” function to convert numeric value to string.
Current I am having two problems.
1) Numeric values are not displaying properly
values like 6,45,000 are displaying as 645,000. I am not able set thousand separate for values in Lakhs.
2) Words are not correct for values like 100,000 i.e. One Lakh and so on.
e.g.
If the Amount = 6,45,840/- Rs.
It is printing Words as “Six Hundred forty-five thousand eight hundred forty only”
Instead of “Six Lakhs Forty Five Thousand Eight Hundred Forty Only.”
Please tell me how to solve this problem.
I am using Crystal Report 8.0 as Reporting tool and Visual Basic 6.0
Kiran Sajanikar
Software Engineer
CleverBIT softwares.
Pune.
|
|
|
|
|
|
<br />
<br />
SqlStr = "SELECT partno, itemdetails FROM tblpurchaseitem WHERE partno in (select partno from StockMaster where stockgroup='" & Combo1.Text & "') and number in (select number from tblpurchase where pur_date>=#" & Format(mskdate, "mm/dd/yyyy") & "# and pur_date <=#" & Format(mekdate, "mm/dd/yyyy") & "# and purchase_form='Purchase') and purchase_form='Purchase' group by partno,itemdetails"<br />
<br />
hello friends i want the Sum(quantity) feild also on the reports the query works fine but someone tell me how the that feild could added to Crystal report
with regards
yogesh
|
|
|
|
|
You can calculate the sum of quantity in the Crystal Reports by just adding a formula field into the crystal reports, in the formula editor right the following code:
Sum ({TableName.ColumnName})
e.g.
Sum ({Sales.quantity})
Then just place the created formula field into your report.
Hope it helps !
AliAmjad(MCP)
|
|
|
|
|
I tried the same but it will display the th error
that is
"Error Detected by database Dll"
plz sugges the another option
regards
yogesh agarwal
|
|
|
|
|
Did you add the Table into your crystal reports document viewer under Database fields before calculating the Sum and successfully be able to connect to the database?
AliAmjad(MCP)
|
|
|
|
|
<br />
With CrystalReport1<br />
.SQLQuery = SqlStr<br />
.ReportFileName = App.Path & "\Reports\rep_ItemEnqSPG.rpt"<br />
.Formulas(0) = "startdate= '" & mskdate.Text & "'"<br />
.Formulas(1) = "enddate= '" & mekdate.Text & "'"<br />
.Formulas(2) = "name= '" & Rs!Name & "'"<br />
Wend<br />
.Action = 1<br />
End With<br />
<br />
<br />
I am not using the Viewer my code is mention above
all the feilds works fine only aggrigate function feild not working
regards
yogesh
|
|
|
|
|
Open your report rep_ItemEnqSPG.rpt and establish a connection with your database then add the table which has the quantity field then try to use the formula field.
AliAmjad(MCP)
|
|
|
|
|
I Have comleted our login form and when user input valid user name and password then he/she move to the MDI Form but I Want to close login form after enter valid username and password
from samarjeet singh
Kanpur(UP) india
samarjeet singh
(Software Engineer)
|
|
|
|
|
if you use VB then use unload function
|
|
|
|
|
well if your login form is startup form, and you are using VS2005 then just use
closing_button_click()
me.close()
if using VS2003 then hide the form by
<br />
me.hide()
for closing the complete application , you can use
application.exit()
|
|
|
|
|
You cannot set the Startup object to be the login form. Closing the startup form will close your entire application because the app's message pump is attached to it.
Your startup form should be your applications main form. In that form's code, you check to see if the user is logged in, if not, then you put up the login form to get authenticated. There should be a button in the login form to Cancel the login. Your main form's code should take that to mean it should quit.
|
|
|
|
|
But you can set it as the startup form and just tell it to hide (vs2005) without problems.
|
|
|
|
|
Not a good desgin, but it works.
|
|
|
|
|
I'm creating an application that launches a splash page when it is started. I want the splash to remain on the screen for 5 seconds and than it would disappear and the main form would appear. I have been playing around using the timer component but cannot seem to get it to work. Anybody know of a good tutorial for this or have advice on what to do as I'm a newbie?
Thanks
|
|
|
|
|
If you are working under Visual Studio 2005 then you can display the Splash screen just by going to the Project properties and on Application Tab just check the box 'Enable Application Framework' and choose your Splash Screen from the Splash Screen drop down and select the startup form from the
"Startup Object" drop down. No need to use timers here. But if you are not then just add a timer control to the form set its Enabled property to 'True' change the interval to '5000' for five seconds then in the Timer's Tick event just enter the following code:
Me.Timer1.Enabled = False
Me.Hide()
Dim frm_main as new MainForm()
frm_main.Show()
Hope it helps !
AliAmjad(MCP)
|
|
|
|
|
AliAmjad,
Thanks for the tips. I'm using a splash page but I still cannot get it close after 5 seconds. Any advice on how to do that which is what I was going to use the timer for as I was trying to get it wait for the timer to countdown and than close the form.
THanks again
|
|
|
|
|
I am writng an editable grid in my vb.net2005 project. The code is working fine but text box is not well positioned in the grid cell, for me to see what im entering in teh text box
im using something like this in teh FG_Keypress event
textbox.setbound(fg.left+fgcell.left,fg.top+fgcell.top,fgcell.width,fgcell.height)
any help will be appreciated.
t.aransiola
|
|
|
|
|
Why are you using the old FlexGrid?? What are you doing that will not let you use .NET 2.0's DataGridView??
|
|
|
|