Click here to Skip to main content
15,918,889 members
Home / Discussions / C#
   

C#

 
GeneralRe: Estimated Time Left Pin
Dave Kreskowiak12-May-04 11:28
mveDave Kreskowiak12-May-04 11:28 
GeneralRe: Estimated Time Left Pin
Jeff Varszegi12-May-04 13:06
professionalJeff Varszegi12-May-04 13:06 
GeneralAdd ComboBox To DataGrid In DotNet 1.1 Pin
Anonymous11-May-04 20:11
Anonymous11-May-04 20:11 
GeneralAdd ComboBox To DataGrid In DotNet 1.1 Pin
sreejith ss nair12-May-04 1:39
sreejith ss nair12-May-04 1:39 
GeneralPerform initialisation after the form is visible Pin
jvbragt11-May-04 19:43
jvbragt11-May-04 19:43 
GeneralRe: Perform initialisation after the form is visible Pin
CWIZO11-May-04 19:46
CWIZO11-May-04 19:46 
GeneralRe: Perform initialisation after the form is visible Pin
Vadim Tabakman11-May-04 19:50
Vadim Tabakman11-May-04 19:50 
GeneralIAsync Pin
sreejith ss nair11-May-04 19:31
sreejith ss nair11-May-04 19:31 
hai there,
let me come to the point. i have a application that containe a pannel with some no of label controls. dynamically i need to remove or dispose the existing control and i need to create new label controls.

imp is i need to run the disposal or removal in standalone thread. (asyncronous). So i wrote a class which will accept a list of control and will remove the content.


using System;
using System.Threading;
using System.Runtime.Remoting.Messaging;
using System.Runtime.CompilerServices;
using System.Windows.Forms;

public delegate void DisposingDel(params object[] aList);

namespace PlanningBoardSystem.Classes
{
public class AssynClass
{
public void MyCallback(IAsyncResult iar)
{


AsyncResult Ars=iar as AsyncResult;
DisposingDel DAsr=(DisposingDel)Ars.AsyncDelegate;



}
public void DisposeLabel(params object[] aList)
{
PlanningBoardSystem.OrderLineLabel CtlIns ;
foreach(Label Ctl in aList)
{
CtlIns= Ctl as PlanningBoardSystem.OrderLineLabel;
CtlIns.Dispose();
}
}

}


public class IAsyncronousCls
{
private object[] obj;
public IAsyncronousCls(params object[] a )
{
AssynClass AssynCls=new AssynClass();
DisposingDel DisDel=new DisposingDel(AssynCls.DisposeLabel);
AsyncCallback AsynCback=new AsyncCallback(AssynCls.MyCallback);

}

}

}

See this code is incompleted . If you know please complete this code and get back to me.

thanks.Blush | :O

enjoy coding
Sreejith SS Nair

GeneralRe: IAsync Pin
Dave Kreskowiak12-May-04 2:57
mveDave Kreskowiak12-May-04 2:57 
Generaldetect a new record entered/updated in MS SQL Pin
Vu Truong11-May-04 17:10
Vu Truong11-May-04 17:10 
GeneralRe: detect a new record entered/updated in MS SQL Pin
Aryadip11-May-04 17:41
Aryadip11-May-04 17:41 
GeneralRe: detect a new record entered/updated in MS SQL Pin
Mazdak11-May-04 20:06
Mazdak11-May-04 20:06 
Questionwhat is the problem with this GetDIBits invoke? Pin
fu011-May-04 16:42
fu011-May-04 16:42 
AnswerRe: what is the problem with this GetDIBits invoke? Pin
Christian Graus11-May-04 18:21
protectorChristian Graus11-May-04 18:21 
AnswerRe: what is the problem with this GetDIBits invoke? Pin
Roman Rodov11-May-04 19:07
Roman Rodov11-May-04 19:07 
AnswerRe: what is the problem with this GetDIBits invoke? Pin
fu012-May-04 0:14
fu012-May-04 0:14 
GeneralRe: what is the problem with this GetDIBits invoke? Pin
Heath Stewart12-May-04 3:03
protectorHeath Stewart12-May-04 3:03 
GeneralRe: what is the problem with this GetDIBits invoke? Pin
RobbKirk13-Jul-11 10:27
RobbKirk13-Jul-11 10:27 
GeneralInitial Positioning Pin
Wackatronic11-May-04 15:24
Wackatronic11-May-04 15:24 
GeneralRe: Initial Positioning Pin
Heath Stewart11-May-04 16:30
protectorHeath Stewart11-May-04 16:30 
GeneralRe: Initial Positioning Pin
Wackatronic12-May-04 7:09
Wackatronic12-May-04 7:09 
GeneralRe: Initial Positioning Pin
Meysam Mahfouzi11-May-04 16:34
Meysam Mahfouzi11-May-04 16:34 
GeneralNeed Help to link Nero Solution with C# Pin
GegoTheWizard11-May-04 12:49
GegoTheWizard11-May-04 12:49 
GeneralRe: Need Help to link Nero Solution with C# Pin
Heath Stewart11-May-04 16:25
protectorHeath Stewart11-May-04 16:25 
GeneralRe: Need Help to link Nero Solution with C# Pin
GegoTheWizard12-May-04 12:54
GegoTheWizard12-May-04 12:54 

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.