|
Both [ENTER] keys are specified by Keys.Enter . There is no difference between the two keys. They both have the same virtual key code comming out the of the keyboard driver - VK_RETURN.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Simply my problem is that which [Enter] key is pressed. Can u direct me ....
Syed Shahid Hussain
|
|
|
|
|
You can't get this information unless you write a global keyboard hook. There are many examples of this all over the web.
A little Google goes a long way. Search for "c# keyboard hook[^]" and you'll come up with examples. THe very first link is an article right here on CP.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave. I will.
Syed Shahid Hussain
|
|
|
|
|
Hi,
I have developed a multi form application with graphice and sounds effect but when I run the application it holds a lot of memory. Can any one give me the idea for fast running of my application.
Thanks
Syed Shahid Hussain
|
|
|
|
|
You're going to have to be more specific than that. There's hundreds and hundreds of techniques, but what you do depends on how you've written your code and what your code is supposed to be doing. There's just no way to answer this question with the information you've given.
If your app is just consuming memory until the system runs out, then you've got a problem where your not releasing resources properly, like calling Dispose() on objects when you're done with them.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanks Dave
Syed Shahid Hussain
|
|
|
|
|
Hi
Please help !!!!!
I am using Crystal Reports 11.5 R2 with Visual Studio 2005 on XP with SP2 for development. The program runs fine on my development machine and the reports open up fine. When I run the program on the a Windows 2000 Server I ge the following error, even though I gave ASPNET, IUSR,IWAM and Everyone full access to the directory that has the reports, the reports themselves and the temp direcories.
Access is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Access is denied.
Source Error:
Line 422:
Line 423:
Line 424: oRpt.Load("d:\mcsistest\" & dbrptName)
Line 425:
Line 426: 'oRpt.Load("C:\Documents and Settings\JP\My Documents\Visual Studio 2005\StudentInfo\" & dbrptName)
Source File: D:\mcsistest\colMain.aspx.vb Line: 424
Stack Trace:
[COMException (0x80004005): Access is denied.
]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +87
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +279
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +341
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +964
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +73
Studentinfo_colMain.CreateReport() in D:\mcsistest\colMain.aspx.vb:424
Studentinfo_colMain.studCINF() in D:\mcsistest\colMain.aspx.vb:307
Studentinfo_colMain.start() in D:\mcsistest\colMain.aspx.vb:193
Studentinfo_colMain.btnSubmit2_Click(Object sender, EventArgs e) in D:\mcsistest\colMain.aspx.vb:176
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Thank you.
|
|
|
|
|
YOu'd be better off asking this in the ASP.NET forum. I think it has something to do with using Server.MapPath to generat the path to the report you want, but I don't know for sure.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
How to acces DB2 from .Net? what name space we have to use.
Give me sample code for connection.
Thanks........
|
|
|
|
|
You'd be using the System.Data.OleDb if you're not using one supplied by IBM. You can get connection string examples from ConnectionStrings.com[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
How to place a comobox in DataGrid In VB.Net
Thanks........
|
|
|
|
|
You're question is a bit vague. What do you want this combobox to do? Is this box going to be bound to a datasource so you can pick values from a table? Are you supplying your own values, seperate from a database?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Good day everyone,
I'm doing a project with database MS Access in VB.Net 2005.
I'm struggling with the connection and coding with database.
Does anyone know where I can get a tutorial of how to connect to database and manipulate with data?
Thanks for your help in advance.
Eric
eric
|
|
|
|
|
Eric
You really want some articles on getting started with ADO.Net I just did a quick google on "getting started with ado.net vb" and came back with a load of what looked like suitable articles.
If you're having problems with the connection string check out this site:
http://www.connectionstrings.com/[^]
Hope this helps
Tom
|
|
|
|
|
Thank you very much.
Because I'm trying to look for the code of doing with database but I can't see any that I need.
Thannks for your time anyway
eric
|
|
|
|
|
i m transferring data from sqlserver to sqlserver using webservices,when run the application from local machine data is getting tranferred correctly,but when i create exe and run the application the date showing one day lesser like if the date id 21/01/2006 its getting transferred as 20/01/2006
pls help me in solving
kavitha
|
|
|
|
|
Without seeing any of the code that's doing this, it's impossible to tell you what you did wrong. My first guess would be timezone problems, but since we don't know anything about your code or the databases involved, there's really nothing we can tell you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi Members,
I am working on a Desktop/Windows Application. Can anybody help me that how can I stop displaying error messages on webBrowser control when an error occured in displaying page.
Thanks in advance
Regards
|
|
|
|
|
You can't stop them from popping up. At least not without modifying the options for Internet Explorer. The WebBrowser control is actualy an IE component that uses all the same settings as it's Blue E counterpart.
Changing system settings is NOT recommended to get the functionality you want.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi .
I want to know how can get clicked link in IE or other browser with c#.net .(I want arived url of a link with click on it)
computer
|
|
|
|
|
Don't cross post. If your asking in a certain language, keep your post in that languages forum.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have a simple webpage with a user Login as well as a Page login. The page was written in Visual Studio 2003 in a VB environment. I would like to know if there is a way to assign what "button" is pressed when the "enter key" is hit by the user.
|
|
|
|
|
hi
try to write a javascript code that foucs the login button
Tamimi - Code
|
|
|
|
|
Thank you for your prompt reply
But could you mayby give me an idea of what something like thsi would look like?
response.write(?????
I have no idea where to start?
|
|
|
|