I am doing this in my own computer, and i will make a copy of this application on my children's PC, the purpose of this software is to encourage them to gain knowledge. The main problem, is that i don't know how to make my program on top of everything , and make the user unable to get rid of it , until solving the question
Sabry1905
Posts
-
Lock the Computer -
Lock the ComputerWhat is wrong ?
-
Lock the ComputerI don't
-
Lock the ComputerHi all, I am trying to make a program that locks the computer every 1 hour, and display a window to the user, this should have a question , and textbox to answer the question. I don't how to do this exactly, i tried to make a code to change the password of the user to be the answer of some question and the password hint to be the question, but i failed. I don't know if this method works or not, if you can help me to do this, then i am grateful However, if you know any other techniques to do this, please suggest
-
Storing and retrieving objects inside databseThanks, i solved the issue, my error was that i was trying to serialize an object of type DataGridViewRowCollection which is not marked as a Serializable object, i made my custom class which marked as Serializable, i had stored all the data in the DataGridViewRowCollection in that class, now everything is OK thanks again,
-
Storing and retrieving objects inside databseplease send the link
-
Storing and retrieving objects inside databseHi i want to store and retrieve objects of any kind to SQL server database, i did the following, inside the database table, i had created a field of type varbinary(MAX), and in the code, i had made the following to store the object
object treatment = dataGridViewDrugList.Rows;
MemoryStream memStream = new MemoryStream();
StreamWriter sw = new StreamWriter(memStream);
sw.Write(treatment);
dataRow[0] = memStream.GetBuffer();and it was successful, now i am not able to retrieve the object back any ideas?
-
adding lables to ListBoxHello All i am trying to add label controls into a listbox control in the runtime i am using this code private void button1_Click(object sender, EventArgs e) { Label l = new Label(); l.AutoSize = true; l.Font=listBox1.Font; Random R=new Random(); int r=R.Next(0,255); int g=R.Next(0,255); int b=R.Next(0,255); l.ForeColor = Color.FromArgb(r, g, b); l.TextAlign = ContentAlignment.MiddleCenter; l.Text = "Experement"; listBox1.Items.Add(l); label1.Text = listBox1.Items.Count.ToString(); listBox1.Invalidate(); } i think it have no problems, but i cant see anything added to the listbox items. any help?
-
ADOX problemhello all i am trying to serialize an access database into xml file then recreate the database again from the xml file, i ma using "Microsoft ADO Ext. 2.8 for DDL and Security" here is a sample code of recreating the database from the xml file. DS2 = new DataSet(); DS2.ReadXml(Application.StartupPath + @"\DataSet.xml"); DataTable temp = DS2.Tables[0]; string strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Application.StartupPath+@"\DataSet.mdb"; ADOX.CatalogClass cat = new CatalogClass(); cat.Create(strConn + "; Jet OLEDB:Engine Type = 5"); cat.Tables.Append((Object)temp); cat=null; but i got a com exception says "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another". can anyone help?
-
Adding Web Refrence at runtimesorry i can't understand this, please give me a link for an example or article
-
Adding Web Refrence at runtimeHello All I have a group of applications that working on a LAN and there was another application -reporting tool- that may use the databases of all other applications through web services -each application provide a web service to give access to its database-, and this is working good, the problem is that I had to make a new build for the reporting tool each time a new application added to the group, this is absolutely not happening every day, but I was think in an optimized solution, which I think is to make the reporting tool call the IIS in every machine on the network to get the web services that is available, and then provide the admin by a list of the web services then prompt him to add reference to the web services that he wish to connect with, this means that I should add web references at the runtime. I don’t know if I can call the IIS to do that, or if I can add web references at runtime, but I thought on the problem as a logic which I don’t know if it can be done or not. my question is, is this can be done?, and how to do it?
-
Sending commands and infotmation to a web pagei dont understand that using a desktop application
-
Sending commands and infotmation to a web pageHello all i have a web application that runs on the internal network, i want to access it through a desktop application, i want to fill in data in text fields and simulate button clicks, and even i want to access the "view source command" through my desktop application, i had search the internet and found that may i use BHO for IE, but i couldn't able to find a simple example that fit my needs, please help.
-
Window Service Problemsit is most like the same procedures i had did
-
Window Service ProblemsHello all i ma trying to learn how to program a windows service application i had add an event log and a timer that used to write to file here is the code protected override void OnStart(string[] args) { eventLog1.WriteEntry("In OnStart"); timer1.Start(); } protected override void OnStop() { eventLog1.WriteEntry("In onStop"); timer1.Stop(); } protected override void OnContinue() { eventLog1.WriteEntry("In OnContinue"); timer1.Start(); } FileStream fs; StreamWriter sw; private void timer1_Tick(object sender, EventArgs e) { fs = new FileStream(@"C:\tem.txt", FileMode.OpenOrCreate, FileAccess.Write); sw = new StreamWriter(fs); sw.BaseStream.Seek(0, SeekOrigin.End); sw.WriteLine(DateTime.Now.ToString()); sw.Flush(); sw.Close(); } and i had added an installer to install the windows service, i followed the instructions that is in the MSDN http://msdn.microsoft.com/en-us/library/zt39148a(VS.80).aspx first it works and installed but when i tried to run it from the windows management console it run and ends immediatly and i got a message telling me that some services closed coze it is not doing anything when i tried to make a new installation package, and reninstall the service, the installation package failed to install the service and give me 2 messages the first one saying that source of the service is on the local machine and finally i got a meesage that the installation is interupted and ended not successfuly plz help to resolve that.....
-
run SQL server scripts from inside a C# codei had sent you the script through mail, yes the script lie on the C:\ partition
-
run SQL server scripts from inside a C# codei have an issue in running my script for each line in the script i got this a message like this Started Process --> Sqlcmd: ')': Invalid filename. Finnished Process ---> output: !!!
-
run SQL server scripts from inside a C# codeThanks Harvey, this is exactly what i was looking for.
-
run SQL server scripts from inside a C# codeHello All i am wondering how to call a batch of SQL server scripts from inside a C# code Thanx for your help
-
run SQL server scripts from inside a C# codeHello All i am wondering how to call a batch of SQL server scripts from inside a C# code Thanx for your help