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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
C

C Sharp Mage

@C Sharp Mage
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HashTable getting null between requests
    C C Sharp Mage

    well, thank you for the tip i think i will just keep looking into it The Mage

    ASP.NET csharp asp-net question

  • HashTable getting null between requests
    C C Sharp Mage

    well i did make its static and still not working i am still getting a null hash the viewstate is a good idea (performance wise) since it doesn't chew server resources but would you mind if you give me example? my example is public abstract class class1 { public Hashtable htable; public class1{ htable = new Hashtable(); } public virtual void theOperation(int operationType,ListBox theControl,string filterPair){} } public class class2 : class1 { public override void theOperation(int operationType,ListBox theControl,string textPair) { thePairList.Add(key,value); // where/how can i do the viewstate??? } Thank you The Mage

    ASP.NET csharp asp-net question

  • HashTable getting null between requests
    C C Sharp Mage

    Hello guys, here is what i am trying to do, i have a hashtable in a class that contains regular pairs(key,value) when i click an "Add" button i fill the hashtable, so life is good however when i try to search in the same hashtable after i fill it out , i click on a "Search" button this is where i loose the hashtable content. is there a way to keep the hashtable between page requests? i am using ASP.net 1.1 and IIS6.0 Thank you for the fast response in advance The Mage

    ASP.NET csharp asp-net question

  • Delegates and Threading Question
    C C Sharp Mage

    well, thank you for the reply, i got it already :) it was the wrong approach from the begining and i fixed it thanks for all the help anyway :)

    C# graphics help question announcement

  • Delegates and Threading Question
    C C Sharp Mage

    Hello guys, i am having a problem using Delegates, now i am working on an application where i have a label on a form and then i have a separate class in separate CS file (ie., Form1.cs and myClass.cs) what i am trying to do : i wanted to update label1.Text every tick of a timer with the format 00:00 next tick 00:01, then next tick 00:02 and so on so in my Class there is a timer(System.Timers.Timer/System.Threading.Timer/System.Windows.Forms.Timer) and i am trying to update the label1 in form1 using the following : Form1 : ----------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void setlabeltext(Label lbl, String strValue) { lbl.Text = strValue; } private void Form1_Load(object sender, EventArgs e) { Class1 myClass = new Class1(); myClass.startCall(); } } } myClass: -------------- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Timers = System.Windows.Forms.Timer; namespace WindowsApplication2 { class Class1 { Form1 form1 = new Form1(); Timers timoz = new Timers(); public void timoz_Tick(object sender, EventArgs e) { ThreadSafeSetLable(form1.label1, DateTime.Now.Subtract(DateTime.Now).ToString()); } private void ThreadSafeSetLable(Label lbl, string value) { if (form1.InvokeRequired) { form1.Invoke(new SetString(form1.setlabeltext), new object[] { lbl, value }); } else { form1.setlabeltext(lbl, value); } } private delegate void SetString(Label txtBox, string strValue); public void startCall() { timoz.Interval = 1000; timoz.Start(); timoz.Tick += new EventHandler(timoz_Tick); } } } this is not working i dont know why , it compiles no problem , in the debugging the label1.text is changing to 00:00:00 but runtime i dont see that , plus the

    C# graphics help question announcement

  • Splash Screen
    C C Sharp Mage

    you can use the below technique, i used it for my project and tweaked it a bit to fit my needs happy coding :) http://www.codeproject.com/useritems/ASPNETAJAXPageLoader.asp[^] Tamer A.Rahman Software Developer (MCPD)

    ASP.NET csharp javascript asp-net tutorial

  • How to Obtain system information using client side script
    C C Sharp Mage

    Hello, i am working on a project that requires users to goto a certain web page and this web page will display their system specs i can do that using ASP.net / WMI, however that will give me the specs for the server, what i really need actaully is the specs for the client (ex. OS, Physical Memory, computerName, etc.) is there a way to do that without doing ActiveX approach? any ideas thank you :) Tamer A. Rahman Software Devloper (MCPD) Using Java,C# and ASP.net

    ASP.NET csharp java asp-net com sysadmin
  • Login

  • Don't have an account? Register

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