Click here to Skip to main content
15,310,880 members

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.