|
It's the same setting. There is special location to specify a custom screen saver.
HKEY_CURRENT_USER\Control Panel\Desktop
Look for the SCRNSAVE.EXE value. This specifies the filepath of the screen saver for the current user.
The location for the screen saver when noone is logged in is under
HKEY_USERS\.DEFAULT\Control Panel\Desktop
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
Does anybody have any ideas why, if I add a field to a table in MS Access, and then run the data adapter configuration wizard on the dataset already in place in VB.NET (to 'capture' the new field), it refuses to generate an UPDATE or a DELETE statement, but if I remove the field in Access, and then re-run the wizard in Visual Studio, it goes through ok.
It doesn't seem to matter what I call the field, or what data type I am using, it always gives the same error ('There were errors configuring the data adapter') only on the UPDATE and DELETE statements (SELECT, Mapping, and INSERT are fine).
For info, I've got a parent and child table (tblSupplierProductsParent and tblSupplierProductsChild). The relationship is a one-to-many link between fields called 'ProductIDNumber' and 'ProductID' in the parent and child tables respectively. I had initially assumed that there was a problem with the relationship, but its fine if I don't add an extra field to the parent table.
I've temporarily deleted the relationship in Access and tried it again on a new form in VB.NET - with the extra field gives the problem, but without the extra field its fine.
I've never come across anything like this before, and I'm completely confused why it should behave so weird! Help!!!
|
|
|
|
|
I've had a similiar problem in the past. I'm not sure of the cause but what worked for me was refreshing the connection in server explorer & then reconfiguring the data adapter.
I think it doesn't recognize the field in the server explorer copy of the table until you refresh the connection and the extra field shows up as part of the table. Hence it can't automatically generate update & delete statements as the table structure has been changed & is unknown.
Then again, I'm probably wrong.
|
|
|
|
|
Thanks - this seems to have solved it. Very odd.
|
|
|
|
|
Hey,
I'm trying to write a program that views pictures and using left/right buttons, allows you to view the next/previous image in a folder of many other images. Well, I'm also using a hidden File List Box to browse through the pictures, but, without clicking on the next file in the List Box, how do I select the next file?
I hope this isn't too confusing! Please let me know.
|
|
|
|
|
If the FileListBox is hidden, why are you even using it? You'd have an easier time just getting the list of files on your own and managing the collection. Then there's nothing to "click on", (in a hidden control, why would you even want to?).
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ok, how do I go about listing and managing the files?
|
|
|
|
|
All you need is an array to hold the filepaths in returned by Directory.GetFiles()[^]. After that, you can enumerate through that array and process all the files.
Dim filelist As String()
filelist = Directory.GetFiles(folderPath)
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
|
Documentation[^] on the HMACMD5 class, complete with an example right along the lines of what you appear to be looking for.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I want to khnow the Key codes of both "Enter" buttens one is at alphabetside and other is numpad side. Also I didn't find the key code/name of properties key and all num pad keys i.e /,*,-,+,.,enter is remaining. Please tell me Key.NAMES or Key codes of that.
Thanks
Syed Shahid Hussain
|
|
|
|
|
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........
|
|
|
|