Click here to Skip to main content
15,847,903 members
Home / Discussions / C#
   

C#

 
Questionlogical and operator Pin
Zeyad Jalil25-Jul-08 22:25
professionalZeyad Jalil25-Jul-08 22:25 
AnswerRe: logical and operator Pin
Hesham Amin25-Jul-08 22:38
Hesham Amin25-Jul-08 22:38 
AnswerRe: logical and operator Pin
mr.mohsen25-Jul-08 22:41
mr.mohsen25-Jul-08 22:41 
AnswerRe: logical and operator Pin
DaveyM6925-Jul-08 23:43
professionalDaveyM6925-Jul-08 23:43 
AnswerRe: logical and operator Pin
Ed.Poore25-Jul-08 23:47
Ed.Poore25-Jul-08 23:47 
Questionconnecting local network server for updating in c sharp Pin
maheshChowta25-Jul-08 20:10
maheshChowta25-Jul-08 20:10 
AnswerRe: connecting local network server for updating in c sharp Pin
Ed.Poore25-Jul-08 23:30
Ed.Poore25-Jul-08 23:30 
QuestionButton removed but not disposed Pin
netJP12L25-Jul-08 19:33
netJP12L25-Jul-08 19:33 
I have disposed the Button named "b" but I can still access it's properties. how is it possible like its names?
private void Form3_Load(object sender, EventArgs e)
{
b = new Button();

b.Text = "Button1";
b.Size = new Size(50, 50);
Controls.Add(b);

Button bb = new Button();
bb.Text = "Button2";
bb.Size=new Size (100, 100);
bb.Click += new EventHandler(bb_Click);
Controls.Add(bb);
}
void bb_Click(object sender, EventArgs e)
{
Controls.Remove(b);
b.Dispose();
GC.SuppressFinalize(b);
GC.Collect();

if (b.IsDisposed ==true)
{
MessageBox.Show("disposed"+b.Text);
}
else
{
MessageBox.Show("not disposed");
}
AnswerRe: Button removed but not disposed Pin
Ed.Poore25-Jul-08 23:28
Ed.Poore25-Jul-08 23:28 
GeneralRe: Button removed but not disposed Pin
netJP12L26-Jul-08 6:05
netJP12L26-Jul-08 6:05 
GeneralRe: Button removed but not disposed Pin
Ed.Poore26-Jul-08 9:58
Ed.Poore26-Jul-08 9:58 
Questiondeterming the full name to My Music on the start menu Pin
Jason Coggins25-Jul-08 17:56
Jason Coggins25-Jul-08 17:56 
AnswerRe: determing the full name to My Music on the start menu Pin
mr.mohsen25-Jul-08 22:37
mr.mohsen25-Jul-08 22:37 
AnswerRe: determing the full name to My Music on the start menu Pin
Ed.Poore25-Jul-08 23:54
Ed.Poore25-Jul-08 23:54 
AnswerRe: determing the full name to My Music on the start menu Pin
DaveyM6926-Jul-08 0:01
professionalDaveyM6926-Jul-08 0:01 
AnswerRe: determing the full name to My Music on the start menu Pin
Luc Pattyn26-Jul-08 3:47
sitebuilderLuc Pattyn26-Jul-08 3:47 
QuestionOverriding ToString() with arguments Pin
JoeRip25-Jul-08 17:05
JoeRip25-Jul-08 17:05 
AnswerRe: Overriding ToString() with arguments Pin
PIEBALDconsult25-Jul-08 20:35
mvePIEBALDconsult25-Jul-08 20:35 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip26-Jul-08 0:13
JoeRip26-Jul-08 0:13 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip26-Jul-08 0:51
JoeRip26-Jul-08 0:51 
GeneralRe: Overriding ToString() with arguments Pin
PIEBALDconsult26-Jul-08 4:35
mvePIEBALDconsult26-Jul-08 4:35 
AnswerRe: Overriding ToString() with arguments Pin
DaveyM6926-Jul-08 0:07
professionalDaveyM6926-Jul-08 0:07 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip26-Jul-08 0:12
JoeRip26-Jul-08 0:12 
GeneralRe: Overriding ToString() with arguments Pin
DaveyM6926-Jul-08 0:29
professionalDaveyM6926-Jul-08 0:29 
GeneralRe: Overriding ToString() with arguments Pin
JoeRip26-Jul-08 0:43
JoeRip26-Jul-08 0:43 

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.