|
If I replace the code with your's it only adds 00 FF to the beginning of the array...
I need it before each string.
And by sting I mean each "cell" in the string array twoByteArray .
with you code it's like this...
00 FF 1a 12 21 1f etc....
do you think you can make it everyother one like this...
00 FF 1a 00 FF 12 00 FF 21 00 FF 1f .....
/\ |_ E X E GG
|
|
|
|
|
Did you try the Splitsville function in my first response?
It accepts the file name, and a list of values to insert before each value in the file, which is what you area trying to do.
|
|
|
|
|
I havn't forgot about yours yet... give me a few to figure it out. thanks for your effort.
/\ |_ E X E GG
|
|
|
|
|
Hello,
sorry if this is a newbie question but here goes anyway.
I want to write a simple windows application, that opens an external program (.exe) after clicking on a Button.
Can you post the code?
How can I find these infos in the MSDN documentation?
Thank you
|
|
|
|
|
using System;
<code>using System.Diagnostics;</code>
namespace ConsoleApplication6
{
class Class1
{
[STAThread]
static void Main(string[] args)
{
<code>Process.Start("iexplore.exe");</code>
Console.WriteLine("Internet Explorer should have started...");
}
}
}
The things in "code " are what you should take note of, in order to answer your question.
/\ |_ E X E GG
|
|
|
|
|
To the original poster, don't forget the value of the documentation - it's where the people that answer your questions learn things. Read the documentation about the System.Diagnostics.Process class and see what else you can do, like provide command line arguments, redirect stdout, stderr, and stdin, and pass shell command verbs for non-executable files (like opening HTML documents with the user's default browser without knowing what their default browser is).
-----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-----
|
|
|
|
|
thank you very much for the code.
I think the MSDN help is great to learn how to use classes/components, but it doesn't explains which class has to be used for a certain purpose.
where can I find a handbook that can guide me on finding help on the msdn documentation?
I'm looking for help on finding help: weird,isn't it?
|
|
|
|
|
You simply have to review the documentation on MSDN. Get to know what classes there are. It's not like you have to memorize the whole library, just become familiar with what certain namespaces cover (ex, obviously System.IO is for input/output, which includes files and other streams) and you can always lookup stuff when you need to. API documentation is not to teach you how to do things - that's your job and what development is all about.
Besides, nothing says you have to use one class over another, or that you couldn't even write your own. Some classes may be better than others for particular uses, but your understanding of those classes and your imagination in how that functionality can be derived is what dictates which classes you should use.
-----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-----
|
|
|
|
|
can there be same control for both windows and web if it is how can we develop it in c# please guide me
Thanks
|
|
|
|
|
NOP... coz windows controls are rendered by the windows engine... and while web controls are rendered into HTML and which in turn in, is rendered by a browser.
mE
---------------------
A gasp of breath,
A sudden death:
The tale begun.
A rustled page
Passes an age:
The tale is done.
|
|
|
|
|
You're wrong - I've done it countless times. To the original poster, see my article I'll be updating for CP on DevHood at http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=388[^].
-----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-----
|
|
|
|
|
My apologies - Actually me too tried to do this with ActiveX controls. Your article seems great; I hope it would be very helpful.
Once again my apologies;
Heath, Keep up the good work;
mE
---------------------
A gasp of breath,
A sudden death:
The tale begun.
A rustled page
Passes an age:
The tale is done.
|
|
|
|
|
Hi,
Ive been looking around at various projects on gotdotnet and whatnot and most of the good applications seem to not sure the windows forms designer. I was wondering is this standard practice for a company that would sell a windows form application? Is there any books or web sites that describe the process of making a windows form application with out using the designer? Thanks in advance.
xarx
|
|
|
|
|
|
This is common practice. Good applications are written by good developers who don't need graphical agents. I rarely use the forms designer - especially when working with localized applications - because the designer assumes far too much and likes to initialize everything up front.
As a good example, try designing a simple test form. Set the Localized property in the prop grid to true , and watch the designer add every localizable property to your .cs and .resx files...and the size of your assembly double! Now try removing some of those and moving the ResourceManager instance off into the class as a private field or something to reuse elsewhere in the class...and watch the designer complain and break!
The most important thing to remember is that the designer doesn't use magic - everything you do in the designer is either serialized as code in the source file or is added to the ResX files (like images in an ImageList , which are simply base64-encoded).
-----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-----
|
|
|
|
|
Can you recommend any ways to learn this form of windows form programming? All the books I have or seen use the designer to make programs.
Thanks in advance
xarx
|
|
|
|
|
Forget the books - the best education is trial and experience. Read through the .NET Framework SDK. Scan the namespaces and the classes contained within. Start trying things. If you've just been using the designer and have never looked at the code - you're lost. The concepts are simple - you have a form. Instantiate it, put some controls on it, and show it. The biggest mistake so many people make is that they don't read the documentation. What do you think the books are written from? The documentation, trial, and experience. Don't waste the money.
-----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-----
|
|
|
|
|
The first thing I catch when reading posts like these is the "I'm better than you 'cause I do it all in code" hard-ass attitude. What a bunch of bunk. If a tool is there and increases your productivity, use it.
Don't fall into that programmer elitism bull sh*t. Productivity takes first place to optimizing the assembly size hands down.
The graveyards are filled with indispensible men.
|
|
|
|
|
I have a TextBox on a Form and I want to implement autoscroll on the TextBox...any ideas of how to do that?
Thanks,
mweiss
|
|
|
|
|
I've spent some time looking around for wrapper classes etc which will enable me to build an MP3 player w/ .NET
For VS 6.0 there are plenty of controls out there to do this .. However, I have not been able to find any controls, dlls etc etc that will do this for .NET ..
I did try using the MM control(Interop) and it the MP3 didn't sound right.
What gives ?? Does anyone know of any good components for MP3 ?
|
|
|
|
|
|
|
|
Thread.Sleep(XX);
This is the simplest solution to making your thread pause. Unless you are required to have 100% time accuracy I don't see it worth your time to invest in alternatives.
Progress Bar delays:
This is common. There is alot that goes on in your application when you update the GUI. Even if they are in different threads it has to pause find the proper method to send data via and send the data. If there isn't many things going on this normally isn't visible however, when you are doing hundreds of thousands of microsecond loops those tiny delays do add up. Could you speed it up? Possibly but then again it is up to how much time you want to commit to it.
A simple quick fix for process bars updates is to only send update calls every X loops. Sometimes helps, sometimes hurts. Consider it the poor mans fix.
|
|
|
|
|
nice progress bar tip. i'll try it out.
thanks.
/\ |_ E X E GG
|
|
|
|