|
Control.Font uses the DEFAULT_GUI_FONT , the stock object (see GetStockObject in the PSDK) for controls, menus, etc., if available. You can get the font used specifically for menus from SystemInformation.MenuFont . As far as the caption bar fonts go, there isn't any managed way to do this.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
Hello,
I am trying to add a feature to my text editor that will allow the user to select multiple files in an explorer window, then right click and push "open with" and select my program. However, after testing this, I've realized that only one of the selected files is actually passed as a command line argument to my program. How can I find out what other files are selected so that I can open them also?
Thanks,
Blake
|
|
|
|
|
Do you know of any programs that support this feature? I can't find any. I tried all sorts of applications.
I'm thinking it's a limitation of the OS (shell in particular) and not something you can work around.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
Textpad (www.textpad.com) supports it. So do zipping utilities like winzip and winrar.
|
|
|
|
|
At least from what I can tell on my installation, Textpad doesn't really support opening multiple files with "Open with...", it creates a new menu entry (shell) for launching it.
I know Winzip and Winrar create a bunch of new shell commands as well, which is different than using "Open With...".
Are you actually selecting two files, right clicking them, selecting "Open with...", and then picking Textpad as the program and having it open both? If so, my installation doesn't do that...
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
Yes, you're correct. I was using the menu entry instead of "Open with" and I had just assumed that Textpad would work the same way when using open with as it does with it's menu entry. But apparently not.
I guess now my question would be how to make a shell entry that would work like that. Any tips on how to go about finding out what files are selected?
Thanks,
Blake
|
|
|
|
|
Take a look at this article.
(It's in C++ but I'm not sure if some of these things are even possible in C# without Interops. It will give you a good starting point.)
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
OK, I guess I'm just stupid, but. I have a C# app that I created and want to send it to someone else. What needs to be sent along (with the .exe) so they can run it.
Thanks.
Larry J. Siddens
|
|
|
|
|
Well, generally if that person has .NET framework installed on his/her machine it will works, but if your program has configuration,database files or using custom assemblies it should be shiped with exe file,so typically it is better to create Set up project for your projects and add your settings and file to it and ship installshield only,not only the exe file.
Mazy
No sig. available now.
|
|
|
|
|
1) Create an installer for your app in VS.NET
OR
2) No installer
First of all, the .NET framework should be installed on the target computer. Include dotnetfx.exe it's on the component update disk / prerequisities disk of VS.NET...
Next thing to do is to check te references. If all references are made to files of the .NET framework you don't have to include any more files. If you have used custom .NET dlls (in app directory if you have chosen copy local) or COM dlls (via interop) you should include these in your distribution (COM: dll AND interop dll files, interop files are in your app output dir, main dll can be anywhere)
greetz
*Niels Penneman*
Software/Dev Site Personal Site
|
|
|
|
|
What is the dotnetfx.exe?
Larry J. Siddens
|
|
|
|
|
That's the .NET Framework installation. Take a look here.
EDIT: Here's a more direct link.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
I am using the RegEx which needs to check for the value to be five digits before the decimal and 2 after the decimal or just five digits. and I am using
System.Text.RegularExpressions.Regex exp = new System.Text.RegularExpressions.Regex("(^\\d{0,5}.{1}\\d{1,2}$)|(^\\d{1,5}$)");
With this it's only checking if the value is five digits before decimal and 2 after but not for just 5 digits. I entered 6 digits without decimal and it did not catch the exception.
I don't know what's wrong. Any help ?
|
|
|
|
|
In most regular expression syntaxes, "." is a symbol that means "any character". You probably need to escape the . with a backslash, like "\.".
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
^\d{5}(\.\d{2})?$
You didn't escape ".". Without escaping, this means that it matches any character or none. For instance, to match any 5 characters, you could use .{5} .
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Thanks for the help
It works.
|
|
|
|
|
I'm pretty sure you know this and just had a brain fart while typing, but for anyone else reading this...
. actually means any character except possibly "\n" depending on options you set for your regular expressions. In other words, it doesn't match "none". More details here.
I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
-David St. Hubbins
|
|
|
|
|
You're right - brain fart! I'm so used to typing .* for so many things I practically think of it as a single pattern element!
Thanks for the catch!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I think I would write this as:
@"^\d{5}(\.\d{2})?$"
Well, actually, I'd write it as:
@"^
\d{5} # 5 digits
(
\. # decimal point
\d{2} # 2 digits
)? # match zero or one time
"
and then use RegexOptions.IgnorePatternWhitespace
(it wasn't clear to me if you meant "only 5 digits" or "from 1 to 5 digits" in your description, so you might need to change the first part.
|
|
|
|
|
I have changed my code and it works. Actually it supposed to be 1 to 5 digits, so I changed the first part to \d{1,5}
|
|
|
|
|
I need a book/document/article/website that could detail (regardless of the programming language, if required for examples) how the Windows operating system exactly works internally.
Is there such a thing? I believe I cannot become a better programmer until I start understanding this: how the OS I'm coding for is actually behaving/responding to this code.
Sammy
"A good friend, is like a good book: the inside is better than the cover..."
|
|
|
|
|
I don't think you can find a book for a whole of windows cause it has very very different parts,also it is not open source ,so I'm not sure you can find out exactly all parts for that. But you can get some information if you want to work on a specific field ,you can get a book specially for that part. For example you can find out a lot about securities and how windows security acts in a books that specially about this topic. Same about other field.There is no general book for general purpose I think.
Mazy
No sig. available now.
|
|
|
|
|
Okay, lets say threading.
Sammy
"A good friend, is like a good book: the inside is better than the cover..."
|
|
|
|
|
Well, donna know any books,but you can search CP and find some articles about it which may helps you. Another source is here:
Threading in a windows form[^]
Mazy
No sig. available now.
|
|
|
|