Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Sabry1905

@Sabry1905
About
Posts
125
Topics
72
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Lock the Computer
    S Sabry1905

    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

    C#

  • Lock the Computer
    S Sabry1905

    What is wrong ?

    C#

  • Lock the Computer
    S Sabry1905

    I don't

    C#

  • Lock the Computer
    S Sabry1905

    Hi 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

    C#

  • Storing and retrieving objects inside databse
    S Sabry1905

    Thanks, 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,

    C# database sql-server sysadmin question

  • Storing and retrieving objects inside databse
    S Sabry1905

    please send the link

    C# database sql-server sysadmin question

  • Storing and retrieving objects inside databse
    S Sabry1905

    Hi 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?

    C# database sql-server sysadmin question

  • adding lables to ListBox
    S Sabry1905

    Hello 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?

    C# help question lounge

  • ADOX problem
    S Sabry1905

    hello 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?

    C# help database com security xml

  • Adding Web Refrence at runtime
    S Sabry1905

    sorry i can't understand this, please give me a link for an example or article

    C# question database wcf sysadmin windows-admin

  • Adding Web Refrence at runtime
    S Sabry1905

    Hello 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?

    C# question database wcf sysadmin windows-admin

  • Sending commands and infotmation to a web page
    S Sabry1905

    i dont understand that using a desktop application

    C# sysadmin help tutorial

  • Sending commands and infotmation to a web page
    S Sabry1905

    Hello 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.

    C# sysadmin help tutorial

  • Window Service Problems
    S Sabry1905

    it is most like the same procedures i had did

    C# com help tutorial

  • Window Service Problems
    S Sabry1905

    Hello 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.....

    C# com help tutorial

  • run SQL server scripts from inside a C# code
    S Sabry1905

    i had sent you the script through mail, yes the script lie on the C:\ partition

    C# csharp database sql-server sysadmin help

  • run SQL server scripts from inside a C# code
    S Sabry1905

    i 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: !!!

    C# csharp database sql-server sysadmin help

  • run SQL server scripts from inside a C# code
    S Sabry1905

    Thanks Harvey, this is exactly what i was looking for.

    C# csharp database sql-server sysadmin help

  • run SQL server scripts from inside a C# code
    S Sabry1905

    Hello All i am wondering how to call a batch of SQL server scripts from inside a C# code Thanx for your help

    C# csharp database sql-server sysadmin help

  • run SQL server scripts from inside a C# code
    S Sabry1905

    Hello All i am wondering how to call a batch of SQL server scripts from inside a C# code Thanx for your help

    Database csharp database sql-server sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups