|
2nd followup it's the 1st instance of IE that's the problem regardless of how it's started. starting IE before my app and I never see this.
|
|
|
|
|
I'm developing a Windows App in C#. I've been researching ways to pull my tooltip text and HelpString text (from a helpProvider control) from an external file (such as .html) instead of hardcoding it into my controls. So far I haven't found any documentation. Has anyone had experience doing this, and if so, can you enlighten me?
Jennifer Budenz
|
|
|
|
|
|
I'm familiar with HelpProvider.SetHelpString, but that requires you to type the help text that you want to be displayed directly into your code:
this.helpProvider1.SetShowHelp(this.zipTextBox, true);<br />
this.helpProvider1.SetHelpString(this.zipTextBox, "Enter the zip code here.");
What I want to do is create a file (not sure what kind of file - .txt, .html, .chm?) that contains all of my help text associated with each control. The code in my windows app project would then pull the help text from this external file, instead of having to type the help text directly into my code. I want to do this so that I have one file with all of the help text, so I don't have to go through each form in my project in order to update the text.
Any suggestions?
Thanks!
-- modified at 10:59 Tuesday 27th June, 2006
|
|
|
|
|
jbudenz wrote: I'm familiar with HelpProvider.SetHelpString, but that requires you to type the help text that you want to be displayed directly into your code:
No it does not.
jbudenz wrote: Any suggestions?
A simple Proof of Concept would be to use a XML file for the data. System.Data.DataSet to load and process the file into the HelpProvider using SetHelpString(). Later you could optimize it using a different Xml reading mechanism that is faster than DataSet.
|
|
|
|
|
Hi,
So I'm using WMI in .net with C# to start up a set of processes on a large number of remote machines. All is working well in my code to start up the processes and they are showing up fine both in WMI queries as well as in the taskmanagers of the target machines. However, as per the default for process invocation in WMI I cannot see the apps' windows on the desktop of the target machines. I've been searching around all morning to help find an answer to allow the windows to show up on the desktop so i can watch their progress, but the best I could find was some VB/WSH examples like the following...
Const SW_NORMAL = 1<br />
strComputer = "."<br />
strCommand = "Notepad.exe" <br />
Set objWMIService = GetObject("winmgmts:" _<br />
& "{impersonationLevel=impersonate}!\\" _<br />
& strComputer & "\root\cimv2")<br />
<br />
' Configure the Notepad process to show a window<br />
Set objStartup = objWMIService.Get("Win32_ProcessStartup")<br />
Set objConfig = objStartup.SpawnInstance_<br />
objConfig.ShowWindow = SW_NORMAL<br />
<br />
' Create Notepad process<br />
Set objProcess = objWMIService.Get("Win32_Process")<br />
intReturn = objProcess.Create _<br />
(strCommand, Null, objConfig, intProcessID)<br />
If intReturn <> 0 Then<br />
Wscript.Echo "Process could not be created." & _<br />
vbNewLine & "Command line: " & strCommand & _<br />
vbNewLine & "Return value: " & intReturn<br />
Else<br />
Wscript.Echo "Process created." & _<br />
vbNewLine & "Command line: " & strCommand & _<br />
vbNewLine & "Process ID: " & intProcessID<br />
End If
Anyone know how to allow desktop interaction for the processes?
|
|
|
|
|
Hi. I am developing a DRM software, and I need to hide my application from the Windows Task Manager application list. How can I do that? I think it involves "NtQuerySystemInformation" but I am not sure. I would appreciate any help. Thanks!
SUMMARY
* Need to hide application from Windows Proccess List
* Probably uses some rare windows function
Thanks!
code -> MakeBest(forever);
|
|
|
|
|
Hiding the process from Task Manager sounds like Spyware to me.
|
|
|
|
|
|
Be nice. Tons of the friendly software on your computer uses undetectable programs. If you can't help, why post?
code -> MakeBest(forever);
|
|
|
|
|
Not much that I can think of that doesn't have "Microsoft Corporation" in the company field...
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
Microsoft's not all that bad... I use Microsoft Office (esp Outlook), WIndows, Windows MP, MSN Messenger, Encarta, Visual Studio, and Wireless Laser Desktop 6000. I really like some of their products.
code -> MakeBest(forever);
|
|
|
|
|
You missed my point. What I meant was that Microsoft has the vast majority of credible hidden applications running on Windows that I'm aware of. I'm not a Microsoft hater.
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
I don't know how the rest of this community feels about DRM software but I personally hate it. It seems unethical and the companies that promote such software should be sued and fined..
----
www.digitalGetto.com
|
|
|
|
|
Yeah, the only legitimate use for something like that would be for use by system admin teams monitoring internal machines. For any other use, you should burn in hell. But, beyond the ethical question, I have no idea. Have a nice day and thanks for calling.
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
Basically, you can't hide from the Task Manager.
As for DRM, I'm with everyone else. It's an idea that looks great on paper in the Corporate Boardroom, but in all usability and actual security, it sucks. Take a look at Sony's attempt at DRM and tell me that it won't come back to smack you in the face...
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 14:58 Monday 26th June, 2006
|
|
|
|
|
Sounds suspecious; we can't help
Best,
Jun
|
|
|
|
|
|
Hello all.
With all respect to the fine programmers who replied to this post -who are by far much better programmers than me-, with all respect to them I don't think we have the right to judge anyones intentions when answering questions on the forum, do you?
Programs like security, administrative, or networks software might need such a feature. I don't know what is a "DRM software" -I told you I'm a lousy programmer -, yet I belive CodeLeon has the right to know the technique. Using it rightfully is his problem, not ours.
Anyway, that's my opinion -Again I pay respect to all who disagree-. So here is a link that might help:
http://www.codeproject.com/system/preventclose.asp[^]
Finally I believe that if we didn't learn how virii work, we wouldn't be able to stop them...
Right?
|
|
|
|
|
Thanks for support, man. 'Appreciate.
code -> MakeBest(forever);
|
|
|
|
|
True to some extent, until you've had to jump through the hoops required to recover from something like SpySherif... Then all your bile and distain will fly while foaming at the mouth at any mere mention of "how do I hijack poor unsuspecting users machine?" Nothing personal CodeLeon, you may have noblest of intensions, I don't dare guess your motivation. But luckily for me, I don't know the answer to withold from you and can skurt my moral delima, so take my rantings with a grain of salt.
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
If your curious, my intentions were to stop the copying of files from one folder to another like Microsoft Documents Rights thing. I thought this would be useful.
code -> MakeBest(forever);
|
|
|
|
|
CodeLeon wrote: my intentions were to stop the copying of files from one folder to another like Microsoft Documents Rights thing.
Instead of hiding the process from task manager (which is a "bad thing" from the normal user perspective), this kind of application should run as a system service and the user account set to.. well.. user, instead of Admin because regular users can't disable services.
Personally I'd run away from hiding processes, it just opens you up to too many possible legal issues.
Mike Poz
|
|
|
|
|
Thanx! Good idea! How do i make my application a system service and do like you said? does cp have an article on this?
code -> MakeBest(forever);
|
|
|
|
|
Plenty, in fact Studio has a Windows Service project template. I don't have one off hand, but you should have no trouble searching for some.
Try code model generation tools at BoneSoft.com.
|
|
|
|