|
Do your own homework.
Here's a tool that may help: RegexTester[^]
If you have trouble with what you come up with, we have a Regular Expressions forum
And I suspect that your teacher may be an idiot.
|
|
|
|
|
Thank you.
I am going to see RegexTester.
And bofore that,
For just training, I am trying to use If-statement instead.
|
|
|
|
|
The description of the first problem is incorrect. If the input text is "hello, my name is Joe. what is your name? ", the output should be "Hello, my name is Joe. What is your name? ".
/ravi
|
|
|
|
|
I want to develop a desktop application & frequently i hv to send sms/emails from that s/w. so, please tell me the best Language among VB2010/C#/vb.net
|
|
|
|
|
We can't - the two are pretty much equivalent, the difference will be your understanding of the languages.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Not sure why the one vote.... seems fairly reasonable to me.
|
|
|
|
|
Visual basic haters.
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods
|
|
|
|
|
Please write whole words.
Those are laguages, not platforms.
C# is best in general, but probably not best for you if you can't write any better than that.
|
|
|
|
|
Both C# and VB can be used to achieve this task.
Pick up the language you are comfortable with.
|
|
|
|
|
I have an internet on the server
I want giving the internet to some of clients, and take internet from some of them
How can i do it with C#?
excuse me, my writing in English is not very well.
but I hope that you understand my question. 
|
|
|
|
|
You don't need any C# code at all. You just need an "off-the-shelf" proxy server.
|
|
|
|
|
May further explain please.
|
|
|
|
|
|
|
I have a richTextbox and in it I just need to display some formatted text. But I don't want the user to edit it. I've set the richtextBox property to readOnly and Ok, it doesn't allow the user to enter any text. But the blinking cursor still appears in the richTextBox. Is it possible to remove that too?
I need to have a RichTextBox that displays various text (in color), but the user cannot highlight or edit the text in anyway, With a regular textbox, I can set .Enabled=False and that does exactly what I want, but with the RichTextBox, setting .Enabled=False turns the box grey, and I need it to stay on the BackGround color....labels won't do, as I need individual words to be different colors.
|
|
|
|
|
vijendra58 wrote: But the blinking cursor still appears in the richTextBox. Is it possible to remove that too?
If it were a local app, yes, using P/Invokes. Being a server-app, I'd suggest using the DrawToBitmap[^]-function and display it as an image.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi
I'm trying to create a custom control based on TreeView, to be used in other programs.
The control should read the disc folder structure and display it.
The control builds OK, finds the data and builds the tree items.
Trouble is, in the host program, nothing is visible.
Any help will be appreciated.
alex
'Architecture is music frozen in space.'
|
|
|
|
|
alex__b wrote: Any help will be appreciated. Since you have not given us any information about the problem, that is going top be difficult. Remember, we cannot see your screen or source code. You need to do some debugging and provide some actual details of what is happening in your code.
Use the best guess
|
|
|
|
|
Well, you're right.
It was from exasperation with not being able to make it work,
and the cause was a stupid mistake (mine to be sure).
I got it a few minutes ago.
Thank you and Sorry.
alex
'Architecture is music frozen in space.'
|
|
|
|
|
I have 3 textboxes (txtoldpassword,txtnewpassword,txtconfirmpassword)
and i want to take the data that dives a user and if a user password exists in access then i can update the user password.
i try this but it doesn't work.
private void btnSave_Click(object sender, EventArgs e)
{
if (txtOldPassword.Text.Length == 0 || txtNewPassword.Text.Length == 0 || txtConfPassword.Text.Length == 0)
{
MessageBox.Show("Please Fill all the fields.");
}
else if (txtNewPassword.Text != txtConfPassword.Text )
{
MessageBox.Show(" Please insert again your new password.");
}
else
{
OleDbConnection connect = new OleDbConnection();
connect.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\user\Desktop\Laiki_Trapeza_Questionnaires.accdb;Persist Security Info=False;";
connect.Open();
OleDbCommand command = new OleDbCommand();
command.Connection = connect;
command.CommandText = (@"UPDATE Users_Table SET Password= '" + txtNewPassword.Text.ToString() + "' WHERE (Password='"+txtOldPassword.Text + "')");
MessageBox.Show(" Succesfull update password!");
connect.Close();
}
}
|
|
|
|
|
You haven't really executed the query yet. call command.ExecuteNonQuery()[^] right after
command.CommantText
i.e
OleDbCommand command = new OleDbCommand();
command.Connection = connect;
command.CommandText = (@"UPDATE Users_Table SET Password= '" + txtNewPassword.Text.ToString() + "' WHERE (Password='"+txtOldPassword.Text + "')");
int rowsAffected = command.ExecuteNonQuery();
MessageBox.Show(" Succesfull update password!");
|
|
|
|
|
To add to what jibesh said - please don't do it like that! Never store passwords in clear text - it is a major security risk. There is some information on how to do it here: Password Storage: How to do it.[^]
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
|
Any particular part you don't understand?
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Message Closed
modified 11-Mar-13 10:57am.
|
|
|
|