15,895,799 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 Nguyen.H.H.Dang (Top 24 by date)
Nguyen.H.H.Dang
10-Oct-14 2:18am
View
Its just an example of how you can align 1 control on to another.
The "label" and "panel" can be any kind of controls. If you wanna a better answer, please improve your question, no one can understand it now.
Nguyen.H.H.Dang
9-Oct-14 0:16am
View
Deleted
I don't get what you mean too.
But, i guess you have a "subtitle" control, (exp, a label) and wanna align it on another control (exp, a panel) ? You have label's width and panel's width right ? Just do a little math to adjust label's X location and problem solved.
Exp : label's width is lW, panel's width is pW => new label's Location(X) = ((lW+pW)/2) - lW
Nguyen.H.H.Dang
8-Oct-14 4:32am
View
English is not my mother language too, but please, at least show your friend or your teacher or your co-worker to make sure anyone can understand the question before posting it.
Nguyen.H.H.Dang
22-Sep-14 0:44am
View
If you look for how to develop a Project Management Application, it depends on how you management your project. So, i recommend you use Gantt Chart (you can google about it or view some example software like this link
http://www.smartsheet.com/gantt-chart-software
[
^
])
Nguyen.H.H.Dang
13-Aug-14 5:21am
View
"user allow only particular file other system should be disabled" -> can you give me an example for this ? "user only can view some type of file" is what you mean ?
Nguyen.H.H.Dang
30-Jul-14 9:14am
View
Thanks for the solution :D
Nguyen.H.H.Dang
28-Jul-14 10:06am
View
Base on my current application (developed on WinForm and .NET 4.0), this is a list of features :
1. Text Communication : User can chat (send text) to another Users (i treat one to one chat the same as Group chat - cause i think its just a "group" of 2 users)
2. File share : User can send file to others, but i have a problem with large size file
3. When login on, the main "Form" is showing all online Users (just like Skype)
4. I checked who is online or prevent same user login in 2 PC by : about 1 minute, if server doesnt receive any signal from client, that client will be kick out
5. I'm prospecting about 100-500 users
But at now, i realize there are many problems in my code. Its so hard to maintenence and add more features. So i wanna re-write it, but have no idea about how to do it by a proper way.
And yes, by your suggestion, i wanna make 1 version to run on Mobile.
Can you show me how to do that ? Or any reference source is OK (like some of classe diagrams)
Nguyen.H.H.Dang
28-Jul-14 7:38am
View
Thanks for replying :D
Its a Desktop Application, can you give me some advises ?
Nguyen.H.H.Dang
28-Jul-14 5:26am
View
Thanks for replying !
I have done the application before, but my code is hard to maintenance and upgrade and without an architect. So, i wanna re-write the application, and wanna learn how to do it the right way. Googled about it, and found some free sources using those 2 patterns.
May be i made a beginner's mistake when trying to "implement a pattern". But, can you give me some advise about where should i begin ?
Thanks again for reading, and sorry for my bad English.
Nguyen.H.H.Dang
14-Jul-14 21:29pm
View
CodeProject - For those who code, not for a lazy look for someone to code something for him
Nguyen.H.H.Dang
10-Jul-14 4:27am
View
My solution just like Solution 1 and Solution 2 here, read and think about it please.
Nguyen.H.H.Dang
9-Jul-14 22:59pm
View
XML parsing is very easy, please Google it with some keywords like "c# mvc 4 XML"
Nguyen.H.H.Dang
7-Jul-14 22:35pm
View
May i ask you why you don't wanna use MAC address ?
Nguyen.H.H.Dang
4-Jul-14 0:51am
View
Debug it, make a checkpoint at the print method, and determine if this method is called 5 times or not
Nguyen.H.H.Dang
4-Jul-14 0:04am
View
Yes, it possible, but ERP system is very big, i cannot answer you WHAT to do to because even you don't know what you NEED to do :|
Nguyen.H.H.Dang
3-Jul-14 5:16am
View
Eer... may be an impolite question, but do you know how to debug your code ?
Nguyen.H.H.Dang
2-Jul-14 3:54am
View
I'm not good at using WinAPI, but do you know how to detect if ActiveWindow's Bound is intersect with ApplicationWindow ? My idea is, check if Active window is ON (intersect with) application window, if TRUE get the active window location, calculate if that location is ON application window's textbox (sth like point to client). If TRUE, get screen shot.
Nguyen.H.H.Dang
2-Jul-14 2:05am
View
You wanna take a Screen Capture of Active Window, right ? I think drag drop event cannot do this. So, if you can find how to detect if user MOVE active window TO your textbox, you can screen shot that window.
P/s: i think, capture a window's screen shot is an easy task, the hard part is determine WHEN to do that.
Sorry about the confusing, English is not my mother language :(
Nguyen.H.H.Dang
2-Jul-14 1:03am
View
I think you must find which is Active Windows, then determine if that active windows is overlapping which your textbox
Nguyen.H.H.Dang
1-Jul-14 23:20pm
View
I dont like using foreach loop too, but if you really wanna use it, and textbox has more than 2 lines, this solution is good enough : (FONT = Courier New)
richTextBoxColumns.Text = " 1 2 3 4 5\r\n";
richTextBoxColumns.Text += "12345678901234567890123456789012345678901234567890\r\n";
richTextBoxColumns.Text += "12345678901234567890123456789012345678901234567890\r\n";
richTextBoxColumns.Text += "12345678901234567890123456789012345678901234567890\r\n";
int pos = 19;
int length = 0;
foreach (var line in richTextBoxColumns.Lines)
{
richTextBoxColumns.Select(length + pos, 1);
richTextBoxColumns.SelectionBackColor = Color.Yellow;
richTextBoxColumns.SelectionColor = Color.Red;
length += line.Length + 1;
}
Nguyen.H.H.Dang
1-Jul-14 22:52pm
View
@George Jonsson: I think the best way to let him know how to do things is show him what's wrong. That's how i learned programming too :)
About my solution, if he know what is wrong, he will know how to solve it :)
Nguyen.H.H.Dang
1-Jul-14 21:13pm
View
The easiest way is looping.
You have DataTable A and DataTable B, right ?
First, declare a result DataTable C
So, just loop row by row, compare A's rows with B's rows, if match, add that row to C. If not match, add a row with 0 value to C.
Done !!! :)
Nguyen.H.H.Dang
1-Jul-14 0:32am
View
It base on "how you save your old Data".
Example, if you can save your Data first, then after do something like change value, remove space ..v..v... you can revert back to your old Value.
save your value first -> [remove space,remove special symbol] -> (if need) restore old Value
Nguyen.H.H.Dang
30-Jun-14 21:25pm
View
What do you mean in "select multiple canvas" ? Please provide more information.
Show More