|
Sounds like the sort of info that google is just bursting to provide.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
A good way to get people's help is to show that you've at least tried to help yourself first. What's the rationale behind 'I can type something into google and get my answer, but I want someone else to do it for me' ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
is there any property file concept in C# where i can use getXXX() or setXXX() method to retreive or assign value from the property file like we have in java
----------------------------------------------------------------
where there is a will there is a way
Nasim
|
|
|
|
|
Yes. You can use ApplicationSettings to bind properties, such as this.
string s = global::MyProject.Properties.Settings.Defualt.NameOfBinding;
global::MyProject.Properties.Settings.Defualt.NameOfBinding = s;
only two letters away from being an asset
|
|
|
|
|
Not really, but there is nothing to stop you implementing one in just the same way as the Java implemented one!
|
|
|
|
|
Hi can u please let me know wht the following format means
also please give me some examples for this....
Regex re=new Regex("^([0-9]+d )?([0-9]+h )?([0-9]+m )?([0-9]+s )?$");
regular expression in c#.
thanks in advance.....
|
|
|
|
|
chandler83 wrote: ([0-9]+d )?([
Any number of digits, followed by a lowercase d. The ? means this group doesn't have to exist for there to be a match
next group does the same for digits followed by h, then the same with m, then the same with s. I believe that ^ means the start of a line, and $ means the end. This will match an empty line, or a line that matches any one of those groups. If there's only ever one group, and it could contain d/h/m or s after the numbers, then the better way to write it would be
Regex re=new Regex("^([0-9]+[dhms])$");
This also won't match an empty string. The brackets control grouping, groups that matched can be retrieved after performing a regex.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Regex re=new Regex("^([0-9]+[dhms])$");
Wrong. What you probably meant was ^([0-9]+[dhms]){0,4}$
But that would still be wrong, because it wouldn't preserve the order of d,h,m,s.
The original Regex at least ensures the correct order of d, then h, then m, then s.
Christian Graus wrote: Any number of digits
Just to not confuse the thread opener:
it acutually meast at least one digit
+ = one or more
* = zero or more
? = optional character, group
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg wrote: Wrong. What you probably meant was ^([0-9]+[dhms]){0,4}$
No, you're wrong. I said if the regex is intending to find ONLY ONE group out of the four ( not any of the four groups, in that order ), then the regex I provided would be a substitute.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
thts perfect........
thank u very much Christian Graus...
|
|
|
|
|
In addition to what Christian already said, here's some examples:
123d542m
32d167h764m317s
7s
Even an empty line would match, because all this occurances are optional (hence the ?)
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
guys please for now, why dont u just give me all the code to load, display and save with a user interface that has a picture box, and three buttons to load the bitmap, display and then save it.
tony-yeyo
|
|
|
|
|
HEI.... WHY DON'T YOU JUST READ THE ANSWER FROM YOUR LAST QUESTION, INSTEAD OF SENDING THE SAME QUESTION EVERY 5 MINUTES.
YOU MUST LEARN HOW TO WRITE A C# APPLICATION, INSTEAD OF ASKING FOR CODES EVERYTIMES...
http://www.codeproject.com/script/comments/forums.asp?forumid=1649&mpp=50&select=1608780#xx1608780xx
|
|
|
|
|
I know that i have to learn it, but i have limited time now and i cant really make it on time if I'm to start everything like that.
So please if u can help out, do so.
tony-yeyo
|
|
|
|
|
NO... I DON'T TIME EITHER TO RESPONSE A QUESTION LIKE THIS. READ THE ANSWER OF YOUR PREVIOUS QUESTION...!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
Thank u and i think that I get the picture now ok.All I'm asking is just for this first time and i would be grateful if u can help. but then if u wont its ok.
tony-yeyo
|
|
|
|
|
Robert gave you the code already. Everyone who would code more for you, would be an idiot. If you have to do your homework do it on your own. We can answer questions but no one will put his work aside just to please you.
------------------------------
PROST Roleplaying Game
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Take a look at number 9 in this[^] post and you might start to understand why we won't write your code for you.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
diddy34 wrote: why dont u just give me all the code to load, display and save with a user interface that has a picture box, and three buttons to load the bitmap, display and then save it.
Because
1 - that's a lot of code to post
2 - anyone who can't write those bits for themself really shouldn't be programming, or at least should be working through a 'for dummies' book to learn the absolute basics of using the IDE
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi guys i am trying to populate dataset using classes but it gives me this error" Cannot create an instance of the abstract class or interface" and here is my code.
public class DataAcces
{
public SqlConnection conn;
//public SqlCommand cmdDisplay;
public DataSet dsDisplay ;
public DataAdapter daDisplay;
private string ConString = "integrated security = SSPI;initial catalog = Phusa;server = za211149;persist security info = false";
public DataAcces()
{
//
// TODO: Add constructor logic here
//
}
public bool Connection()
{
try
{
conn = new SqlConnection(ConString);
DataAdapter daDisplay = new DataAdapter("SELECT * FROM Customers",conn);
dsDisplay = new DataSet();
daDisplay.Fill(dsDisplay);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
return false;
}
return true;
}
|
|
|
|
|
use this connection string
Data Source = za211149; Initial Catalog = Phusa;User Id = userid; Password = password
-- modified at 7:39 Thursday 3rd August, 2006
where there is a will there is a way
|
|
|
|
|
hi I am a VC++ program learning C#
i find it as a very good language
for application development
Can anyone point me out some href
to online books .
vikascamin@eaton.com
Vikas Amin
EATON
PUNE
|
|
|
|
|
|
hi yeuue
I am sorry my company email modarator
removed the attachement .
I think i need to use my old email ID
<removed email="" id="">
thanks for your help
vikas
Vikas Amin
EATON
PUNE
modified on Friday, July 18, 2008 4:12 PM
|
|
|
|