|
|
hi all,
actually i dont know much about VB.Net and i use some converstion techniques to convert C# codes into VB ...
i have the lines below :
...
Dim PD As PrintDocument = New PrintDocument
PD.PrintPage += New PrintPageEventHandler(PrintDocument1_PrintPage)
Dim pdiyalog As PrintDialog = New PrintDialog
...
i get these two errors because of the lines above :
Error 1 'Public Event PrintPage(sender As Object, e As System.Drawing.Printing.PrintPageEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.
Error 2 'System.Drawing.Printing.PrintPageEventHandler' is a delegate type and requires a single 'addressof' expression as the only argument to the constructor.
how can i modify the VB.NET codes above so as not to get errors above ?
help please ...
|
|
|
|
|
|
I have a function which check for the folder size.
When i run this function through a window application it runs fine for a network folder.
Butr when i run it from a window service then it gives me "Access Denied" error on the same folder as i used in window app.
Any clu why is this happening?
|
|
|
|
|
web service uses ASP.Net user. So your ASP.Net user must have admin rights on the system.
Regards
Rizwan Bashir
|
|
|
|
|
This is the Q.
What diff it makes for executing the same code from a win app and from a win service.
even if it does how do i make sure that win service has sufficient privilidges ( one way is when insatalling through admin account)
|
|
|
|
|
I am sorry in one go I read this as Web Service instead of window service. well for window service there is no difference. until unless you mentioned the user name in the service who will run it. Like go to services in control panel and then right click on any service and see properties then on second tab you can see the log on information. and check who has the previlage to work on the service. this is some thing which you can configure while building the setup . so define admin user and it will never create any problem.
Ans for your question :
Executing same code is run under the previlage of logged on User. and service will run under the defined user in the services as explained above.
Regards
Rizwan Bashir
|
|
|
|
|
Hello, can any one tell me the ways to access the common dialog conrol in application?.. it shows error while using the common dialog conrol. Is it means that the error occurs while installing the .NET pack? or else what i have to do for rectifying the error.
Thanks
with regards,
K.Vijaya
|
|
|
|
|
Error Summary:
Could not load file or assembly 'CrystalDecisions.Windiwos.forms, Version=10.2.3600.0 ..."
Hello friends
We upgraded recently from Visual Studio 2003 to 2005; every thing was fine until upgrade.
After upgradation our deployed project does not run reports. This is a scenario.
We have designed reports in CRystal Report XI and just calling these reports from Visual Basic .net 2005 with the Crystal Report Viewer (CrystalDecisions.Windows.Forms version 10.2.3600.0).
When I make a setup to delpoy the application, on the client machine when I click on Print button to view/Print the reports following error occurs;
Could not load file or assembly 'CrystalDecisions.Windiwos.forms, Version=10.2.3600.0, ..."
This is quite famous error I found on the internet, and as all suggested I discovered that Visual Studio 2005 should have CR XI R2 a compatible upgrade of CR XI. Allright I downloaded CR XI R2, uninstall CR XI and installed CR XI R2.
When try to make the setup, oops could not find merge module for Visual Studio 2005 in merge module directory, (I was expecting this merge module should have installed with CR XI R2) any way I again downloaded merge module from the busiinessobject "cr_net_2005_mergemodules_mlb_x86.zip", extrected that and copied in C:\Prog. files\Common Files\MergeModule\ and included this merge module with the Setup; oh no again same problem.
All Right now I search again on internet and found no I should have some other merge module which is "crXIr2_net_merge_modules.zip" this Zip file contains 3 msm files CrystalReports11_5_maps.msm; CrystalReports11_5_NET.msm; CrystalReports11_5_NET_2005.msm.
I included all togather problem not solved;
I included CrystalReports11_5_NET.msm seperately problem not solved
I included CrystalReports11_5_NET_2005.msm seperately problem not solved.
What a joy ride ...
Can any one direct me the right direction to get rid of this problem.
|
|
|
|
|
Hi everyone..
i need help, actully i'm doing a project that using vb and communicate with bar code reader..
Actually im doing tacking system.. can somecody help me solve my problem??
areon25
|
|
|
|
|
Dear Friends,
I want to know 'bout the connection string of Oracle in Visual Basic.
Your answers will be appreciable...
|
|
|
|
|
|
To Mr. Sathish S ..
Thanks sir..I've gone through your reply...it helped me....i want to get in touch with you, in future ....
your' sincerely
Ritesh
Software Developer
VB6
-- modified at 3:08 Tuesday 9th May, 2006
|
|
|
|
|
Hello everyone,
I have two windows forms, form1 has a close button that I would like to use to close not only form1 but also form2 at the same time if form2 is open. Is there a way to do this cause I cannot find anything that can help me with this?
|
|
|
|
|
On Click event of your Close button do this
Application.Exit()
|
|
|
|
|
Oh, on your button click event, you do all those things.
me.close
form2.close
this will close two forms and will leave other running forms,if you have any.
kagiso
|
|
|
|
|
Dude he asked to close both forms form1 and form2 when he press close button on form1
|
|
|
|
|
If you are running both forms(both open during running mode), you can always use, me.close that closes the current form and after that write form2.close(that is if your second form was initialized as form2.frm)
kagiso
|
|
|
|
|
Thanks guys, I'll try all of them cause I will need to exit certain forms only and also eventually the aplication in the end. Got two answers for the $0.00 price of one.
|
|
|
|
|
Well I tried these suggestions and all I kept getting is that there was no instance set to an object and I've tried it many different ways and nothing BUT, I did find this article about Singletons which is letting me do exactly what I want. So for anyone that is having toubles like this here a good place to start looking >> http://www.codeproject.com/vb/net/Simple_Singleton_Forms.asp[^]
|
|
|
|
|
I created ChildForm with ControlView had multi Cells on it. One cell of them, I want to add a Combobox. When I clicking on Combobox then show droplist will get data from a table on my Database. I'm VB.NET beginner, Plz help me. Thanks.
|
|
|
|
|
|
check this example
http://rustemsoft.com/ASPDataGridColumns.htm
|
|
|
|
|
I already add coloum at design time. when I bind data to datagridview at run time. The datagridview add more new column. It dosen't bind data to column that i already add at design time. can you tell me?
|
|
|
|
|