User Profile

Collapse

Profile Sidebar

Collapse
Shafi hashmi
Shafi hashmi
Last Activity: Oct 13 '11, 10:30 AM
Joined: Dec 24 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hi friends my problem is resolved....... .

    the problem was that when i was cerating files from the installed application the file was created with 'Hidden' and 'ReadOnly' attributes. hence it could not be deleted from the application. i was getting 'Access denied' error.

    i resolved this by writing this code when file is created.

    Code:
    File.SetAttributes("fileName", FileAttributes.Normal);
    See more | Go to post

    Leave a comment:


  • How to give read write permission to file in C#

    i have a windows application which has a feature to create and delete files on the system.

    when i run the application every thing is working fine but when i create installer for it and after installing the application, i cant create and delete the files due to security issu..

    if i run my program as administrator i can do the same in all drice except 'C:'

    how can i make this workable after installation...
    See more | Go to post

  • Shafi hashmi
    started a topic Using AutoComplete in aTextBox [windows C#]
    in .NET

    Using AutoComplete in aTextBox [windows C#]

    I have a windows form in C# which has a TextBox

    TextBox has AutoComplete set which has values as follows:

    Ab
    Ac
    Bc
    Bd

    When I type 'A' in the TextBox I get the list of:
    Aa
    Ac

    When T type 'B' in the TextBox I get the list of:
    Bc
    Bd.


    If don't type anything, I would like it should show a complete list like:

    Aa
    Ac...
    See more | Go to post
    Last edited by Frinavale; Sep 9 '11, 03:49 PM. Reason: Fixed spelling and grammar errors. Changed sentences that were full in capital letters so that they no longer contained capital letters unless it was grammatically correct. Please note that when you u

  • i dont want to close my application at any cost inC#

    hi guys i am creating a windows application in C#.

    I don't want user to close my application until windows is running.

    if user press CTR+ALT+DEL and want to close my application i dont want to let him do

    how it is possiable in C#??
    What code should i write in C#??

    than u in advance..
    See more | Go to post

  • Is it possible to use .MDF file without installing full SQL Server?

    hi dear i have developed a windows application in C# which use sqlserver database (Records.MDF).
    it works on my system because i have installed the full SQLSERVER2005. but i want this application to install on other system in which i dont want to install the server. i just want to kepp my 'Records.MDF' file on that machine and want to use it.



    is it possiable?? is there any DLLs which should be installed with...
    See more | Go to post

  • Shafi hashmi
    replied to Threading related question
    hi friends i found the solutin something like this


    Code:
    Label1.Text="Work Started..."
     Label1.Refresh();
     Threading.Sleep(5000);
     Label1.Text="1st work finished. and next one started";
     Label1.Refresh();
     Threading.Sleep(5000);
     Label1.Text="All work finished";
     Label1.Refresh();
    See more | Go to post

    Leave a comment:


  • Shafi hashmi
    replied to Threading related question
    Ok. but if i want to do the same how its possible?
    can u send me some example code??

    thnx
    See more | Go to post

    Leave a comment:


  • Shafi hashmi
    started a topic Threading related question

    Threading related question

    hi dear..

    i have to do the following program...

    Code:
    Label1.Text="Work Started..."
    Threading.Sleep(5000);
    Label1.Text="1st work finished. and next one started";
    Threading.Sleep(5000);
    Label1.Text="All work finished";

    i assume that this code should show the result.

    "Work Started..."

    after...
    See more | Go to post

  • How can i get records from table A which is not in B in sql server. eg A-B

    Hi dear i have two table in sql like,
    A={123}
    B={3}
    i want to perform
    A-B={12}

    i have writeen this qry
    SELECT a.code FROM A LEFT INNER JOIN B ON b.code AND a.name='shafi'
    See more | Go to post

  • hi dear if u r a good programmer then writing an algorithm shud be easy for u..

    actually when we start writing program an algorithm is created in our mind(of course in different syntax) we just need to write then on the paper.

    the basic idea to write algorithm is

    Step 1. Start
    Step 2. Accepts inputs
    Step 3. Declare variables
    Step 4. Calculation/Manipulation
    Step 5. Display result
    ...
    See more | Go to post
    Last edited by Meetee; Apr 7 '11, 06:32 AM. Reason: Code tags added

    Leave a comment:


  • The output will be
    second
    fourth
    fifth

    coz 2 is not greater than 3 hence else part will b printed. Again 2 is not greater than 3 hence next line will not be printed but next lines will be prnted coz they are not in the 'if' block
    See more | Go to post

    Leave a comment:


  • Shafi hashmi
    replied to Custom control click event
    in .NET
    Hi if u want to perform click event u can call in the constructor like,
    this.PerformCli ck();
    if u send ur code i cud help u more.
    See more | Go to post

    Leave a comment:


  • Shafi hashmi
    replied to What is an infinite loop?
    in C
    An infinite loop is a loop whose condition is never satisfied.
    Eg.
    Bool isRunning = true;
    while(isRunning )
    {
    Console.WriteLi ne("running");
    }
    this loop will never ends (infinite loop)
    See more | Go to post

    Leave a comment:


  • Hi jagdeep. Every dotnet language has its own data type and dotNet framwork has its own. All languages data types are maped to the framework data type by CTS(common type system). Thus 'string' is langguge data type and 'String' is framwork's data type and so on.
    They are of struct type not classes..
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...