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
A

Abdul Gafoor

@Abdul Gafoor
About
Posts
23
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • .Net application in Vista platform, CAS !!!!!????
    A Abdul Gafoor

    Hi, I am running a .Net windows application on Vista platform. The code has some registry modification code. The code giving and access security exception if I am not expilictly running in administrator permission. Is there any way to run the application with the administrator permission by the code itself. Is that the CAS feature of the .Net framework? please guide me.

    C# csharp dotnet windows-admin security tutorial

  • Get filename from windows explorer right menu?
    A Abdul Gafoor

    Hi, I would like to fetch the filename(with complete path) from windows explorer right menu? please guide me.

    C# tutorial question

  • Need Help Moving/Copying File
    A Abdul Gafoor

    Lets copy file in asynchronously

    FileStream sourceFile = new FileStream(.....);
    FileStream destinationFile = new FileStream(....);

    byte[] buffer = new byte[BUFFER_LENGTH];
    AsyncCallback readCallback = null;
    readCallback = delegate(IAsyncResult readResult)
    {
    int byteRead = sourceFile.EndRead(readResult);
    destination.BeginWrite(buffer,0,byteRead,new AsyncCallback(delegate(IAsyncResult writeResult)
    {
    desitnationFile.EndWrite(writeResult);
    destinationFile.Flush();
    sourceFile.BeginRead(buffer,0,buffer.Length,readCallback,null);
    }),null);
    };

    sourceFile.BeginRead(buffer,0,buffer.Length,readCallback,null);

    C# help question

  • What is position of .Net winform developer in developers market?
    A Abdul Gafoor

    Hi, Is the .Net winform development is competitive tool for windows system programing???? [Unsure] really? What is position of .Net winform developer in developers market? Is C# being preferred over c/c++ by any developer any point of time for system programming , embedded system programming?

    C# csharp question c++ hardware

  • Is Google earth offline possible
    A Abdul Gafoor

    thanks

    The Lounge tutorial question

  • Is Google earth offline possible
    A Abdul Gafoor

    I saw it. thanks

    The Back Room tutorial question

  • Is Google earth offline possible
    A Abdul Gafoor

    Hi, Can anyone suggest how can I use google earth offline. I would like to download the google maps to my desktop and use the google earth offline, Please guide me.

    The Lounge tutorial question

  • What is position of .Net winform developer in developers market?
    A Abdul Gafoor

    Hi, Is the .Net winform development is competitive tool for windows system programing???? :~ really? What is position of .Net winform developer in developers market? Is C# being preferred over c/c++ by any developer any point of time for system programming , embedded system programming?

    Windows API csharp question c++ hardware

  • Is Google earth offline possible
    A Abdul Gafoor

    Hi, Can anyone suggest how can I use google earth offline. I would like to download the google maps to my desktop and use the google earth offline, Please guide me.

    The Back Room tutorial question

  • When do we have to use delegate in C#?
    A Abdul Gafoor

    :) the previous example did not do its job even though it show the delegates asynchronous ability. Something assignable gives you the flexibility and scalability. just look at this situation; delegate void CipherInvoker(byte[] array); CipherInvoker cipher; public void ChooseCipher() { if(option == "RSACipher") cipher = new CipherInvoker(RSACipher); else if(option == "DESCipher") cipher = new CipherInvoker(DESCipher); CipherFile("blah", cipher); } public void CipherFile(string filname, CipherInvoker cipher) { // blah blah cipher(); //blah blah } lets assume that , you found out new efficient and secure way of ciphering or u want to implement ciphering with a another alogorithm; then u can implement it and u can use it without altering unnecessary places u may change like public void ChooseCipher() { if(option == "RSACipher") cipher = new CipherInvoker(RSACipher); else if(option == "DESCipher") cipher = new CipherInvoker(DESCipher); else if(option == "MyCipher") cipher = new CipherInvoker(MyCipher); CipherFile("blah" ,cipher); }

    C# csharp question learning

  • When do we have to use delegate in C#?
    A Abdul Gafoor
    1. u can use a delegate if u want an object to have several method with same signature (ie, a family of Methods) but with different algorithm and u can select between these method dynamically using a delegate. Something like... delegate double BinaryOperation(double a, double b) BinaryOperation binaryOperation; private double Add(double a, double b) { return a + b; } private double divide(double a, double b) { return a / b; } public static void BinaryOperationsButton_click(sender object, EventArgs e) { if(object is btnAdd) binaryOperation = new BinaryOperation(Add); else if(object is btnDivide) binaryOperation = new BinaryOperation(Divide); binayOperation.BeginInvoke(operand1,operand2,null,null); }
    C# csharp question learning

  • When should i use ?? Timer vs Thread.Sleep(int);
    A Abdul Gafoor

    Hi, When should i use ?? Timer vs Thread.Sleep(int); could u please guide me with justification? i believe that : I can prefer Thread.Sleep(); if my execution has to be blocked for a specific amount time, and go for Timer if i have to execute a specific job after a period. Is it like that???? Or Anything else and more important is there? please guide me.. Thanks

    C# visual-studio tutorial question career

  • Freelance programming c#
    A Abdul Gafoor

    Hi, please let me know what is the oppurtunity for a c# developer in freelance programming world. I have 3+ years development experience. Where do i start for freelancing? Thanks and regards.

    Work Issues question csharp career

  • Freelance programming c#
    A Abdul Gafoor

    Hi, please let me know what is the oppurtunity for a c# developer in freelance programming world. I have 3+ years development experience. Where do i start for freelancing? Thanks and regards.

    IT & Infrastructure question csharp career

  • Cross AppDomain Exception Handling. Plugin architecture. [modified]
    A Abdul Gafoor

    i didn't get it.. could u please explain that which appDomain member should i concentrate on?

    C# graphics architecture tutorial

  • Cross AppDomain Exception Handling. Plugin architecture. [modified]
    A Abdul Gafoor

    Dude, I already had a look on AppDomain members.. if u r pointing to AppDomain.UnhandledException event.. , it is not firing in my case. I have registered this event bfore Application.Run().. in defualt appDomain.. According to MSDN documents, it sholud be fired before the application going to unstable state.. But in my case i am getting the unhanled exception message runtime messagebox.. What i am really missing my code. can you point the specific member you are suggesting. Thanks and regards 123developer

    C# graphics architecture tutorial

  • Cross AppDomain Exception Handling. Plugin architecture. [modified]
    A Abdul Gafoor

    Hi all, I want to handle a unhandled exception thrown by a plugin running in its own appDomain (ie not Defualt appDomain) in defualt appDomain (host appliation), and then unload the culprit appDomain.. Is it really possible to handle this kind of cross appDomain exception. the exception may occur any time during the life time of plugin appdomain ( say some buttton in the plugin throws some unhandled exception..) please have a look on the sample code given below.. What should i do handle the exception thrown by button1.. I never want to close my host application at any cost. it should continue its execution whatever happens in plugins.. please give me guide lines. //********************* Plug in ******************************* public class BadPlugin: Form,IPlugin { private System.Windows.Forms.Button button1; public StaffList() { InitializeComponent(); } private void InitializeComponent() { this.textBox1 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(232, 96); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(176, 48); this.button1.TabIndex = 1; this.button1.Text = "button1"; this.button1.Click += new System.EventHandler(this.button1_Click); // // StaffList // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(488, 302); this.Controls.Add(this.button1); this.Controls.Add(this.textBox1); this.Name = "StaffList"; this.ResumeLayout(false); } private void button1_Click(object sender, System.EventArgs e) { throw new Exception("Bad plgin exploded exception"); } } //********************* Plug in Interface ******************************* public interface IPlugin { void Show(); } //******************** Plug in Host Application*************************** try { AppDomain app = AppDomain.CreateDomain("PluginDomain"); IPlugin plugin = (IPlugin)app.CreateInstanceAndUnwrap("SamplePlugins","SamplePlugins.BadPlugin"); plugin.Show(); } catch(Exception ex) { MessageBox.Show(ex.Message); } Thanks and regards 123developer -- modified at 1:06 Tuesday 10th July, 2007

    C# graphics architecture tutorial

  • developing or configuring Instant Messaging using Communication Server
    A Abdul Gafoor

    Hello everybody, please provide me guidence in developing or configuring Instant Messaging using Communication Server Thanks in advance

    C# sysadmin

  • DatePicker does not display in Mozilla Firefox
    A Abdul Gafoor

    Compare the Html source of your page generated in IE and Mozilla.

    C# question

  • I discovered that girls are usually in bad mood/temper when they're on period.
    A Abdul Gafoor

    Yea, its true, and it has scientific evidence. Hormones called estradiol and progestrone play vital role in it. see: http://en.wikipedia.org/wiki/Menstrual\_cycle for more information

    The Back Room question
  • Login

  • Don't have an account? Register

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