|
If you have application (with main form formMain ) and you want to set formTool as tool window (it will be always above main form) use this:
formMain.AddOwnedForm(formTool);
i'm only pointer to myself
|
|
|
|
|
Just set the form property (TopMostWindow i think)
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
It seems that here isn't any diferent, am I right ?
Same case is None - HighSpeed.
Wiizi
|
|
|
|
|
I don't know. There might be. AntiAliasing, in case you didn't know, involves blurring the edges just right to avoid the graininess caused by very small type on a low-res pixel screen. MS's definition of high-quality may or may not involve this. BTW, did you try MSDN or the Platform SDK?
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
HighQuality and AntiAlias are the same constants -- no difference
likewise, for HighSpeed
They are alternative names.
Thanks,
Wes
|
|
|
|
|
hi
i would like to get code to listen to my incoming packet on port 80 (HTTP).
is there a way to select which packet will apear on the web browser and which will not?
thanks in advance
Aviyam
|
|
|
|
|
Hi,
I have below string sequence:
'John' , 'Joe' , 'Al''ex' , 'Philip' , 'Ja,coup' , 'Dan'
and I want to define quote separated names same as below:
'John'
'Joe'
'Al''ex'
'Philip'
'Ja,coup'
'Dan'
Can I do it using Match and Regular Expression?
Mehdi
|
|
|
|
|
Let me to made some changes in problem. I want to match quoted strings, using \' as an escape to place quotes in the string.
Valid strings:
'Alex'
'John\' Burg'
'\''
Invalid strings:
'test\'
'not'Valid'
Is it possible to define a Regular Expression to this situation?
Mehdi
|
|
|
|
|
I have searched UDDI and yahoo, but with no luck...
What I am looking for is a web service that will supply information on current baseball games (when someone hits, scores, etc.) and one that can report weather by zip code. Does anybody know of one?
I have a feeling that I missed something obvious. That would'nt be the first time that happened
|
|
|
|
|
|
Thanks. That is not exactly what I was looking for - but the search engine helped a lot.
Ideally, I want a web service that can retreive the current status of a game in progress - ie. who is batting, current score, who is on base, etc. I searched for it, but with no luck.
PS. I found a weather web service through the search engine. It seems like it will work fine.
|
|
|
|
|
Mike_V wrote:
PS. I found a weather web service through the search engine. It seems like it will work fine
The one I'm using is weather.interceptvector.com[^]. It has xml weather feeds for cities all over the world, and the cities/states/countries are listed in XML, too.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Ok, so I have this program... and the person clicks on the button, "buttonExplorer" then that will launch the program, "explorer.exe" located at "C:\windows\".
private void buttonExplorer_Click(object sender, System.EventArgs e)
{
}
How do I do this?
/\ |_ E X E GG
|
|
|
|
|
Well actually I figured it out...
private void buttonExplorer_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("C:/windows/explorer.exe");
}
Is this the "correct" way? Or is there a better, more efficent way to do it??
/\ |_ E X E GG
|
|
|
|
|
eggie5 wrote:
Is this the "correct" way? Or is there a better, more efficent way to do it??
Pretty much. You can make a reference to the process from the return value though, so u can "monitor" the process.
Hey leppie! Your "proof" seems brilliant and absurd at the same time. - Vikram Punathambekar 28 Apr '03
|
|
|
|
|
I would just put "explorer.exe" though as not everyone will install windows in c:\windows (I used to have a habit of putting it in a folder called "windoze", ahh the old days!!! )
Shaun
|
|
|
|
|
I am using XMLTextWriter like this to write into the XML file.
textWriter.WriteStartDocument();<br />
<br />
textWriter.WriteStartElement("", "MAIN TAG", "");<br />
textWriter.WriteStartElement("", "TAG", "");<br />
textWriter.WriteString(strTagValue);<br />
textWriter.WriteEndElement();<br />
textWriter.WriteEndElement();<br />
textWriter.Flush();
ex:
STUFF
Ignore this !, this is to avoid the format.
But when I try to add another TAG, it replaces the current TAG.
How to append the new tag to the current tag?
What I am doing wrong?
I want like this:
STUFF
STUFF2
Ignore this !, this is to avoid the format.
Don't and drive.
|
|
|
|
|
Does this work for you?
textWriter.WriteStartDocument();
textWriter.WriteStartElement("", "MAIN TAG", "");
textWriter.WriteStartElement("", "TAG", "");
textWriter.WriteString("STUFF");
textWriter.WriteEndElement();
textWriter.WriteStartElement("", "TAG", "");
textWriter.WriteString("STUFF2");
textWriter.WriteEndElement();
textWriter.WriteEndElement();
textWriter.Flush();
|
|
|
|
|
It's not like one time saving in the XML file.
In fact, in my program when I complete certain activity I want to add that new string (ex: STUFF2, STUFF3)into the XML file.
So my question is:
Initially like this
<<maintag>>
<<tag1>>
STUFF1
<>
<>
After sometime I want to add new TAG :
<<maintag>>
<<tag1>>
STUFF1
<>
<<tag2>>
STUFF2
<>
<>
Don't and drive.
|
|
|
|
|
Does anybody know how one would get started in trying to capture the winlogon.exe events (logon, logoff, locked machine ...) using C# and the .NET Framework?
Also I am curious how to possibly make a service that monitors this. Any suggestions?
Wally Atkins Newport News, VA, USA
|
|
|
|
|
Read the GINA Docu from MSDN
I don't think you can do it with managed code, it has to be a dll that exports some funcs
All I need is a roadmap and then I might be able to find a clue.
|
|
|
|
|
when displaying a childform, the textbox and other buttons of the parent form, keep getting through (are visible through the childform). How do I prevent them to get through ???????
|
|
|
|
|
Have you made it transparent or something?
"If you just say porn then you get all manner of chaff and low grade stuff." - Paul Watson, Lounge 25 Mar 03 "If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?" - Anon
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
|
|
|
|
|
1. How to expand all the closed regions with one single click?
2. How to search within a file when particular region is closed (+). Is there any option in search which tells to search inside closed region? Find in files works OK, as atleast it shows the region where the search string can be found.
3. How to store all the strings (ex: error messages) in a string table (STRINGTABLE), just like the way in VC++?
Don't and drive.
|
|
|
|
|
Kant wrote:
How to expand all the closed regions with one single click?
Its not just one click, but you can use the menu items under Edit/Outlining.
You can also use the Ctrl+M, Ctrl+L sequence to toggle all expansions (as found under said submenu).
Kant wrote:
there any option in search which tells to search inside closed region?
Check the "Search Hidden Text" checkbox
Kant wrote:
How to store all the strings (ex: error messages) in a string table (STRINGTABLE), just like the way in VC++?
I think the closest .NET analogy of this is .resx files. I assume you want to do this for localizing purposes. If that is the case you can use the localization features of VS.NET to help with the creation. Unfortunately that feature is only available for Forms, but you should be able to replicate the behavior yourself for other classes once you see what VS.NET does.
First you need to set the Localizable property of the form to true, then you can set the Language property to the language you are setting the strings. You can then change all of the .Text properties to that languages text. Then change the Language property again, and change all of the .Text properties again. Repeat for all of the languages you are going to support.
Now that you've done that if you look at the generated code in InitializeComponent you'll see the method calls you need to make to pull a localized string.
Click the "Show All Files" button in the Project Explorer toolbar (if you haven't already done so) then expand the form's tree node so you can see the files under it. You should have: [form].resx, [form].[lang1].resx, [form].[lang2].resx, etc. These files contain the localized text for the application.
You should be able to figure out how to expand this for your own purposes. It is important to note that when you do this you will get several satelite assemblies contained in subdirectories of your output location. These (as their filename implies) contains the localized resources for that language/culture.
HTH,
James
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
|
|
|
|