For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
Partly because we have no idea what they are, so no idea how they are encrypted.
Partly because they look more like hash codes given the lengths, and they aren't decryptable.
But mostly because if you don't have the methods and other information to decrypt data, it's almost certainly because you aren't authorised to do it. Which makes it you trying to bypass legitimate security measures. Which is malicious activity.
We do not condone, support, or assist in the production of malicious code in any way, form, or manner. This is a professional site for professional developers.
If you want to know how to do such things, you need to visit a hacking site: but be sure to disable all firewalls and antivirus products first or they won't trust you enough to tell you.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Don't listen to the others. The series of characters on the left represent the number 4. The series of characters on the right represent the number 2. When you put them together, you get the answer to life, the universe and everything.
That is already encrypted, what you need to do is to decrypt it. Which requires,
Encryption algorithm used.
Passphrase used; key.
Maybe, initialization vector too.
Then you can use any programming language to decrypt this string. If any of the above are not used correctly, there will be thousands or even more possible "wrong" answers to this puzzle. Consider reading about cryptography a bit.
Hello Everyone, I am new to C# and I really need help as I am writing a program for my Client so that he can use the Program to Login to his Database hosted in One.com. I do not know what's going on and what's wrong I have done. Please correct me:
Below is my Complete Source!
publicpartialclass Form1 : Form
MySqlConnection con = new MySqlConnection("Server=flightppl.com.mysql; Database=Removed;Uid=Removed;Pwd=Removed");
DataTable dt = new DataTable();
privatevoid Form1_Load(object sender, EventArgs e)
privatevoid button1_Click(object sender, EventArgs e)
MySqlCommand cmd = con.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from wp_users where user_login='" + textBox1.Text + "' and user_pass='" + textBox2.Text + "' ";
da = new MySqlDataAdapter(cmd);
i = Convert.ToInt32(dt.Rows.Count.ToString());
if (i == 0)
Form2 frm = new Form2();
Please advice me. Many thanks to all your contribution
I have edited your post to remove the sensitive information such as the uid and password. You should never post them on a public site.
What is happening when you run your code? We can't see what's going on so we'll need more information from you as to what, exactly, you are seeing. I would also point out that your code is wide open to a SQL Injection attack[^]. Change your query to use parameters[^] instead. Finally, I'm concerned that you appear to have a very weak password protection in place here. In order for your code to work, the password the user types must match the password that's stored in the database; there's a suggestion here that the password you have must be stored in clear in the database because you aren't using any techniques to convert the users password into the same format that's inside the database.
1. The connection string you are using is wrong - can't really help you here because these are the details for your server
2. The security at the server side is preventing your client from reaching the database. Again, we can't really help - you'll have to talk to the person who owns the database to see how they have their setup.
I'm creating an application in WPF that takes a raw Excel or csv data file from a customer and processes it into an order in the business system. I've done all the back-end coding and 95% of it is in T-SQL.
On the front-end, I want to import the file into a datagrid, so the user can see the raw data as it is exactly in the original file, before it goes off to be processed on SQL Server.
The customer Excel or csv files vary in format and structure, so they have varying columns with varying formats. That's handled by the back-end. I want to just display the raw data in WPF.
So, one customer has the date formatted as "7-Nov-16" which my import code is converting to "42675", but I want it to show as "7-Nov-16" in the WPF datagrid.
My code loops through the cells to get the value to build a data-table and the line that gets the cell value is:
I am trying to make a Contact Book, where i can have my contacts and conversations(+other activities related to them) in C# WPF.I am also trying to learn MVVM withg this.
I have 2 listboxes each bound to an observable collection populated from a database using LinqToSQL.
Listbox 1(ContactsLstBx) is displaying a list of contact names, and in Listbox 2(ConversationLstBx), i want to display the conversations i had with the selected contact in Listbox 1.
The problem is that i dont know how to get the Listbox 1 selectedItem.Id(the contact's id) so that i can use it in a query to select the conversations i had with the selected contact.
Also, any advice regarding what i am doing is highly appreciated.
publicclass ContactViewModel : ViewModelBase
public ObservableCollection<Contact> ContactList;
ContactList = new ObservableCollection<Contact>(cbdc.Contacts);
publicclass ConversationViewModel : ViewModelBase
public ObservableCollection<Conversation> ConversationList;
ConversationList = new ObservableCollection<Conversation>(cbdc.Conversations);
publicclass ViewModelBase: INotifyPropertyChanged
public ContactLinqToSQLClassesDataContext cbdc = new ContactLinqToSQLClassesDataContext();
publicevent PropertyChangedEventHandler PropertyChanged;
internalvoid RaisePropertyChanged(string propertyName)
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));