That still wont work. According to MSDN, a serialized stream will NOT deserialize in any program except the one that serialized it. Maybe of your new program has the same assembly name and such it may work.
I searched for days for this answer until I came scross that on MSDN.
Does anyone know how to make DebugView from SysInternals "work"? I am trying to write a C# program in .NET 2003 and to print 2 lines:
System.Diagnostics.Debug.WriteLine("I am debugging");
System.Diagnostics.Trace.WriteLine("I am Tracing");
I start dbgview.exe, run my program, and I do not see those comments (I checked that I am in debug mode). I have seen references to some kind of TraceListener, but I don't know what that is or where to set it up.
If anyone knows what I'm talking about, could you please link me to some pertinent info? My quick search on google didn't give me anything.
//Create the variables and arrays need only for Creating the table<br />
string skills = new string;<br />
skills = "attack";<br />
//skills = "strength";<br />//skills = "defence";<br />
//The creation of the table that shows the user their stats from the database<br />//Dynamic Creation of the datatable<br />
///Also sets up the new datatable<br/>DataTable dtshowskills = new DataTable("USkills");<br />
DataColumn userSkill = new DataColumn("Skill");<br />
DataColumn userLevel = new DataColumn("Level");<br />
foreach (string skill in skills)<br />
DataRow drskill = dtshowskills.NewRow();<br />
drskill["userSkill"] = skill;<br />
drskill["userLevel"] = 0;<br />
dgSkills.DataSource = dtshowskills;<br />
//This is on my actual web page<br />
<asp:DataGrid ID="dgSkills" Runat="server" />
I don't understand DataTables, and I am going to do some reading up on them, but for now, someone please help me. I had help on most of it a while ago, any help is appricated.
I brought this up a few days ago. However, I have yet to find a solution that fits my needs. I need a textbox to display : "00:00:00" for hours minutes and seconds. I need this format to be "locked." Therefore, not allowing the user to change the format. Each colon would be static. Any help would be much appreciated. Thanks
How can I remove all new lines from some text typed by the user in a multiline TextBox? He must enter some long text, so I want it wrapped in several lines, but if he presses Enter (or Ctrl+Enter), I want to remove the new line at the end.
I could go searching the string for all Environment.NewLine (or '\n' and '\r') but I would think there's a more efficient way.