|
kobi10i10 wrote: there is why to put number in textbox with out the function convrt or (toString).
No.
|
|
|
|
|
Service Unavailable - That is what display when a click this link
|
|
|
|
|
You can use other methods to convert the number to a string, or make your own method, but other than that, no.
---
b { font-weight: normal; }
|
|
|
|
|
|
String.Format, Int32.ToType, Int32Converter.ConvertTo, Convert.ChangeType, StringBuilder.Append, TextWriter.Write... you name it...
---
b { font-weight: normal; }
|
|
|
|
|
Ok Thank u .
have a nice day.
|
|
|
|
|
HI ! my name ppvinh i come from vietNam
i have a question
I have been trying to use the System.Diagnostics.Process.Start command from an ASP.NET web page to start another process on my PC, i.e. Notepad. Although this method works when I try it from a Windows based application, it does not start the new process when I code it on an ASPX page. No errors have been raised when I put this statement in a try/catch block, but nothing happens (the program does not start). Can you tell me why?
please send mail for me you can .. ! thank !
phucvinh003@yahoo.com
ppvinh
|
|
|
|
|
|
Hi!! I just want to know for checking wheter a no is numeric or not we've IsNumeric function in vb. What's the euquivalent function in C# or how to do it in C#.
Thanks for your help.
|
|
|
|
|
|
As Joshua pointed out, Double.TryParse is the way to go.
See this link for an example IsNumeric implementation using Double.TryParse:
http://www.tangiblesoftwaresolutions.com/Articles/CSharp%20Equivalent%20to%20IsNumeric.htm[^]
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB to J# converter
Clear VB: Cleans up VB.NET code
Clear C#: Cleans up C# code
|
|
|
|
|
Hi, I need to Run In My Form a Programe .
the programe need to Work under my form/
|
|
|
|
|
Hi,
Check the Win32 API for the "SetParent" command.
|
|
|
|
|
Thank you very mach...
and have a nice day.
|
|
|
|
|
Process[] procList = Process.GetProcesses();
It seems VS 2005 (maybe 2003 too) is buggy related to this code.
If I have opened windows already before I start my application , VS only show 1 of them. But if I activate a window, which isn't listet in the process array, VS finds it immediately. Anybody here with the same experience? Is "EnumWindows" from Win32 API the only solution?
|
|
|
|
|
Are you running this from inside the debugger or from within your own application?
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Both types, don't work with both ones.
|
|
|
|
|
What is Process , your variable or a framework class? (Sorry don't have access to my development machine).
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Process is the framework class.
|
|
|
|
|
Using the following code (.NET 2.0):
foreach (Process proc in System.Diagnostics.Process.GetProcesses())
{
Console.WriteLine(proc.ProcessName);
}
Creates the following output:
aswUpdSv
spoolsv
CSRSS
WINLOGON
MaxBackServiceInt
Apache
CTFMON
firefox
explorer
vsmon
inetinfo
htpatch
ApacheMonitor
rundll32
SMSS
LSASS
mstask
WinPatrol
svchost
SyncServices
SERVICES
acrotray
svchost
ashDisp
Apache
zlclient
Amoumain
SciTE
mdm
TSVNCache
WinMgmt
ashServ
css
System
stisvc
SharpDevelop
Idle
So I'm not sure what yours is doing. (I tried this with C# Script, article here by me). And also created a simple executable and both seemed to run fine. I havn't tried it from within VS (I don't have the full edition, only the Express, but I will try it when I get the chance).
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
Hello, sorry for my late answer. No, this code show only a single process. Try to open 2 or more SharpDevelop Instances and you'll see that you only get one of them.
In the meantime I found a solution. First get the ThreadID with the Win32 API and then get the ProcessByID, this works.
|
|
|
|
|
Seraphin wrote: Try to open 2 or more SharpDevelop Instances and you'll see that you only get one of them.
Nope I get all processes running as listed in the TaskManager
Seraphin wrote: First get the ThreadID with the Win32 API and then get the ProcessByID, this works.
Seems a long way around.
Try putting the following code:
using System;
using System.Diagnostics;
class ListProcesses
{
static void Main(string[] args)
{
foreach (Process proc in Process.GetProcesses())
{
Console.WriteLine(proc.ProcessName);
}
Console.Write("Press ENTER to continue...");
Console.ReadLine();
}
} Into a text file, name it something (like listprocesses.cs) then run csc listprocesses.cs to compile it and then run listprocesses.exe .
I just had a thought, are you running in a doman because maybe there's some security restriction in place which stops programs accessing other programs. Just a possibility?
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
hi
how to insert exe file into another exe file (or bind to exe file) and extract they when user click on my exe file ??
codeproject is best ..
thanks..
bye ..
|
|
|
|
|
One method would be to compress the application to reduce it's size (if that's a problem) and then encode the resulting compressed executable in a resource file as a Base64 string. To extract it reverse the process.
You know you're a Land Rover owner when the best route from point A to point B is through the mud.
Ed
|
|
|
|
|
I have a trailing CR or LF in my texbox2.text output from the following.
Any ideas on how I can remove that? (Also any regex help is appreciated.. It is a mystery to me)
p.Start();
sw = p.StandardInput;
sr = p.StandardOutput;
err = p.StandardError;
sw.AutoFlush = true;
sw.WriteLine("nbtstat -A " +textBox1.Text);
sw.Close();
Regex macaddy = new Regex("=(?<MAC>.+)");
string fred;
fred = sr.ReadToEnd();
Match m = macaddy.Match(fred);
if (m.Success)
{
textBox2.Text = (m.Groups["MAC"].Value);
}
else
{
textBox2.Text = ("No Mac Found");
}
|
|
|
|