|
-Does Form.BeginInvoke needs to end with Form.EndInvoke?
-Is it safe to access property or attribute (Text, Color) of Control from thread other than the one that created it? I know that you can't modify it but can you just read it (don't care about dirty read)?
|
|
|
|
|
mikker_123 wrote: Does Form.BeginInvoke needs to end with Form.EndInvoke?
No, because it's the equivalent of Win32 PostMessage() that occurs on the same thread.
mikker_123 wrote: Is it safe to access property or attribute (Text, Color) of Control from thread other than the one that created it?
Not unless you can guarantee that the creator thread will never write to it. Even then, this may cause an exception in code developed using VS2005. (You can disable this exception checking).
/ravi
|
|
|
|
|
|
How to set a value in the "(Default)" registry key.
This code:
key1.SetValue("(Default)","object value");
creates a new key with the same name.
Help me.
Vasildb
|
|
|
|
|
From MSDN:
A registry key can contain one value that is not associated with any name. When this unnamed value is displayed in the registry editor, the string "(Default)" appears instead of a name. To set this unnamed value, specify either a null reference (Nothing in Visual Basic) or the empty string ("") for valueName.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
I have a problem in shutting windows down when my thread is running. I am able to shut windows down after I stopped my thread.
I am using VS 2003 C#, and this is happening in Windows application.
What could be the problem?
Could anyone hlep get rid of this?
Thanks in advance.
Muthu.
|
|
|
|
|
Sure! As long as your thread is running, windows will keep waiting for it to end, or it will give you the choice to forcefully "end task".
Another more graceful way is to set MyThread.IsBackground = true . This way it will automatically end when all other foreground threads of your program end.
Regards
|
|
|
|
|
Thanks.
MyThread is a Background thread. i.e. MyThread.IsBackground = true;
But still it prevents me from shutting down windows.
Muthu.
|
|
|
|
|
That's really wiered!! Are you sure there are no other foreground threads active beside that one? Also does your thread keep running after your closed your program normally?
Regards
|
|
|
|
|
I have a child form that acts as a login prompt. When the login button is press it should open up another child form. which process the login information. For some reason i cannot call a child window from a child. Below is what i have (mainFrm being the parent form and functFrm being the other form i'm trying to open).
private void butLogin_Click(object sender, EventArgs e){
mf = new mainFrm();
Functions functFrm = new Functions(user, pass, host);
functFrm.MdiParent = mf;
functFrm.Show();
}
Could someone point me in the right direction. Thanks
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Try replacing
functFrm.MdiParent = mf;
with
functFrm.MdiParent = Me.MdiParent;
|
|
|
|
|
that didn't work either. it wont even compile. i also tried
functFrm.MdiParent = this.MdiParent
also i tried passing the form to the mainFrm class and creating it as a child
private void butLogin_Click(object sender, EventArgs e){
functFrm = new Functions();
mf = new mainFrm();
mf.ShowMdiChild(functFrm);
this.Dispose();
}
public void ShowMdiChild(Form childForm)
{
childForm.MdiParent = this;
childForm.Show();
}
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
i figured it out thanks,
private void butLogin_Click(object sender, EventArgs e){
functFrm = new Functions(txtUserName.Text, txtPassword.Text, p_host);
functFrm.MdiParent = this.MdiParent;
functFrm.Show();
}
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
How should I specify the string to check if a file exists on a different pc? I have tried this string: "machineName\\C:\\Program Files\\MyFolder\\myFile.txt" and I get a NotSupportedException saying that the given path's format is not supported. I passed the above string into a new FileInfo instance. Any help would be appreciated.
|
|
|
|
|
hi,
you dont need the colon ':' sign after "c" and your c drive must have been shard to use above path.
try again after these checks plz.
|
|
|
|
|
Assuming that you have the correct privileges on the other machine, you could always use \\machinename\c$\
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have been having this problem for sometime now and decided to finally ask about it.
I keep getting a Compilation Error saying that a certain dll cannot be found. The problem is it's not looking in my root directory it's looking inside c:\windows\Microsoft.Net\1.1.***\Temporary Internet Files\"client name"
It is not only keeping me from testing it, it is keeping the client from viewing it as well. What needs to be done to stop this from happening?
It seems like IIS might be the problem. Can anyone shed some light on this please?
Take a look at the screen shot to see what I mean.
ScreenShot
Thanks
Steve Welborn
Software Engineer
BitWise Solutions
|
|
|
|
|
Have you tried putting the DLL in the bin\ directory of the web application?
|
|
|
|
|
yes that is where they all are. For some reason its not looking for that dll there, its going to the temp folder. I am not sure if ASP.Net copies all files to temp before viewing or what. but those files are in my bin folder.
Steve Welborn
Software Engineer
BitWise Solutions
|
|
|
|
|
From where we can get or download Microsoft office 2003 or Viusal Studio 2005 toolbar images, like undo, redo etc.
Thanks
|
|
|
|
|
Make googling[^]
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
|
|
|
|
|
ALT-Print Scrn and copy into paint.
It's under copy right remember.
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
See C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary
/ravi
|
|
|
|
|
Your can try this location:
http://www.glyfx.com/free.html[^]
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi everyone!
Please tell me how to associate include cut, copy, paste in application. Specially alongwith treeView nodes. Also how undo, redo operations can be added.
Very thankful for any hint or guidance.
h@s@n
|
|
|
|