|
Thanks for your reply Martin but I forgot to mention that I have already used that code. At first it works just fine but after a shutdown or restart the wallpaper disappears from desktop but if I go to Properties/Desktop it appears to be there. This is some voodoo thing.
|
|
|
|
|
|
Thanks Giorgi. It works. But the thing that intrigues me is why this code works and the other doesn't. The parts that deal with the actual operation are identical. Probably I am missing something in the part that handles the registry.
|
|
|
|
|
Hi,
I want to make one window unselectable while I capture some info from another (basically a popup that will be displayed over the first). How do I stop the user from changing the window's focus? I suppose I could hide the one window, but that's not really what I'm looking to do.
Thanks
Ruan
|
|
|
|
|
Found the answer:
this.CanFocus = false;
|
|
|
|
|
Or Show the "Popup" Form as a modal dialog.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Do you mind elaborating? I'm new to winforms.
|
|
|
|
|
Nevermind, problem solved.
Using showDialog(parent) instead of just show causes the desired effect
|
|
|
|
|
Yes exactly.
Your were to fast for me - it was just lunch time here
Happy Programming
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Unfortunately, that's a read-only property
|
|
|
|
|
Hai Everybody,
Have a nice day!!!
Problem Definition: I have to synchronize my system timing with NIST time and i have to give the synchronized time to other service.
Solution I found : For this i am getting the status of the Windows Time service and if it is in stop mode them i tried to start the service and i waited for the status to change to "Running". It is working fine.
Problem faced : When i started the service it takes some time in my system it took approx 15 seconds so after 15 seconds only my system time will be synchronized and then only i can assign this time to the next service.
Suggestion I want: How can i detect whether the time is synchronized and get notification.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
I am a novice user and would like to know if is it poosible to set the "Address" field of the Internet Explorer through C#(only C#, no other language). I want to open Internet Explorer on the press of a button, such that the address field is set to a url that I want ie which is sent through the application.
|
|
|
|
|
Hi, u can use this code to launch the internet explorer at a click of a button. Make sure u use namespace System.Diagnostics
private void button3_Click(object sender, EventArgs e)
{
Process proc=new Process();
proc.StartInfo.FileName = "iexplore.exe";
proc.Start();
}
Cheers
|
|
|
|
|
Better than that you can actually do the following
<br />
Process pr = new Process();<br />
pr.StartInfo = new ProcessStartInfo("http://www.google.com");<br />
pr.Start();<br />
If IE is set up to handle HTTP items then it will actually open and automatically direct you to google....
|
|
|
|
|
you can try to using SHDocVw.InternetExplorer.
EX:
object obj = null;
SHDocVw.InternetExplorer ie = new SHDocVw.InternetExplorer();
ie.Visible = true;
ie.Navigate("http://pzs8417.spaces.live.com/default.aspx", ref obj, ref obj, ref obj, ref obj);
|
|
|
|
|
I think the Question was "to set the "Address" field of the Internet Explorer" and it is not "how to start IE"
so here is my answer,
You can call the static method of process class
eg:
Process.Start("iexplore","www.msn.com")
the second parameter is actually passed a a command line argument to the executing file
you can also use "StartInfo.Arguments" property but for that you need to create an object of process . so the first one is the easiest way in which we dont have to create any object
and dont forget to add a reference to "System.Diagnostics" namespace
hope this helps
|
|
|
|
|
thanks people..appreciate ur help..
|
|
|
|
|
thanks people...really appreciate ur help.
|
|
|
|
|
Hello everybody !
My question is quite stupid in Crystal Report but I need your help
Carton | Goods name | Cube of Carton
T1 | A | 0.15 //not suppressed
T1 | B | 0.15 //suppressed
T1 | C | 0.15 //suppressed
T1 | D | 0.15 //suppressed
T2 | E | 0.74 //not suppressed
T2 | F | 0.74 //suppressed
T3 | G | 0.86 //not suppressed
---Total (???)1.75 //not suppress
I need to make a total of Cube of Carton (???). I only calculate the unsuppressed to ???. ??? will be exactly 1.75. When I make Running Total Fields, the ??? is 2.94 instead of 1.75 I need. Help me the exact formula
Thanks in advance !
It seem to be a solution or an answer.
|
|
|
|
|
I test it. I write a cycle that add a image into imageList 1000 times.
But report "virtual memory shortage".
|
|
|
|
|
Hello,
jason_mf wrote: I test it. I write a cycle that add a image into imageList 1000 times.
But report "virtual memory shortage".
So it looks like it's only a question of memory, don't you think!
All the best,
Martin
|
|
|
|
|
How big are these images?
You need a lot of memory to store 1000 images. Either write them to disk instead of holding them in memory, or shove in more RAM.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
is there any way of setting the priority of a BackgroundWorker(b/w) object?
In all other respects the b/w class matches my needs perfectly, I just like to run it a lower than normal priority.
|
|
|
|
|
There isn't a property in the BackgroundWorker class to do it, but inside the worker function the priority can be set directly:
System.Threading.Thread.CurrentThread.Priority = ThreadPriority.BelowNormal;
|
|
|
|
|
the answer's always .... obvious, thanks muchly
rgds phild
|
|
|
|