|
i have executed a thread and i want to check if it is alive then make it dead.
how to do it?
if there are more then one thread then how to do it?
r00d0034@yahoo.com
|
|
|
|
|
What about the ThreadState propery?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
i want to kill a group of threads after some condition?
how to do that?
r00d0034@yahoo.com
|
|
|
|
|
Not really sure where to ask this one, so I'll clutter the boards up here...
Is there a way to tell a TabPage on the TabbedGroup control to close or hide? I want to be able to show/hide or create/destroy the TabPages according to user selections on a menu (ie, uncheck a menu item and the corresponding window goes away). Show/hide would be ideal, but the windows don't seem to be responding to Hide() calls once created. Has anyone run into this issue?
I get all the functionality I need out of this set of controls (which are top notch, BTW)...just this one final hurdle to overcome!
m_mond
|
|
|
|
|
I would suggest you ask this in the articles own forum as the author will receive an email notification and can possibly help you quicker
"I dont have a life, I have a program." Also, I won't support any software without the LeppieRules variable.
|
|
|
|
|
I'm ready to throw my PC through the wall. I have two panel controls in a Windows Forms application that I'm writing. Both are set to full docking, and placed on the right side of a splitter bar, so the share the same space, but only 1 is visible at a time. Docking is set to full for both. My problem is that the Visible property is NOT setting for one of the panels. As I step through my code, calling Panel.Visible = True does nothing; looking at the property in the debugger shows that it is STILL false, and no exception is thrown.
Any ideas?
Thanks in advance.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
Wow. I've never seen that problem before. Can you post some code?
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Well, it's in theory anyways, very simple:
private void trvHierarchy_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
{
if (((string)e.Node.Tag).IndexOf("Folder:") >= 0)
{
if (pnlHoursList.Visible = true)
{
CreateSummary();
pnlHoursList.Visible = false;
pnlUsageSummary.Visible = true;
}
else
{
pnlHoursList.Visible = true;
pnlUsageSummary.Visible = false;
}
}
}
CreateSummary just fills a listview on pnlUsageSummary. I can show or hide pnlUsageSummary, but I can't seem to set pnlHoursList's visibilty.
Jamie Nordmeyer
Portland, Oregon, USA
|
|
|
|
|
1) You can simplify your code by doing this:
if ((((string)e.Node.Tag).IndexOf("Folder:") >= 0) && (pnlHoursList.Visible == true))
{
CreateSummary();
pnlHoursList.Visible = false;
pnlUsageSummary.Visible = true;
}
else
{
pnlHoursList.Visible = true;
pnlUsageSummary.Visible = false;
}
And then, what you should probably do is set the visibility of pnlUsageSummary to false before you set the other to true...
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
I have a COM+ object,I want to use it in a client.When I use it I got an unhandled error that my component should be in Current Contex but it is not.Should I set anything on my computer when using COM+?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
The first question is more to the IDE than anything else. I noticed that you can add all types of files into a project, including XML and XSLT files. Is there any advantage to this and how do I programmatically access these files. For example, if I have three XSLT files in my project, how do I get at these to execute transforms against the XML file passed to me?
Second XML question: Once I have created an XMLDocument file, I want to generate a schema for the file automatically. I cannot find a method or docs on doing this. Any help in this direction would be great.
_____________________________________________
I have a tendancy to where my mind on my sleeve I have a habit of losing my shirt...
|
|
|
|
|
theRealCondor wrote:
Is there any advantage to this
If you paste text into a file it knows is XML, it will HTML encode it. This is sometimes good, sometimes a pain.
theRealCondor wrote:
For example, if I have three XSLT files in my project, how do I get at these to execute transforms against the XML file passed to me?
I dunno how to load them from resources, I presume you still need to load from disk, but having them in the project makes them easy to get to.
theRealCondor wrote:
I want to generate a schema for the file automatically. I cannot find a method or docs on doing this. Any help in this direction would be great.
I wrote an XML wrapper in C# for WDJ magazine ( it's not been printed yet ), and I looked into this. I thought you need to do it yourself, but I'm learning ADO at the moment, and a dataset can create a schema for you in XSD format, and I believe you can fill a DataSet from XML, so that might be an answer. Any auto generated schema would of necessity be imperfect, unless all your nodes always appear, and always appear the same number of times.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian Graus wrote:
a dataset can create a schema for you in XSD format
CG, I thought this new MSDN magazine article[^] might be well worth a read to you.
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Yum - thanks. I have the issue, but had not noticed this, which means without your assistance, I never would have. I'll dig it up tonight.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I know that it is possible to generate schemas from XML -- after all XMLSpy does this programmatically. So it can be done. The question is: how is it done within the Framework?
Anyway, you've helped me some. Thanks.
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
I got a response over on GotDotNet...
there is an XML --> XSD Inference tool available there.
The location of the tool is http://www.gotdotnet.com/team/xmltools/[^]
It generates a very verbose XSD file. Which may be of use for most people. We just happen to need a more compressed schema file. So I guess we are stuck with manually creating schemas from XMLSpy for now!
Thanks for your help and maybe this link can be of help to you!!!
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
Thanks - I'll have a look. Does it come with source ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
It is Microsoft code. It's free, but it is also without source.
_____________________________________________
The world is a dangerous place. Not because of those that do evil, but because of those who look on and do nothing.
|
|
|
|
|
may i know how can i programmatically open a HTML file using web broswer?
thank you.
|
|
|
|
|
System.Diagnostics.Process.Start()
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Hey yccheok,
How about System.Diagnostics.Process.Start(filename)?
That should trigger your default browser to open the filename which is an html document right?
Deepak Kumar Vasudevan
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
I want to login to Active directory with DirectoryEntry,I use this code but I always get unknown username or password:
de.Path = "LDAP://mazy/rootDSE ,DC=mfa";
de.Username = @"Mazdak";
de.Password = "mypass";
"mazy" is my domaincontroller and mfa is my domain.I change the Path in many ways but I get the same results.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
May i know how can i determine type of OS that user used is either windows2000 or windows98?
thank you.
regards
yccheok
|
|
|
|
|
yccheok wrote:
May i know how can i determine type of OS that user used is either windows2000 or windows98?
Sure, try these:
Environment.OSVersion.Platform.ToString();
Environment.OSVersion.Version.ToString();
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
Hi,
The following should help you:
System.Environment.OSVersion.Platform,
System.Environment.OSVersion.Version
If you want the logged on user, then
There are bunch of other methods and properties in System.Environment that should elicit your interest in the above regard.
Deepak Kumar Vasudevan
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|