15,886,199 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by shelby67 (Top 36 by date)
shelby67
19-Aug-14 2:50am
View
I need to send a variable from javascript to the c# code behind now.
After that take that value and apply to listbox. This only does it in Javascript and I need to use the code behind
shelby67
10-Oct-13 23:26pm
View
Say I have this file path: C:\TestArea\TestFile.txt
The textbox should display the last portion of the file path rather than giving C:\TestArea high priority of being seen inside the textbox.
shelby67
13-Sep-13 15:58pm
View
...?
shelby67
13-Sep-13 15:47pm
View
How would you reword what you believe it is I'm asking? (seriously)
shelby67
13-Sep-13 2:28am
View
I assume you're going for a ToggleButton sort of thing? If so that can be done by using a bool value at class scope.
shelby67
13-Sep-13 2:26am
View
My guess would be Data Binding like Marvin said or use some of the TabControl built in events.
Documentation: http://msdn.microsoft.com/en-us/library/system.windows.controls.tabcontrol.aspx
My guess as for the events to use:
SelectionChanged
TabItem GotFocus event: http://msdn.microsoft.com/en-us/library/system.windows.controls.tabitem.aspx
Use a dialog (window that sets a property that is attached to it and validate the password. if the password is valid and the dialog result is OK then you can either a.) add the tabitem at runtime or b.) force focus off or away from the tab you want hidden.
I did something similar recently: http://www.codeproject.com/Tips/652862/Product-Key-Dialog
shelby67
13-Sep-13 2:13am
View
bool value?
shelby67
13-Sep-13 1:48am
View
If you try the above, yes it would be a bit challenging to impliment but would be really secure in my opinion.
shelby67
13-Sep-13 1:46am
View
This is just an idea but... cloud storage to keep a key file and use a url to access it. The file could be something like a windows batch file that compiles a c# code library in a special format at runtime. Options for encoding/encrypting both values and built runtime code, even automate the dll encryption. Theres a few offusicators(I cant spell) or tools to mix up compiled code that are open source. Either way I think you should look into two things if not a combination of the two:
1.) Compiling code at runtime
This to me means that even if someone gains access to your libraries, to make them work your library could need say.. a key from sql database that can only be ran when the app starts up and runs a batch file. To compile a library/app to then run and find a product key. With out the app being ran from the exe you made and being protected, The sql search could only be ran and return a key if your app isnt decompiled, internet is available, the app is to grab the key from sql query is running.
2.) Open source decompilers
shelby67
13-Sep-13 0:35am
View
Help each other out?
http://www.codeproject.com/Questions/652834/How-to-find-User-and-Host-from-an-email-address-st
shelby67
13-Sep-13 0:31am
View
Do you have access to files from other computers in the network group?
shelby67
6-Nov-12 20:28pm
View
Let's start with this...
Desktop or Browser based?
shelby67
2-Oct-12 22:51pm
View
I do not know where to begin as far as what to put in the foreach loops and so on.
shelby67
8-Jul-12 4:31am
View
NEEED HELP.
I don't think this has to do with the header file at all. I'm lead to believe this because if I open up a blank project and try to use an enum, I get the same error. And that's with out the header file.
shelby67
8-Jul-12 4:12am
View
[Redundant code removed -- SA]
shelby67
8-Jul-12 4:09am
View
still doesn't work. same error.
shelby67
6-Jul-12 2:25am
View
Book Options:
Sam's Teach Yourself C++ in 24 Hours ( http://www.amazon.com/Sams-Teach-Yourself-Hours-Edition/dp/0672315165 )
Ivor Horton's Beginning Visual C++ 2010 ( http://www.amazon.com/Ivor-Hortons-Beginning-Visual-Programmer/dp/0470500883 )
IDE options:
Dev C++ (old, outdated, and will never be updated, great for console, Win32 GUI)
Visual C++ 2010/2012 Express: (honestly the best out there, clean interface,needs some work on Intellisense features)
Turbo C++ 3.0 (really old school. 1993 release year. compatability issues)
CodeBlocks IDE (I avoid using this personally but others find it fine)
Here's my take on C++.
C++ is like a dumber version of C#/VB .Net. I have to use a different mind set when programming in C/C++ because you don't have as much documentation most of the time, lack of libraries and sometimes Intellisense in Visual Studio.
shelby67
5-Jul-12 16:09pm
View
I appreciate the link you gave me, but I can't seem to find a download for it. I'm under the assumption that I have ti download and import libraries into my project to get this to work.
shelby67
5-Jul-12 14:41pm
View
How do I read data between tags like:
<menu>
<item id="0">Item 0</item>
</menu>
I want to retrieve the text "Item 0" if i search for the tag id.
shelby67
4-Jul-12 11:55am
View
I changed the columns in my database and in my code. Instead of "Password" it's "Passw". same for the username. Did this to avoid issues and it still doesnt like it
shelby67
4-Jul-12 11:51am
View
tells me there's an error with the sql command syntax.
I've made the suggested changes to the following:
void SaveData()
{//do the real work here
string insertCMD = "INSERT INTO Users (Usern,[Passw],RegisterEmail) VALUES (@Usern,@Pwd,@RegisterEmail)";
string ConnStr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Sagitta\Documents\RS_Studio_User_Login.mdb";
using (OleDbConnection MyConn = new OleDbConnection(ConnStr))
{
try
{//insertCommand.Parameters.Add("Time", OleDbType.Char).Value = strTime;
MyConn.Open();
OleDbCommand Cmd = new OleDbCommand(insertCMD, MyConn);
Cmd.Parameters.Add("@Usern", OleDbType.Char).Value = textEdit1.Text;
Cmd.Parameters.Add("@Pwd", OleDbType.Char).Value = textEdit2.Text;
Cmd.Parameters.Add("@RegisterEmail", OleDbType.Char).Value = textEdit3.Text;
Cmd.ExecuteNonQuery();
MyConn.Close();
MessageBox.Show("User creation successful!");
this.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
and used "Passw" and "Usern" instead of "Username and "Password" in the database
shelby67
4-Jul-12 1:31am
View
Even with these changes it fails. No error message at all, nothing to show it failed.
shelby67
4-Jul-12 0:56am
View
Here's what I have so far:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.OleDb;
namespace RS_Studio
{
public partial class Register : DevExpress.XtraEditors.XtraForm
{
public Register()
{
InitializeComponent();
}
private void simpleButton2_Click(object sender, EventArgs e)
{//cancel button
this.Close();
}
private void simpleButton1_Click(object sender, EventArgs e)
{//submit
if (string.IsNullOrEmpty(textEdit1.Text) == false || string.IsNullOrEmpty(textEdit2.Text) == false || string.IsNullOrEmpty(textEdit3.Text) == false)
{
SaveData();
}
else
{
MessageBox.Show("Please fill out all of the information");
}
}
void SaveData()
{//do the real work here
string insertCMD = "INSERT INTO Users (Username,Password,RegisterEmail) VALUES (@Username,@Password,@RegisterEmail)";
string ConnStr = @"Provider=SQLOLEDB;Data Source=|DataDirectory|\RS_Studio_Login.mdb";
using (OleDbConnection MyConn = new OleDbConnection(ConnStr))
{
try
{//insertCommand.Parameters.Add("Time", OleDbType.Char).Value = strTime;
MyConn.Open();
OleDbCommand Cmd = new OleDbCommand(insertCMD, MyConn);
Cmd.Parameters.Add("@Username", OleDbType.Char).Value = textEdit1.Text;
Cmd.Parameters.Add("@Password", OleDbType.Char).Value = textEdit2.Text;
Cmd.Parameters.Add("@RegisterEmail", OleDbType.Char).Value = textEdit3.Text;
Cmd.ExecuteNonQuery();
MyConn.Close();
MessageBox.Show("User creation successful!");
this.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
}
and when the submit button is pressed it throws this exception:
"Invalid Authorization Specification"
shelby67
4-Jul-12 0:54am
View
Deleted
Here's what I have so far:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.OleDb;
namespace RS_Studio
{
public partial class Register : DevExpress.XtraEditors.XtraForm
{
public Register()
{
InitializeComponent();
}
private void simpleButton2_Click(object sender, EventArgs e)
{//cancel button
this.Close();
}
private void simpleButton1_Click(object sender, EventArgs e)
{//submit
if (string.IsNullOrEmpty(textEdit1.Text) == false || string.IsNullOrEmpty(textEdit2.Text) == false || string.IsNullOrEmpty(textEdit3.Text) == false)
{
SaveData();
}
else
{
MessageBox.Show("Please fill out all of the information");
}
}
void SaveData()
{//do the real work here
string insertCMD = "INSERT INTO Users (Username,Password,RegisterEmail) VALUES (@Username,@Password,@RegisterEmail)";
string ConnStr = @"Provider=SQLOLEDB;Data Source=|DataDirectory|\RS_Studio_Login.mdb";
using (OleDbConnection MyConn = new OleDbConnection(ConnStr))
{
try
{//insertCommand.Parameters.Add("Time", OleDbType.Char).Value = strTime;
MyConn.Open();
OleDbCommand Cmd = new OleDbCommand(insertCMD, MyConn);
Cmd.Parameters.Add("@Username", OleDbType.Char).Value = textEdit1.Text;
Cmd.Parameters.Add("@Password", OleDbType.Char).Value = textEdit2.Text;
Cmd.Parameters.Add("@RegisterEmail", OleDbType.Char).Value = textEdit3.Text;
Cmd.ExecuteNonQuery();
MyConn.Close();
MessageBox.Show("User creation successful!");
this.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
}
and when the submit button is pressed it throws this exception:
"Invalid Authorization Specification"
shelby67
3-Jul-12 23:49pm
View
Also, the code still failed. No errors/exceptions. Just simple runtime error. It won't insert still.
shelby67
3-Jul-12 23:47pm
View
Ok, so let me ask a few questions about your syntax so I can better understand this. Why did you use RegisterEmail rather than [RegisterEmail].
Also, how could I format this into the database.
shelby67
3-Jul-12 23:45pm
View
I found myself in your shoes a few years ago. Took an AP CompSci class in High school. Did pretty well in it, made the top 5 students. What I did was started to learn how C interacts with the OS and built a compiler. I like to challenge myself into making devices work together and different OS's. Doing that will present new challenges, and you may get to do some Network programming. I also took up some freelance jobs and made some cash from that.
shelby67
3-Jul-12 23:36pm
View
yes, runtime no errors.
shelby67
12-May-12 15:11pm
View
Reason for my vote of 4
Very insightful.
shelby67
15-Feb-12 11:55am
View
My guess is that the reason this is happenin is because if it has to stretch the image its constantly remapping it then resizing it. If its a static size then theres none of that.
shelby67
14-Feb-12 22:50pm
View
I will try that in a moment, I really appreciate your reply!
shelby67
14-Feb-12 20:35pm
View
Everything that has been mentioned i have tried. Same error.
shelby67
14-Feb-12 16:15pm
View
even if I delete the third value and fix it to what you mentioned, still fails. The error is "Invalid Syntax in INSERT INTO command".
shelby67
14-Feb-12 16:15pm
View
as for the @ symbol, i got that off the web.
shelby67
14-Feb-12 16:14pm
View
1.) I'm checking to make sure the Password matches the other Password TextBox, (textbox2, textbox3). then the last part im checking to see if textbox1 is not empty, i dont want to insert nothing into the database..
shelby67
14-Feb-12 16:05pm
View
I'm using WPF, not sure if it really helps to know that but...
Show More