|
Take a look at the Process class especially the Start method.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
how can i underline a text in the text box .. the way it is done in the Ms.word to indicate spell error
bia
|
|
|
|
|
Here's one way:
myTextBox.Font = new Font ("Tahoma", 8, FontStyle.Underline);
/ravi
|
|
|
|
|
Like the other two examples have said, you need to update the Font's underline characteristic. With a Textbox, however, you cannot underline specific text, just all or none. RichTextBoxes allow other functionality. Check out the MSDN pages on them if you'd like more information.
|
|
|
|
|
how can i underline a text in the text box .. as it is done in the Ms.word to indicate spell error
bia
|
|
|
|
|
in vb.net 2005
textbox1.font.Underline=true
that is innef for underline in textbox text
jeni_yash@yahoo.co.in
|
|
|
|
|
Hi everybody, can we use c# to build device drivers, or we must stick to c++?
|
|
|
|
|
You don't have to, however, as most of your code will be unmanaged you might as well use C++.
only two letters away from being an asset
|
|
|
|
|
As C++, C# is advance of C++ so whatever we can do with C++ can also be done through C#
jeni_yash@yahoo.co.in
|
|
|
|
|
anilsolanki wrote: C# is advance of C++
Uhhh...No, it's not. And you do NOT want to write drivers in C#. There's too much you have to rewrite in C# code, plus the overhead of the MASSIVE amount of P/Invoking and Interop you'll have to do.
Like the other poster said, it's not worth it because most of the resulting code will be unmanaged anyway. So why go through the huge hassle of converting the DDK to support C# when you're not really going to use the .NET Framework anyway?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
I recommend buying a book on C#. C# is a step forward frm JAva. It has little to do with C++.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
There is no way one would want to do this, since it would cause the driver to incur the overhaed of loading the CLR. Drivers should be written in C++, not C# or managed C++.
|
|
|
|
|
|
Hi,
Here is my code:
Form_Leave()
{
this.Opacity = 0.5;
}
Form_Enter()
{
this.Opacity = 1;
}
If I have 10 controls in my form, I need to add this Form event handler to each and every controls in the form. And when I do that when Mouse_Leave and Mouse_Enter occur my form get flickering.
Is there any other way to avoid flickering and adding event hander to each and every contol.
Thanks in advance
Muthu.
|
|
|
|
|
Use SuspendLayout() , do what you have to do, ResumeLayout() (and eventually Refresh() )
SkyWalker
|
|
|
|
|
I still have flickering even after using Suspend/Resume Layout.
Thanks
Muthu.
|
|
|
|
|
rather than handling this with an event handler in each control, do it all in the main form's event handler:
this.SuspendLayout();
foreach( Control ctl in this.Controls)
{
ctl.opacity = x;
}
this.ResumeLayout();
|
|
|
|
|
Control doesn't have Opacity property!!!
Thanks
Muthu
|
|
|
|
|
Controls don't have Opacity properties. It applies to the Form, not it's controls. The entire form has to change its opacity, not the controls.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I want to know which ip/ports(sockets) are currently in use. How can I do that?
Danger!
|
|
|
|
|
|
led mike wrote: Loop and Bind
Oh no! This is not a really applied method! It's too time consuming! Certainly, the OS has a list of ports that are currently in use, or vice versa, a list of available ports. How can I ask the Framework to give me this list?
Danger!
|
|
|
|
|
|
Absolutely Fantastic, Thanks a lot!
Danger!
|
|
|
|