15,903,033 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 xuyunhai (Top 56 by date)
xuyunhai
14-Jun-16 1:27am
View
you can try to invoke TempPath method,return correct path.
xuyunhai
13-Jun-16 3:13am
View
I mean in vs2010,i key F5 to run project
xuyunhai
13-Jun-16 1:14am
View
i tried,but failed,question always exist.
xuyunhai
12-Jun-16 23:09pm
View
after i new A(),and when leave init function,i use delete A to dispose it.
xuyunhai
12-Jun-16 23:04pm
View
Deleted
? can't catch your idea
xuyunhai
12-Jun-16 22:56pm
View
why use vs2010 debug modal is ok,but complie exe and double click will post error?
xuyunhai
12-Jun-16 22:55pm
View
no, a must exist,because after new A(),i use many functions in A class.
xuyunhai
12-Jun-16 22:47pm
View
i'm sure it must in unmanaged part,because init function i used serveral months.
xuyunhai
12-Jun-16 22:46pm
View
i'm not destruct A* a,just to find question,so add messagebox to popup "333333",but it cann't popup "333333",so i'm very confuse and cann't find question.
xuyunhai
26-May-16 2:57am
View
but i'm confuse,why fopen in vc6 tool can read character but not file path
xuyunhai
11-Jan-16 3:51am
View
int itemp = (int)recbuf;
char *temp = 0;
itoa(itemp,temp,16);
recbuf is unsigned char array,why i can't normal run and throw exception?
thanks.
xuyunhai
16-Sep-15 4:30am
View
i tried it, it not achive my purpose.
if the change the component to textbox,the click will valid。
but my require is use maskedtextbox component,so how can i solve this question?
xuyunhai
24-May-15 22:37pm
View
Actually,i don't care if the application is mdi or not,i only want let three child forms activation state mutual exclusion,how to achieve this function?
xuyunhai
13-Apr-15 21:50pm
View
I setted the HotkeyPrefix's value,finded it's value in designer.cs file.
it works normal.
so the question is why the HotkeyPrefix show unnormal?
xuyunhai
13-Apr-15 3:24am
View
I use my custom menuitem, and just set the shortcutkeys property as usually,but it dosn't work.
xuyunhai
13-Apr-15 2:54am
View
the property Shortcutkeys doesn't work. it's invalid property
xuyunhai
25-Mar-15 21:09pm
View
I improved my question. thanks for your answer.
xuyunhai
25-Mar-15 21:04pm
View
Isn't exist CreateGraphics() method In ToolStripMenuItem Class
xuyunhai
20-Mar-15 5:16am
View
?
xuyunhai
15-Feb-15 22:11pm
View
How to define the savedialog as windows 2000 style,not windows xp or others.
xuyunhai
2-Feb-15 3:42am
View
I designed TextBox by myself,contains many functions,so i want to add textbox control into toolstrip.
xuyunhai
30-Jan-15 1:24am
View
i improved my question,thanks for answer.
xuyunhai
1-Dec-14 9:03am
View
so ,can you give me a demo about send the message:Ctrl+Shift+F9?
xuyunhai
28-Sep-13 21:53pm
View
tanks for
1. By the code given, the two parameter must be defined somewhere, in your case, are they defined in class.
xuyunhai
28-Sep-13 20:58pm
View
1. the GetWindowRect is Mircosoft API,i couldn't change the parameter.
2. even if i write a function with no parameter to call the GetWindowRect,but the GetWindowRect API is based on GUI thread,so when i run the it,will throw error.
3.maybe i don't need to monitor windows size continuously,just once.
xuyunhai
28-Sep-13 20:47pm
View
Unable have the ability to solve problems?
or just use mouth to solve the question ?
xuyunhai
28-Sep-13 11:14am
View
Unable have the ability to solve problems, still to belittle others, belittle problem
xuyunhai
28-Sep-13 11:12am
View
Unable have the ability to solve problems, still to belittle others, belittle problem
xuyunhai
28-Sep-13 11:07am
View
that's funny,just a question
xuyunhai
28-Sep-13 11:06am
View
maybe you can't solve,i just ask a question,if you can find a book that can solve this question,i will read 1000 times.
xuyunhai
28-Sep-13 11:03am
View
i just ask a question
xuyunhai
28-Sep-13 10:50am
View
i update the question,try to descripe clearly.
thanks to read again.
xuyunhai
28-Sep-13 10:34am
View
maybe the question to you is very simple,but i search in google,but couldn't slove,so ask the quesion in here.
xuyunhai
28-Sep-13 10:30am
View
the question importance is not at define hWnd and lpRect,
i just give a demo.
the API GetWindowRect must based on GUI thread,but backgroundworker is another thread not based on GUI thread.
how can solve this quetion,you can try it,and take sure your code can compilation right.
xuyunhai
28-Sep-13 9:49am
View
<pre lang="c#">
[DllImport("user32.dll")]
private static extern int GetWindowRect(int hwnd, ref Rect lpRect);
private void bgw_DoWork(object sender, DoWorkEventArgs e)
{
while (bgw.WorkerSupportsCancellation)
{
GetWindowRect(hWnd,ref lpRect);
}
}
</pre>
produces compilation error.
you can test above code demo.
xuyunhai
28-Sep-13 8:48am
View
no,can't solve this question.
xuyunhai
28-Sep-13 6:18am
View
System.Windows.Forms.Control.Invoke()
seem have only two overload method.
one is none params,the other is explicitly pack them into an array.
http://msdn.microsoft.com/zh-cn/library/system.windows.forms.control.invoke(v=vs.85).aspx
xuyunhai
27-Sep-13 6:00am
View
I updated my question,thanks to read again.
xuyunhai
27-Sep-13 6:00am
View
I updated my question,thanks to read again.
xuyunhai
27-Sep-13 5:07am
View
what?do not understand my meaning?
xuyunhai
17-Sep-13 11:30am
View
the question isn't simple like search C#+auto+login+website can solve,at least i found but can't solve.
xuyunhai
17-Sep-13 11:05am
View
so how can i auto to login? (i don't want to use webBrowser)
xuyunhai
26-Jul-13 3:11am
View
I finally understand
,i can improve question,modify my post,but not post via "Add your solution here"(non-answers as "solution"),i used did this.it's my mistake. thanks for your remind.
English is not my mother language,I am trying to improve!
xuyunhai
26-Jul-13 2:51am
View
i understand,not only accept solution,but also post via "Add your solution here"。
xuyunhai
26-Jul-13 2:47am
View
yeah,you're right,i had seen the msdn.
but i mean's how to get the mouse x and y coordinates in the client.
maybe i didn't explain very well.
xuyunhai
26-Jul-13 2:41am
View
i don't think so,
when i want to single click somewhere,
i can set the position by the forth parameter.
xuyunhai
26-Jul-13 2:35am
View
you mean's that i could not modify my post,only way is improve quetion?
xuyunhai
5-Jul-13 23:07pm
View
I use c# code to get menu handle,and then use SPY++ tool to get the same,so i'm sure it correct.
what can i do now,use command ID to get menuitem state? how can i get the command ID?
xuyunhai
5-Jul-13 22:36pm
View
I will try it with the command ID,but maybe it's another way to get menuItem state,logically speaking,either will do!
but how can i get the command ID?
xuyunhai
25-Jun-13 9:13am
View
it's ok now,thank you very much,thank you!
xuyunhai
25-Jun-13 8:38am
View
brother,can't download "Download sample demo - 44.7 KB",maybe the url is denied
xuyunhai
24-Jun-13 9:46am
View
i usually write program by c# ,but i can read vb program,you can give me demo and wrap it to dll,thanks!
xuyunhai
24-Jun-13 9:42am
View
no,i don't mean that,i want to prevent other process closed by closed button.
xuyunhai
24-Jun-13 9:17am
View
yes,windows form
xuyunhai
1-May-13 3:08am
View
you can download a tool named bus hound.and choose the "Device" page.
this page contains treeview component.
you can test to select the treeItem use my code.then you will find the problem.
xuyunhai
25-Apr-13 9:53am
View
but just these code to select the treeItem.
you can download a tool named bus hound.and choose the "Device" page.
this page contains treeview component.
you can test to select the treeItem use my code.then you will find the problem.
Show More