15,919,028 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 User_Michel (Top 21 by date)
User_Michel
10-Nov-21 1:06am
View
Ok, thank you. i did not reach for anything. thank you again.
User_Michel
19-Oct-21 3:14am
View
After thanks to everyone who helps and provides solutions..
I can't believe this.. all these genius members and I didn't find a matching solution to this question?
Bye..
User_Michel
18-Oct-21 13:06pm
View
Thank you for your replying. i think this need to tabControl, but my project is different Design a little and simple than this article. look to ex.:
https://i.postimg.cc/jq7Ks3CW/1.jpg
User_Michel
18-Oct-21 13:05pm
View
Deleted
Thank you for your replying. i think this need to tabControl, but my project is different Design a little and simple than this article. look to ex.:
[url=https://postimages.org/][img]https://i.postimg.cc/jq7Ks3CW/1.jpg[/img][/url]
User_Michel
18-Oct-21 13:05pm
View
Deleted
Thank you for your replying. i think this need to tabControl, but my project is different Design a little and simple than this article. look to ex.:
[url=https://postimg.cc/9zCsbpdV][img]https://i.postimg.cc/9zCsbpdV/1.jpg[/img][/url]
User_Michel
23-May-21 14:20pm
View
I am talk about FormClosing code (many days) not your reply, because i do not understand it. and i know this is my problem.
A general advice, the answers must be depend on who asking, if he beginner or advanced..
User_Michel
23-May-21 13:48pm
View
Ok. i tried many times, and if i can doing it with my self, i did not ask here. now i gave up. thank you again.
User_Michel
23-May-21 12:47pm
View
where i put this code? Complete it Please..
User_Michel
23-May-21 12:36pm
View
Thanks for your reply, can you give me an example code? sorry, i am beginner.
User_Michel
22-May-21 5:04am
View
Thank you, but Form1 must be like Main form. i think this is not the problem in this case.
User_Michel
15-Apr-21 10:19am
View
Visual C# 2015.
Ok. really thank you again for all answers...
User_Michel
15-Apr-21 8:56am
View
Button must be not enable if all checkboxes unchecked not one.
Sorry! what is (cb) in your code (c is CheckBox cb)? it show error..
User_Michel
15-Apr-21 7:58am
View
Yes. All CheckBoxes and button in the same Panel.
User_Michel
15-Apr-21 7:17am
View
1) Yes. when unchecked one and other checked, the button not enable. but it must be enable as long as other checked.
2) Yes. but not all like this case.
User_Michel
15-Apr-21 6:25am
View
Thank you for your answer. but in all cases when unchecked one of CheckBoxes, the button become not enable. despite of another CheckBokes still checked!
and about second question, can you give me an example to do that?
User_Michel
13-Apr-21 3:07am
View
Thank you a lot. Then what about Windows Activation? it take time also, and that is the code:
public static bool IsWindowsActivated()
{
ManagementScope scope = new ManagementScope(@"\\" + System.Environment.MachineName + @"\root\cimv2");
scope.Connect();
SelectQuery searchQuery = new SelectQuery("SELECT * FROM SoftwareLicensingProduct WHERE ApplicationID = '55c92734-d682-4d71-983e-d6ec3f16059f' and LicenseStatus = 1");
ManagementObjectSearcher searcherObj = new ManagementObjectSearcher(scope, searchQuery);
using (ManagementObjectCollection obj = searcherObj.Get())
{
return obj.Count > 0;
}
}
User_Michel
12-Apr-21 19:02pm
View
When open Form2 it take time to show. and that is what in Form2 Load:
labelMemory.Text = GetPhysicalMemory();
public static string GetPhysicalMemory()
{
ManagementScope oMs = new ManagementScope();
ObjectQuery oQuery = new ObjectQuery("SELECT Capacity FROM Win32_PhysicalMemory");
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMs, oQuery);
ManagementObjectCollection oCollection = oSearcher.Get();
long MemSize = 0;
long mCap = 0;
foreach (ManagementObject obj in oCollection)
{
mCap = Convert.ToInt64(obj["Capacity"]);
MemSize += mCap;
}
MemSize = (MemSize / 1024 / 1024) / 1024;
return MemSize.ToString() + " GB";
}
User_Michel
12-Apr-21 16:51pm
View
Thank you, but unfortunately all this did not help me.
User_Michel
26-Mar-21 9:07am
View
Really Thank you for your solution, it helped me except changing [INNER JOIN emp_job] to [INNER JOIN jobs].
The design in this project like this, because it must be one manager for each department. but your opinion is right in case if manager changed, so i will try to do your first advice. thanks alot again.
User_Michel
25-Mar-21 15:22pm
View
Thank you for your solution. i will learn it because i am beginner in SQL, but in this case what is the query, emp and mgr in one table?
User_Michel
19-Mar-21 5:27am
View
Simply, i want every employee take a code depend on his department in company, like HR_001, HR_002... or Sls_001, Sls_002... all this in one column (emp_Code) from department abbreviation name (dept_ShortName) and add one number (+1) each new employee.
Show More