|
I Have Return the validation expression(Alpha,Numeric,special character) in three regular expression.
How to write the multiple validation expression in single Regular Expression.
Alpha
******
Regex rx = new Regex(@"^[a-zA-Z]+$");
Numeric
*******
Regex rx1 = new Regex(@"^\d+$");
special character
*****************
Regex rx2 = new Regex("[@#$%^&*()_+=?><.,\":;~`|\\?/}{]+$");
|
|
|
|
|
I have heard that .NET framework is redistributable..
Does it mean that it is free??
If I build a client application in .NET, certainly I would need the framework, that why I want to know that can I install it in the clients system without any licensing hassles??
Are all latest frameworks free or the only the old ones? (upto 2.0) ??
|
|
|
|
|
Yes, all versions (so far) are free. I believe that framework 2 is usually included with Vista - I don't run Vista so I'm not sure.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
What made you think they were not be ? Did you try searching for info ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
So what is the Difference between .NET framework 3.0 and .NET framework 3.0 redistributable package??
|
|
|
|
|
One is the whole framework, which is free, and can be used to write apps, even without visual studio. The other is just the bit the end user needs to run your code.
There is a free IDE as well, so I don't think many people use just the free framework anymore.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: One is the whole framework, which is free, and can be used to write apps, even without visual studio.
Now this is very interesting..
Culd you please elaborate more on this?
How can I write apps in .NET framework without Visual Studio??
Do I have to use an editor of some other vendor for this?
|
|
|
|
|
ptr2void wrote: How can I write apps in .NET framework without Visual Studio??
Sharpdevelop [^] is an open source IDE .
BTW Visual C# Express Edition [^] is free.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I used SharpDevelop in College...
*Shudders*
Visual C# Express Edition or Notepad :p (Or preferably EditPad Lite instead of Notepad, but that's just me... )
|
|
|
|
|
I fully disagree : I used Sharpdevelop (only a bit, I admit) and like it.
Visual C# Express Edition is great value for money (BTW Notepad++ is much better than Notepad ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Great value for money... Lol :p
And my response with my SharpDevelop experience might be directly related to the fact that I was using it in 2005, when it was still in Beta....
|
|
|
|
|
Is Visual Studio still in beta or am I wrong?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
You may use Notepad if you wish. The compiler is a free download.
|
|
|
|
|
|
Hello everyone,
I am confused after reading the exitContext parameter from MSDN,
http://msdn2.microsoft.com/en-us/library/kzy257t0(VS.80).aspx
What does the context mean? Does it mean if I acquire some lock (e.g. lock, readwrite lock, monitor) before invoking WaitOne, then when calling WaitOne, the locks are automatically released?
So, when the thread is waking up again by signal from WaitOne or timeout from WaitOne, it will have to try to acquire the lock or locks again before execution?
thanks in advance,
George
|
|
|
|
|
|
Thanks Urs,
Looks like it has nothing to do with locks, as I listed in the original question?
regards,
George
|
|
|
|
|
How I can create an windows form application in C# that it doesn't need to framework when it run?
|
|
|
|
|
Two options
1 - buy an expensive tool that will do this for you
2 - pray
why would everyone be distributing the framework if there was an easy way to avoid it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: 1 - buy an expensive tool that will do this for you
2 - pray
Good one Christian, I just cant agree more, I've been to this struggle and I happily gave it up in the end!
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
Christian Graus wrote: 2 - pray
Best one I've heard today.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Christian Graus wrote: 2 - pray
Plz Send Code for (2) Most Urgentz KTHXBYE.
|
|
|
|
|
|
Don't forget to set CPU priority to RealTime
|
|
|
|
|
Device a simple shell with the following valid commands:
1. help
a. lists the names of currently available commands
2. add
a. takes 2 command line arguments corresponding to the two input values
3. subtract
a. takes 2 command line arguments corresponding to the two input values
4. multiply
a. takes 2 command line arguments corresponding to the two input values
b. overflows will be truncated
5. divide
a. takes 2 command line arguments corresponding to the two input values
b. this performs only integer division
c. division attempt by zero returns zero.
6. setlog
a. takes one argument indicating the name of the log file [default: q1.log]
7. start
a. starts the logging process to the logfile mentioned above
8. stop
a. stops logging process
9. quit
a. exits out of shell
10. back
a. Usage: back <cmd> <arg1> <arg2>
b. Executes the cmd in back ground and holds the child from exiting till explicitly
mentioned by fetch command
c. Internally, back returns the child id of the process created .
11. fetch
a. Usage: fetch <child id="">
b. childid is the id of the process to be fetched. This will print the result of the
operation performed by child
c. if no childid is given, any of the background children will be fetched.
12. ps
a. list the set of child processes with their process id and the name of the child.
Apart from these set commands, if any other command is typed, then a “Command not found”
error should be printed by your program on to the screen.
All the results from the child processes has to be send to shell process using shared memory
defined on a per-child basis.
If a process has been send to background using the back command, then it must stop itself from
sending the result back to shell. Only when the user types the fetch command, the child must
return the result to the shell.
Every 30 secs, the shell must display the currently running child processes on to the screen. (This
information should not be printed to the log file.)
From the time the start command is given, all the commands typed in the shell, and its results
must be written on to the log files, unless otherwise specified. Commands 1,6,7,8,9 and 12
should not be written to the log file, neither should their results be written.
|
|
|
|