|
I am doing a software for door entry system, now i have a problem with one function which is when there is no one touch the program the screensaver will show up of course i can not set screensaver through Windows i have to set it in the programm, so how to do that??
I am Entry level person
-- modified at 3:56 Friday 7th October, 2005
|
|
|
|
|
There is a Win32 API function in C language which u can use to start and stop the screensaver programmatically. Use that function to stop the screensaver when your program starts and restore the screensaver before your program ends.
Just now I dont remember the name of the function. I'll have to look for it.
|
|
|
|
|
Actually i am using vb.net, do yo know what is the name of that win32 API function? Can you reply me asap please ! i will find by myself as well! Thank you very much!
I am Entry level person
|
|
|
|
|
Hi,
I have read your question. I have a question to you when is this door entry system, how this work,structure and how we control this kind of project in C#.Net
Please ..
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
I am looking for a little help with a small file copy program that I wrote. Here is a sample of the code to reference.
File.Copy(sPath & "IV\ivparm.dat", sGPS & "IV\ivparm.dat", True)
pbFileCopy.PerformStep()
I am looking for a way to return the success/failure of the copy command to a dialog window or log window. There are multiple files, and I want to be able to scroll through and see that they all copied ok. TIA!!!!
|
|
|
|
|
Why not just copy them yourself with FileStream?
|
|
|
|
|
dim file as string
for each file in Directory.GetFiles("C:\")
dim FileCopied as boolean = false
try
File.Copy(file, newpath, true)
FileCopied = true
catch
Debug.WriteLine("Failed to copy")
textbox1.text += file & " failed to copy" & vbCrLf
end try
if FileCopied = true then texbox1.text += file & " was copied" & vbCrLf
next
|
|
|
|
|
Hi,
I am coding in VB.net in Visual Studio 2005, and am looking for a way to store a REG_BINARY value from the registry to a variable, which will then be compared to perhaps an array or hard-coded list of possible values to change a picture, with regards to the variables value.
Any help is appreciated.
Thanks, Andrew Robinson.
|
|
|
|
|
You're looking for the RegistryKey.GetValue Method[^]. It'll return a REG_BINARY value into an array of bytes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Do you have an example code for return this value to an array list?
|
|
|
|
|
This returns to an array, not an ArrayList.
Dim regKey As RegistryKey = Registry.LocalMachine.OpenSubKey("SYSTEM\Setup", False)
Dim values As Byte() = regKey.GetValue("SystemPrefix")
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Does anybody know of a way to return just the file name (without the full path) using the OpenFileDialog?
Example:
OpenFileDialog.FileName returns ‘c:\dir1\textfile.txt’
But I want
OpenFIleDialog.?? To return ‘textfile.txt’
Thanks
Brad
|
|
|
|
|
Run the full path trough the Path.GetFileName Method[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
And if u want any more info just...
dim fileInfo as new io.FileInfo(Path)
FileInfo contains alot of extra info.
|
|
|
|
|
And you're telling me this why? Tell the OP, he'll get an email that say you responded to HIM, not me.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
What the hell r u talking about Dave?
|
|
|
|
|
When you reply to a post, CodeProject sends an email to the person who you replied to. Since you replied to me, only I got the message that you posted a reply to one of my posts. I didn't ask a question or wanted any more information, but the person who Originally Posted the question could have used the information y you posted in a reply to me. Reply to the OP and he/she will get the message that you replied to him/her.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
ahh true
I see I clicked the wrong one there
|
|
|
|
|
Thanks Dave/Andrew. That worked perfect.
|
|
|
|
|
Curious as to if anybody can point me in the right direction.
I'm wanting to write a application in vb .net that addresses shared folders on windows 2000 server/ and xp machines. I'm wanting to gather currently used files along with the user name of the person that is using this file. it's similar to the server tools "Server Manager" app, but i'm wanting to do other stuff with this information. If anybody could direct me that would be great, maybe Active Directory, WMI, or filesystem functions.
Thanks
Gerry
-- modified at 12:04 Thursday 6th October, 2005
|
|
|
|
|
Search the articles for "Task Manager Extension". There's one project that adds similar functionality to the Task Manager. The problem is that this project is written in C++. So, you'll have to analyze the code and write equivilent code in VB.NET.
There no NO VB/VB.NET examples of doing this anywhere on the 'Net that I have ever found.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm wanting to start programming in c++ anyhow, so should be a good start for me to have an actual project. I have googled around the world a couple times and found nothing also.
Thanks for the help
Gerry
|
|
|
|
|
I have multiple *.config files that I need to write to but (somehow) they have all been set to ‘read only’. Can anybody tell me how, in my code, I can uncheck the read only option before attempting to write to the file?
Thanks
Brad
|
|
|
|
|
Brad Fackrell wrote:
uncheck the read only option before attempting to write to the file?
System.IO.File.SetAttributes("c:\test.txt", IO.FileAttributes.Normal)
|
|
|
|
|
You're looking for the FileInfo[^] class and it's GetAttributes and Set Attributes methods.
It's nice that you put this functionality into the app, but there are also cases when the suer WANTS the config files read only. It would be better if you added an option to turn this functionality on/off.
It would also be better if you figured out why your development copy is ReadOnly in the first place.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|