Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
Questiondatagridview currentcell Pin
arkiboys9-May-07 0:16
arkiboys9-May-07 0:16 
Questionstartbutton and richtextbox in c# Pin
lavy28838-May-07 23:42
lavy28838-May-07 23:42 
AnswerRe: startbutton and richtextbox in c# Pin
Luka Grabarevic9-May-07 0:38
Luka Grabarevic9-May-07 0:38 
GeneralRe: startbutton and richtextbox in c# Pin
lavy28839-May-07 1:53
lavy28839-May-07 1:53 
QuestionXML Serialize Hashtable.. Pin
nasambur8-May-07 23:18
nasambur8-May-07 23:18 
AnswerRe: XML Serialize Hashtable.. Pin
Luka Grabarevic9-May-07 0:26
Luka Grabarevic9-May-07 0:26 
AnswerRe: XML Serialize Hashtable.. Pin
Blumen9-May-07 0:51
Blumen9-May-07 0:51 
AnswerRe: XML Serialize Hashtable.. Pin
Piyush Wattamwar9-May-07 0:59
Piyush Wattamwar9-May-07 0:59 
i have tried it but it is not possible using hashtable.
till i send you code which i have tried.

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Collections;

namespace HAshxml
{
[Serializable]
public class test
{
public int height;
public int length;
public test()
{
Console.WriteLine("Inside test parameter less constructor");
}
public test(int x,int y)
{
height = x;
length = y;
Console.WriteLine("Inside test constructor");
}
public void GetObjectData(SerializationInfo info,StreamingContext context)
{
Console.WriteLine("Inside Get object data");
}

}
public class Program
{
static void Main(string[] args)
{
test t = new test(10,20);
Hashtable ht = new Hashtable();
ht.Add("h", t);
Stream str = File.OpenWrite("D:\\abc.xml");
//BinaryFormatter formatter = new BinaryFormatter();
XmlSerializer ser = new XmlSerializer(typeof(test));
ser.Serialize(str, ht);
str.Close();

//formatter.Serialize(str, ht);
//str.Close();


//XmlTextWriter xl=new XmlTextWriter (
Console.ReadLine();
}
}
}

QuestionSelecting a combo box item by pressing tab Pin
Johan Lombaard8-May-07 23:11
Johan Lombaard8-May-07 23:11 
AnswerRe: Selecting a combo box item by pressing tab Pin
Blumen9-May-07 0:55
Blumen9-May-07 0:55 
QuestionWrite data -> Serial port Pin
-=gix=-8-May-07 22:18
-=gix=-8-May-07 22:18 
AnswerRe: Write data -> Serial port Pin
Muammar©8-May-07 22:35
Muammar©8-May-07 22:35 
AnswerRe: Write data -> Serial port Pin
stancrm8-May-07 23:06
stancrm8-May-07 23:06 
GeneralRe: Write data -> Serial port Pin
-=gix=-9-May-07 3:25
-=gix=-9-May-07 3:25 
QuestionUIEditor & Service Providers Pin
urbane.tiger8-May-07 22:02
urbane.tiger8-May-07 22:02 
Questionselecting a node in a treeview Pin
OlaMohammed8-May-07 22:00
OlaMohammed8-May-07 22:00 
AnswerRe: selecting a node in a treeview Pin
Muammar©8-May-07 22:56
Muammar©8-May-07 22:56 
Questionparallel port Pin
fark18-May-07 21:45
fark18-May-07 21:45 
AnswerRe: parallel port Pin
Christian Graus8-May-07 21:56
protectorChristian Graus8-May-07 21:56 
QuestionTrasparent panel Pin
sujithkumarsl8-May-07 21:21
sujithkumarsl8-May-07 21:21 
AnswerRe: Trasparent panel Pin
andre_swnpl8-May-07 21:35
andre_swnpl8-May-07 21:35 
GeneralRe: Trasparent panel Pin
sujithkumarsl8-May-07 21:37
sujithkumarsl8-May-07 21:37 
GeneralRe: Trasparent panel Pin
sujithkumarsl8-May-07 22:05
sujithkumarsl8-May-07 22:05 
AnswerRe: Trasparent panel Pin
Martin#8-May-07 22:36
Martin#8-May-07 22:36 
AnswerRe: Trasparent panel Pin
AFSEKI8-May-07 22:46
AFSEKI8-May-07 22:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.