|
System.IO.File.Move("C:\\this.txt", "C:\\that.txt");
That will rename the file from this.txt to that.txt
David Stone
But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*.
Shog9
|
|
|
|
|
Hi,
I'm trying to create add-in to Visual Studio.Net,
I know how to create Command with a custom icon but I don't know how to set for example green color in this bitmap as transparent
So on my toolbar is very ugly green button
please help me !
Thank you.
|
|
|
|
|
|
Uh I don't know becouse I have this:
<br />
CommandBarButton btn;<br />
Command cmd;<br />
<br />
cmd=applicationObject.Commands.AddNamedCommand<br />
(addInInstance, "MyCmd","Text","Tooltip",<br />
false,1,
ref contextGUIDS,<br />
(int)vsCommandStatus.vsCommandStatusSupported+<br />
(int)vsCommandStatus.vsCommandStatusEnabled);<br />
<br />
btn=MyCmd.AddControl(cmdBar,1) as CommandBarButton;<br />
<br />
I think that I mustn't change picture to be transparent after I create this command.
Maybe I can use btn.Picture and btn.Mask but I don't know how to work with IPictureDisp in C#
|
|
|
|
|
|
According to this article, you need to use a green with an RGB value of (0, 254, 0) the green you are using is probably (0, 255, 0).
James
"And we are all men; apart from the females." - Colin Davies
|
|
|
|
|
Oh yes!
With RGB(0,254,0) is it better.
Thank you!
|
|
|
|
|
|
You mean the kb/second?
That's just How_much_data/time
Understand?
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++!
|
|
|
|
|
|
Blast!
I see what you mean now!
I don't know how to get that...
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++!
|
|
|
|
|
Internet speed is usually refered to as the downstream bandwith, iow the download speed, unless u specify bith upstream and downstream rates.
It is never the sum of both. That would be the maximum throughput of the device.
Hope this helps
|
|
|
|
|
Would anybody know how to do an update from a datagrid in ASP/C#?
I have it all the way to the update command, but can't find and good tutorials to Get it any further. I'm going to need to do a SQL statement, but I don't know how to GET the values back from the Grid.
|
|
|
|
|
|
where can I get a list of KeyChar codes for all key on my keyboard?
|
|
|
|
|
On MSDN Library!
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++!
|
|
|
|
|
Have a look at the Keys enumeration
Hope it helps
|
|
|
|
|
I'm really unhappy with Windows? It's always giving me funny illegal operations and fatal errors which I cann't understand? and the problem that sometimes there is no file name will show in the (junk codes)?
How can understand what is the meaning of it? any good reasource?
Jassim Rahma
|
|
|
|
|
jrahma wrote:
I'm really unhappy with Windows?
This poor guy is confused.... he's not sure I guess
In all seriousness, dump windows 98/ME and move to 2000/XP Pro.
|
|
|
|
|
jrahma wrote:
How can understand what is the meaning of it? any good reasource?
Write better code!
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++!
|
|
|
|
|
OK, I have been play with this on and off all day and can not make it work.
How do I define an instance of of a performance counter at runtime?
I have the counter defined in the server explorer and can use the counter it's self, but I wish to add intances of the counter, in the same way as, for example, 'Processor/% Idle Time' has.
Anyone any ideas?
Thanks
Stephen
|
|
|
|
|
Drag it from the Server Explorer onto your form. That will give you a control to work with.
David Stone
But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*.
Shog9
|
|
|
|
|
I can get a normal performance counter to work no problem, what I cant get to work is the InstanceName property.
If I try to access one of the existing performance counters that has multible instances that works, but I can not create my own.
Bassically I have this system that can load plug-in modules at run time. I have a custom counter called 'Messages Dispatched' now under that I want to create an instance for each plugin i.e. 'E-Mail', 'SMS' etc, just like under PRocessors you can see an instance of each processor.
The documentation said to pass the instance name in the constructor to ProcessCount but that does not work for me. The app starts and perfmon shows no instances, just the root performance count.
Thanks
Stephen.
|
|
|
|
|
|
Yeah but that shows how to use it from C#. Not how to implement it in C#.
David Stone
But Clinton wasn't a predictable, boring, aging, lying, eloquent, maintainer-of-the-status-quo. He was a predictable, boring-but-trying-to-look-hip, aging-and-fat-but-seemingly-oblivious-to-it, lying-but-in-sadly-blatant-ways, not-eloquent-but-trying-to-make-up-for-it-by-talking-even-more, bringer-in-of-scary-and-potentially-dangerous-new-policies. And there was also Al Gore. It just wasn't *right*.
Shog9
|
|
|
|